Pages : 1
#1 Le 16/09/2016, à 10:41
- tadminc
Depot local pour salle de TP
Salut tout le monde, je rencontre un soucis lors de l'installation d'un depot local Ubuntu
il s'agit d'une salle de TP de 20 machine sous ubuntu 16.04
Le débit n'étant pas enorme, j'ai installé un depot local dont voici le fichier de conf
############# config ##################
#
set base_path /mirror/miroir
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set defaultarch i386 amd64
set postmirror_script $var_path/postmirror.sh
set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
du coté client
voici le source.list
# DEB LOCAL sur 192.168.8.223
deb http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/ xenial main restricted multiverse universe
deb http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/ xenial-updates main restricted multiverse universe
deb http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/ xenial-security main restricted multiverse universe
deb http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/ xenial-backports main restricted multiverse universe
cependant lorsque je veux mettre a jour mes clients
voici le message d'erreurs
root@hp:/root# apt-get update
Réception de:2 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
Réception de:3 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Réception de:1 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Réception de:4 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports InRelease [92,2 kB]
Ign:5 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:6 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
Ign:7 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main Translation-en
Ign:8 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:9 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages
Ign:10 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en
Ign:11 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:12 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
Ign:13 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en
Ign:5 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Réception de:6 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [381 kB]
Réception de:7 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [147 kB]
Ign:8 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Réception de:9 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [4 280 B]
Réception de:10 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [2 428 B]
Ign:11 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Réception de:12 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [323 kB]
Réception de:13 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [113 kB]
Ign:5 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:14 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:15 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main i386 Packages
Ign:16 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main Translation-en
Ign:17 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:18 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages
Ign:19 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en
Ign:20 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:21 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages
Ign:22 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe Translation-en
Ign:8 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:11 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Err:5 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
404 Not Found
Ign:14 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Réception de:15 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [136 kB]
Réception de:16 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main Translation-en [57,6 kB]
Ign:17 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Réception de:18 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [1 340 B]
Réception de:19 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [628 B]
Ign:20 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Réception de:21 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [41,7 kB]
Réception de:22 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [25,3 kB]
Ign:8 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:14 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:23 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:24 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main i386 Packages
Ign:25 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main Translation-fr
Ign:26 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main Translation-en
Ign:27 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:28 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted i386 Packages
Ign:29 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted Translation-fr
Ign:30 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted Translation-en
Ign:31 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:32 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages
Ign:33 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse Translation-fr
Ign:34 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse Translation-en
Ign:35 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:36 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe i386 Packages
Ign:37 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe Translation-fr
Ign:38 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe Translation-en
Ign:17 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:20 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Err:14 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
404 Not Found
Ign:23 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Réception de:24 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main i386 Packages [1 196 kB]
Réception de:25 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main Translation-fr [597 kB]
Réception de:26 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Ign:27 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Réception de:28 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8 684 B]
Réception de:29 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted Translation-fr [2 824 B]
Réception de:30 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2 908 B]
Ign:31 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Réception de:32 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Réception de:33 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse Translation-fr [105 kB]
Réception de:34 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Ign:35 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Réception de:36 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7 512 kB]
Réception de:37 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe Translation-fr [2 524 kB]
Réception de:38 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe Translation-en [4 354 kB]
Ign:23 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:27 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:31 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:35 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:39 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:40 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages
Ign:41 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main Translation-en
Ign:42 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:43 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages
Ign:44 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en
Err:23 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:27 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:31 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:35 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:39 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Réception de:40 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [1 544 B]
Réception de:41 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [1 484 B]
Ign:42 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Réception de:43 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [1 000 B]
Réception de:44 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [584 B]
Ign:39 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:42 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Err:39 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
404 Not Found
Ign:42 http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
1 678 ko réceptionnés en 1s (1 440 ko/s)
Lecture des listes de paquets... Fait
E: Failed to fetch http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 404 Not Found
E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
Je ne comprend pas trop ce que j'ai raté
Merci d'avance de votre aide
Hors ligne
#2 Le 16/09/2016, à 11:17
- J5012
Re : Depot local pour salle de TP
c'est quoi cette valeur /mirror/miroir de base_path ??
Hors ligne
#3 Le 16/09/2016, à 11:40
- tadminc
Re : Depot local pour salle de TP
j'utilise un nas ave un partage NFS pour stocker tout le fichiers dont apt-mirror à besoin.
le point de montage s'appelel /mirror et il fallait créer un dossier miroir dedant
je suis d'accord que ce n'est pas très propres ...
Hors ligne
#4 Le 16/09/2016, à 21:59
- J5012
Re : Depot local pour salle de TP
ce n'est pas tout à fait similaire dans ce tuto : https://www.howtoforge.com/local_debian_ubuntu_mirror
→ /var/spool/apt-mirror
ou comme l'exemple : https://www.packtpub.com/books/content/ … apt-cacher
→ /media/STORAGE/
→ si tu mirrores les archi 64 et 32b, il faut expliciter par deb-i386 et deb-amd64
Dernière modification par J5012 (Le 16/09/2016, à 22:14)
Hors ligne
#5 Le 20/09/2016, à 08:18
- tadminc
Re : Depot local pour salle de TP
Je doit donc changer mon mirror.list comme ceci ?
deb-amd64 http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multi
il y a egalement une chose que je ne comprend pas, c'est ceci
Lorsque je veux mettre à jour mes clients
E: Failed to fetch http://192.168.8.223/ubuntu_local/mirror/archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-i386/Packages.xz Somme de contrôle de hachage incohérente
C'est a moi de générer Packages.xz ? ou il est téléchargé?
Dernière modification par tadminc (Le 20/09/2016, à 08:24)
Hors ligne
#6 Le 20/09/2016, à 20:12
- J5012
Re : Depot local pour salle de TP
ben non c'est une sortie erreur : ... Somme de contrôle de hachage incohérente
il est possible que ta reactualisation de mirror soit arrivé au moment où des changements avaient lieu sur les depots ... , ca arrive aussi avec de simples apt-get ...
Hors ligne
Pages : 1