#1 Le 29/08/2023, à 18:54
- O3M
Installation hors-ligne LaTeX via apt-offline
Bonjour,
J'ai suivi la documentation suivante (comment installer un paquet et ses dépendences avec apt-offline).
Or, le résultat est le suivant, je n'ai installé une pauvre police :
sudo apt-offline install texlive-full-offline.zip
Proceeding with installation
fonts***.deb file synced.
sudo apt-get upgrade
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Machine cible : Lubuntu 22.04
Machine aidante : Ubuntu 22.04
Qu'est-ce que je n'ai pas compris ?
Dernière modification par O3M (Le 29/08/2023, à 18:56)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#2 Le 29/08/2023, à 21:06
- Nuliel
Re : Installation hors-ligne LaTeX via apt-offline
Bonjour,
Tu peux essayer de suivre ça https://www.it-connect.fr/comment-mettr … -internet/ partie IV.C (tu peux regarder les parties précédentes si tu veux faire une mise à jour après --update va te faire la maj avec normalement)
A ma connaissance la manip indiquée sur ce lien est plus proche de la solution que la doc ubuntu-fr
Dernière modification par Nuliel (Le 29/08/2023, à 21:08)
Hors ligne
#3 Le 29/08/2023, à 21:56
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
Eh bien j'ai le résultat suivant sur la machine hors-ligne :
ERROR : /tmp/*****jammy-security_Release.gpg is bad signature. Not syncing because in strict mode.
Sur la machine en ligne, je n'ai pas eu l'impression de télécharger texlive-full, ça été trop rapide (il doit prendre 7Gb).
Dernière modification par O3M (Le 29/08/2023, à 21:56)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#4 Le 30/08/2023, à 18:19
- Nuliel
Re : Installation hors-ligne LaTeX via apt-offline
texlive-full pèse effectivement très lourd, mais ça dépend de ce qui est installé aussi sur la machine hors ligne.
Si tu as bad signature, c'est que tu n'as pas la clé publique.
Tu peux donner le retour complet? Je pense que tu as oublié de fournir l'empreinte (qui doit faire 8 octets, soit 16 caractères hexa)
Juste pour être sûr, tu as bien les mêmes dépôts sur les deux machines?
Tu as quelle version de apt-offline? Celle des dépôts de la 22.04?
Dernière modification par Nuliel (Le 30/08/2023, à 18:30)
Hors ligne
#5 Le 30/08/2023, à 21:15
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
Je n'ai plus le retour complet, comment le ré-obtenir ? C'est quoi l'empreinte ?
Effectivement j'ai un étendard plus large sur l'Ubuntu, est-ce que je peux simplement copy/paste /etc/apt/sources.list sur la Lubuntu ?
Oui, la 1.8.4, téléchargé avec le lien suivant (attention direct download)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#6 Le 30/08/2023, à 21:35
- Nuliel
Re : Installation hors-ligne LaTeX via apt-offline
Tu peux refaire la manip du lien au #2, de toute façon ça marche pas donc pas de risque à repasser les commandes.
Dans ce sens là je sais pas si c'est obligatoire (dans le sens "la machine cible a plus de dépôts que la machine aidante" ça aurait été obligatoire). Les sources.list sont normalement identiques, par contre tu peux avoir d'autres dépôts dans le sources.list.d
Ok pour la version d'apt-offline.
Tu as peut-être un retour dans le genre de
gpgv: Signature made Sat Dec 14 12:01:01 2013 CET using RSA key ID 65FFB764
gpgv: Can't check signature: public key not found
En gros je cherche le key ID qui pose problème pour te le faire télécharger et le charger sur le pc cible. Mais peut-être que ce que tu as est différent, perso j'avais eu un problème différent au niveau des signatures
Dernière modification par Nuliel (Le 30/08/2023, à 21:36)
Hors ligne
#7 Le 30/08/2023, à 21:53
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
Sort exactement le même résultat qu'auparavant
Ubuntu (aidante) :
sudo apt-offline get --bundle bundle-update-install-texlive-full.zip apt-offline-update-install-texlive-full.sig
Fetching APT Data
Downloading http://security.archive.ubuntu.com/ubuntu/dists/jammy-security/Release.gpg
http://security.archive.ubuntu.com/ubuntu/dists/jammy-security/Release.gpg done
Exception in thread Thread-1 (run):#############] 100.0% of 0 KiB
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineLib.py", line 691, in run
if threading.currentThread().guiTerminateSignal:
File "/usr/lib/python3.10/threading.py", line 1449, in currentThread
warnings.warn('currentThread() is deprecated, use current_thread() instead',
DeprecationWarning: currentThread() is deprecated, use current_thread() instead
Downloaded data to /media/usr/usb/bundle-update-install-texlive-full.zip
Et
Sur les deux machines :
gpgv
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/home/usr/.gnupg/trustedkeys.kbx': General error
Dernière modification par O3M (Le 30/08/2023, à 21:59)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#8 Le 30/08/2023, à 22:03
- xubu1957
Re : Installation hors-ligne LaTeX via apt-offline
Bonjour,
Pour info > bugs.launchpad.net/ubuntu/+source/apt-offline/+bug/1977972
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#9 Le 30/08/2023, à 22:25
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
Alors je vais d'erreur en erreur...
J'ai découvert une nouvelle version de apt-offline. Donc en téléchargeant le code source via github.
./configure
/apt-offline$ ./configure
bash: ./configure: No such file or directory
/apt-offline$ make
cd apt_offline_gui ; ./genui.sh || exit 1
Compiling Ui files
Compiling file AptOfflineQtAbout.ui into Ui_AptOfflineQtAbout.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtCreateProfile.ui into Ui_AptOfflineQtCreateProfile.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtFetch.ui into Ui_AptOfflineQtFetch.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtFetchOptions.ui into Ui_AptOfflineQtFetchOptions.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtInstall.ui into Ui_AptOfflineQtInstall.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtInstallBugList.ui into Ui_AptOfflineQtInstallBugList.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtInstallChangelog.ui into Ui_AptOfflineQtInstallChangelog.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtMain.ui into Ui_AptOfflineQtMain.py
./genui.sh: 12: pyuic5: not found
Compiling file AptOfflineQtSaveZip.ui into Ui_AptOfflineQtSaveZip.py
./genui.sh: 12: pyuic5: not found
Compiling Resources files
./genui.sh: 16: pyrcc5: not found
Done
python3 setup.py build
/home/usr/snap/apt-offline/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.core
running build
running build_py
file apt_offline_gui/resources_rc.py (for module apt_offline_gui.resources_rc) not found
file apt_offline_gui/Ui_AptOfflineQtAbout.py (for module apt_offline_gui.Ui_AptOfflineQtAbout) not found
file apt_offline_gui/Ui_AptOfflineQtCreateProfile.py (for module apt_offline_gui.Ui_AptOfflineQtCreateProfile) not found
file apt_offline_gui/Ui_AptOfflineQtFetch.py (for module apt_offline_gui.Ui_AptOfflineQtFetch) not found
file apt_offline_gui/Ui_AptOfflineQtFetchOptions.py (for module apt_offline_gui.Ui_AptOfflineQtFetchOptions) not found
file apt_offline_gui/Ui_AptOfflineQtInstall.py (for module apt_offline_gui.Ui_AptOfflineQtInstall) not found
file apt_offline_gui/Ui_AptOfflineQtInstallBugList.py (for module apt_offline_gui.Ui_AptOfflineQtInstallBugList) not found
file apt_offline_gui/Ui_AptOfflineQtInstallChangelog.py (for module apt_offline_gui.Ui_AptOfflineQtInstallChangelog) not found
file apt_offline_gui/Ui_AptOfflineQtMain.py (for module apt_offline_gui.Ui_AptOfflineQtMain) not found
file apt_offline_gui/Ui_AptOfflineQtSaveZip.py (for module apt_offline_gui.Ui_AptOfflineQtSaveZip) not found
creating build
creating build/lib
creating build/lib/apt_offline_core
copying apt_offline_core/__init__.py -> build/lib/apt_offline_core
copying apt_offline_core/AptOfflineCoreLib.py -> build/lib/apt_offline_core
copying apt_offline_core/AptOfflineDebianBtsLib.py -> build/lib/apt_offline_core
copying apt_offline_core/AptOfflineLib.py -> build/lib/apt_offline_core
copying apt_offline_core/AptOfflineMagicLib.py -> build/lib/apt_offline_core
creating build/lib/apt_offline_gui
copying apt_offline_gui/__init__.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtAbout.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtCommon.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtCreateProfile.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtFetch.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtFetchOptions.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtInstall.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtInstallBugList.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtInstallChangelog.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtMain.py -> build/lib/apt_offline_gui
copying apt_offline_gui/AptOfflineQtSaveZip.py -> build/lib/apt_offline_gui
copying apt_offline_gui/QtProgressBar.py -> build/lib/apt_offline_gui
copying apt_offline_gui/UiDataStructs.py -> build/lib/apt_offline_gui
file apt_offline_gui/resources_rc.py (for module apt_offline_gui.resources_rc) not found
file apt_offline_gui/Ui_AptOfflineQtAbout.py (for module apt_offline_gui.Ui_AptOfflineQtAbout) not found
file apt_offline_gui/Ui_AptOfflineQtCreateProfile.py (for module apt_offline_gui.Ui_AptOfflineQtCreateProfile) not found
file apt_offline_gui/Ui_AptOfflineQtFetch.py (for module apt_offline_gui.Ui_AptOfflineQtFetch) not found
file apt_offline_gui/Ui_AptOfflineQtFetchOptions.py (for module apt_offline_gui.Ui_AptOfflineQtFetchOptions) not found
file apt_offline_gui/Ui_AptOfflineQtInstall.py (for module apt_offline_gui.Ui_AptOfflineQtInstall) not found
file apt_offline_gui/Ui_AptOfflineQtInstallBugList.py (for module apt_offline_gui.Ui_AptOfflineQtInstallBugList) not found
file apt_offline_gui/Ui_AptOfflineQtInstallChangelog.py (for module apt_offline_gui.Ui_AptOfflineQtInstallChangelog) not found
file apt_offline_gui/Ui_AptOfflineQtMain.py (for module apt_offline_gui.Ui_AptOfflineQtMain) not found
file apt_offline_gui/Ui_AptOfflineQtSaveZip.py (for module apt_offline_gui.Ui_AptOfflineQtSaveZip) not found
running build_scripts
creating build/scripts-3.10
copying and adjusting apt-offline -> build/scripts-3.10
copying and adjusting apt-offline-gui -> build/scripts-3.10
copying apt-offline-gui-pkexec -> build/scripts-3.10
changing mode of build/scripts-3.10/apt-offline from 664 to 775
changing mode of build/scripts-3.10/apt-offline-gui from 664 to 775
man2html apt-offline.8 > apt-offline.html
/bin/sh: 1: man2html: not found
make: *** [Makefile:13: html] Error 127
/apt-offline$ make install
python3 setup.py install
/home/usr/snap/apt-offline/setup.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.core
running install
running build
running build_py
file apt_offline_gui/resources_rc.py (for module apt_offline_gui.resources_rc) not found
file apt_offline_gui/Ui_AptOfflineQtAbout.py (for module apt_offline_gui.Ui_AptOfflineQtAbout) not found
file apt_offline_gui/Ui_AptOfflineQtCreateProfile.py (for module apt_offline_gui.Ui_AptOfflineQtCreateProfile) not found
file apt_offline_gui/Ui_AptOfflineQtFetch.py (for module apt_offline_gui.Ui_AptOfflineQtFetch) not found
file apt_offline_gui/Ui_AptOfflineQtFetchOptions.py (for module apt_offline_gui.Ui_AptOfflineQtFetchOptions) not found
file apt_offline_gui/Ui_AptOfflineQtInstall.py (for module apt_offline_gui.Ui_AptOfflineQtInstall) not found
file apt_offline_gui/Ui_AptOfflineQtInstallBugList.py (for module apt_offline_gui.Ui_AptOfflineQtInstallBugList) not found
file apt_offline_gui/Ui_AptOfflineQtInstallChangelog.py (for module apt_offline_gui.Ui_AptOfflineQtInstallChangelog) not found
file apt_offline_gui/Ui_AptOfflineQtMain.py (for module apt_offline_gui.Ui_AptOfflineQtMain) not found
file apt_offline_gui/Ui_AptOfflineQtSaveZip.py (for module apt_offline_gui.Ui_AptOfflineQtSaveZip) not found
file apt_offline_gui/resources_rc.py (for module apt_offline_gui.resources_rc) not found
file apt_offline_gui/Ui_AptOfflineQtAbout.py (for module apt_offline_gui.Ui_AptOfflineQtAbout) not found
file apt_offline_gui/Ui_AptOfflineQtCreateProfile.py (for module apt_offline_gui.Ui_AptOfflineQtCreateProfile) not found
file apt_offline_gui/Ui_AptOfflineQtFetch.py (for module apt_offline_gui.Ui_AptOfflineQtFetch) not found
file apt_offline_gui/Ui_AptOfflineQtFetchOptions.py (for module apt_offline_gui.Ui_AptOfflineQtFetchOptions) not found
file apt_offline_gui/Ui_AptOfflineQtInstall.py (for module apt_offline_gui.Ui_AptOfflineQtInstall) not found
file apt_offline_gui/Ui_AptOfflineQtInstallBugList.py (for module apt_offline_gui.Ui_AptOfflineQtInstallBugList) not found
file apt_offline_gui/Ui_AptOfflineQtInstallChangelog.py (for module apt_offline_gui.Ui_AptOfflineQtInstallChangelog) not found
file apt_offline_gui/Ui_AptOfflineQtMain.py (for module apt_offline_gui.Ui_AptOfflineQtMain) not found
file apt_offline_gui/Ui_AptOfflineQtSaveZip.py (for module apt_offline_gui.Ui_AptOfflineQtSaveZip) not found
running build_scripts
running install_lib
creating /usr/local/lib/python3.10/dist-packages/apt_offline_core
error: could not create '/usr/local/lib/python3.10/dist-packages/apt_offline_core': Permission denied
make: *** [Makefile:10: install] Error 1
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#10 Le 31/08/2023, à 20:14
- Nuliel
Re : Installation hors-ligne LaTeX via apt-offline
Tu peux essayer avec la version de apt offline de la 22.10? Parce que c'est visiblement encore pété sur la LTS mais corrigé sur la 22.10: https://github.com/rickysarraf/apt-offline/issues/191
Mais c'est bizarre, de mémoire c'est une 22.04 que j'ai et j'ai pas eu ce pb
Dernière modification par Nuliel (Le 31/08/2023, à 20:17)
Hors ligne
#11 Le 22/09/2023, à 19:47
- Nuliel
Re : Installation hors-ligne LaTeX via apt-offline
Alors ça marche avec la nouvelle version d'apt-offline? Le côté fonctionnel de apt-offline m'intéresse
Hors ligne
#12 Le 06/11/2023, à 16:25
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
Alors je reprend ce problème mais cette fois-ci en mettant de côté (pour l'instant) apt-offline car je suis tombé sur ceci.
Je comprend parfaitement l'anglais, mais pas du tout le jargon unix, comment on clône ce gist sur notre machine pour l'utiliser ?
Aussi, j'en profite pour poser la question suivante : Par ce topic, dans laquelle des quatres situations je me trouve lorsque je télécharge un fichier en tar.xz depuis github ? C'est une installation manuelle depuis un dépôt auquel on fait confiance ? Car souvent les paquets dans les repo (en tout cas pour les softwares que j'utilise) sont rarement à jour. Ca détermine la suite de ce problème j'imagine, car en faisant un repo sur une clé usb (ce qui est le but) comment ajouter correctement les paquets (ainsi que leurs dépendences) ? Surtout aussi que j'aimerais sur la machine cible qui est offline, mettre à jour LXQt.
Bon ça part peut-être en besogne mais je continue de me renseigner.
EDIT 1 :
En lisant, j'ai pu faire les choses suivantes :
Télécharger les scripts
Faire les commandes suivantes :
chmod a+x dependencies.sh
chmod a+x getpkg.sh
chmod a+x mkrepo.sh
sudo ./dependencies.sh
Ces commandes n'ont pas occasionnées d'erreurs mais lorsque je fais la suivante, certains paquets sont téléchargés et d'autres où j'ai :
./getpkg.sh gimp /monrepo
W: Le téléchargement est effectué en dehors du bac à sable en tant que « root » car le fichier « /libbabl-0.1-0_0.1.74-1_amd64.deb » n'est pas accessible par l'utilisateur « _apt ». - pkgAcquire::Run (13: Permission non accordée)
Pourtant chmod a+x donne bien toutes les autorisations ?
Dernière modification par O3M (Le 06/11/2023, à 21:00)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#13 Le 08/11/2023, à 12:50
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
Par magie, ou sans doute parce que j'ai reboot, j'ai relancé le dernier script du message au-dessus, qui a fonctionné sans erreur.
Je remarque que les trois scripts ont disparus dans le dossier où ils étaient, pourtant comme dit au-dessus, pas d'erreur.
Le script a téléchargé les softwares et leurs dépendances, en .deb dans un dossier que je lui ai indiqué. Comment y ajouter la dernière version de LXQt puisque la page github propose une extension .tar.xz ?
EDIT :
Je viens de comprendre la différence entre .deb et .tar.xz grâce à la première réponse sur ce forum. Donc je dois décompresser, configurer et compiler LXQt.tar.xz afin de le rendre prêt à être installé en .deb ? Existe-t-il une page de la documentation officielle qui explique cela ? Je cherche.
Dernière modification par O3M (Le 08/11/2023, à 12:57)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne
#14 Le 08/11/2023, à 13:13
- O3M
Re : Installation hors-ligne LaTeX via apt-offline
J'ai fait la commande suivante :
tar xf LXQt.tar.xz
Puis je lis le ReadMe.md où il est indiqué ceci :
Runtime dependencies are Qt X11 Extras (although libfm-qt works under Wayland too)
and menu-cache (not all libfm features are provided by libfm-qt yet).
Additional build dependencies are CMake,
[lxqt-build-tools](https://github.com/lxqt/lxqt-build-tools) and, optionally, Git
for pulling latest VCS checkouts.
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX`
has to be set to `/usr` on most operating systems. Depending on the way library
paths are dealt with on 64bit systems, variables like `CMAKE_INSTALL_LIBDIR` may
have to be set as well.
De ce que je peux comprendre, est-ce que je dois préparer au final un .deb de LXQt depuis Main (cf. ma signature) pour l'installer (en réalité le mettre à jour) sur Alt1 ou bien le configurer directement depuis Alt1 ? (Rappelant que cette dernière est hors-ligne).
Dernière modification par O3M (Le 08/11/2023, à 13:16)
Main : Ubuntu 20.04 avec GNOME
Alt1 : Lubuntu 22.04 avec LXQt
Hors ligne