Tentative de configuration d’un référentiel local pour 16.04 à l’aide de apt-mirror
(l’hôte et le client sont au format 16.04 LTS), mais rencontre des problèmes, notamment en ce qui concerne l’authentification, en raison d’un fichier de version manquant lors de l’exécution de Sudo apt-get update
sur le client.
J'ai suivi ce guide pour configurer le référentiel local.
côté hôte:
/etc/apt/mirror.list
:
############# config ##################
#
set base_path /repo
#
# 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 <running Host architecture>
# 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-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
Pour la partie Apache, j'ai créé le lien Sudo ln -s /repo/mirror/archive.ubuntu.com/ubuntu/ ubuntu
, donc aucun changement par rapport au guide.
Côté client:
Côté client, je n’ai remplacé que http://archive.ubuntu.com/ubuntu/
par http://10.0.0.125/ubuntu
dans /etc/apt/sources.list
, par exemple.
deb http://10.0.0.125/ubuntu/ xenial main restricted
deb http://10.0.0.125/ubuntu/ xenial-updates main restricted
deb http://10.0.0.125/ubuntu/ xenial universe
deb http://10.0.0.125/ubuntu/ xenial-updates universe
deb http://10.0.0.125/ubuntu/ xenial multiverse
deb http://10.0.0.125/ubuntu/ xenial-updates multiverse
Lors de l'exécution de Sudo apt-get update
j'obtiens ce qui suit;
Ign:1 http://10.0.0.125/ubuntu xenial InRelease
Ign:2 http://10.0.0.125/ubuntu xenial-updates InRelease
Ign:3 http://10.0.0.125/ubuntu xenial Release
Ign:4 http://10.0.0.125/ubuntu xenial-updates Release
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Err:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
404 Not Found
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Err:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
404 Not Found
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Reading package lists... Done
W: The repository 'http://10.0.0.125/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://10.0.0.125/ubuntu xenial-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://10.0.0.125/ubuntu/dists/xenial/main/binary-AMD64/Packages 404 Not Found
E: Failed to fetch http://10.0.0.125/ubuntu/dists/xenial-updates/main/binary-AMD64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Des suggestions pour résoudre ce problème? J'ai lu d'autres articles sur apt-mirror
et 16.04
, mais il semble que tous ceux qui rencontrent des problèmes similaires ont résolu le leur avec des solutions qui ne fonctionnent pas pour moi.
Comme mentionné dans le commentaire de la question, cela a été résolu en ajoutant également les packages i386 au référentiel local. Les modifications mineures suivantes ont-elles été apportées à /etc/apt/mirror.list:
du côté de l'hôte (il fallait télécharger environ 40 Go supplémentaires en paquets, si mes souvenirs sont exacts):
############# config ##################
#
set base_path /repo
#
# 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 <running Host architecture>
# 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 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-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
clean http://archive.ubuntu.com/ubuntu
Je ne peux pas expliquer pourquoi ça marche, mais ça marche et ça résout mon problème. Stupide comme il est.