La commande apt-get update ne fonctionne pas avec le miroir xenial local

En utilisant apt-mirror, j’ai téléchargé les paquets xenial sur ma machine (adresse ip: 172.16.3.37). Le contenu de mon “mirror.list” pour apt-mirror est le suivant.

############# config ################## # set base_path /ubuntuRepo # # 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  # set postmirror_script $var_path/postmirror.sh # set run_postmirror 0 set nthreads 20 set _tilde 0 # ############# end config ############## deb-amd64 http://archive.ubuntu.com/ubuntu xenial main ressortingcted universe multiverse free non-free deb-amd64 http://archive.ubuntu.com/ubuntu xenial-security main ressortingcted universe multiverse free non-free deb-amd64 http://archive.ubuntu.com/ubuntu xenial-updates main ressortingcted universe multiverse free non-free deb-amd64 http://archive.ubuntu.com/ubuntu xenial-proposed main ressortingcted universe multiverse free non-free deb-amd64 http://archive.ubuntu.com/ubuntu xenial-backports main ressortingcted universe multiverse free non-free deb-i386 http://archive.ubuntu.com/ubuntu xenial main ressortingcted universe multiverse free non-free deb-i386 http://archive.ubuntu.com/ubuntu xenial-security main ressortingcted universe multiverse free non-free deb-i386 http://archive.ubuntu.com/ubuntu xenial-updates main ressortingcted universe multiverse free non-free deb-i386 http://archive.ubuntu.com/ubuntu xenial-proposed main ressortingcted universe multiverse free non-free deb-i386 http://archive.ubuntu.com/ubuntu xenial-backports main ressortingcted universe multiverse free non-free 

Les fichiers ont été téléchargés avec succès.

J’ai essayé d’installer des paquets en utilisant ce repository à partir d’une autre machine. Le fichier /etc/apt/sources.list de cette machine contient la ligne suivante (je n’ai intentionnellement gardé qu’une seule ligne pour réduire le nombre d’erreurs).

  deb http://archive.ubuntu.com/ubuntu xenial main ressortingcted universe multiverse free non-free 

Maintenant, quand j’essaye “apt-get update”, je reçois ce qui suit.

 Get:1 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Ign:2 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 Packages Ign:3 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main i386 Packages Ign:4 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main Translation-en Ign:5 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata Ign:6 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons Ign:7 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 Packages Ign:8 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe i386 Packages Ign:9 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe Translation-en Ign:10 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata Ign:11 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons Get:2 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB] Get:3 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB] Get:4 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB] Ign:5 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata Ign:6 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons Get:7 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB] Get:8 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7,512 kB] Get:9 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB] Ign:10 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata Ign:11 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons Err:5 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata 404 Not Found Err:6 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons 404 Not Found Err:10 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata 404 Not Found Err:11 http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons 404 Not Found Fetched 247 kB in 0s (574 kB/s) Reading package lists... Done E: Failed to fetch http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu/dists/xenial/main/dep11/Components-amd64.yml 404 Not Found E: Failed to fetch http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu/dists/xenial/main/dep11/icons-64x64.tar 404 Not Found E: Failed to fetch http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/Components-amd64.yml 404 Not Found E: Failed to fetch http://172.16.3.37/ubuntuRepo/mirror/archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/icons-64x64.tar 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. 

J’avais posé une question similaire ici . Toute pensée utile est grandement appréciée.

J’ai eu le même problème. Pour moi la solution était:

 rm /etc/apt/apt.conf.d/50appstream 

La source: La mise à jour d’apt-get pour Ubuntu 16.04 ne fonctionne pas avec un référentiel local

Il semble que votre référentiel reflète uniquement les packages amd64, mais votre système souhaite utiliser les packages amd64 et i386. Ajoutez simplement des lignes deb-i386 similaires à celles que vous avez déjà, et synchronisez à nouveau le miroir.