Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 13/05/2019, à 22:53

Christophe apprend Linux

Dépots mirroir local apt-mirror - erreurs sur apt-get update

Bonjour @ tous,

je continue mon aventure de monter un serveur de dépôts local en suivant toujours ce tuto issue du wiki Ubuntu-fr : ici

Mais je souhaite également essayer de comprendre les choses.

Le serveur est fonctionnel et accessible (essai avec firefox à localhost) et toutes les commandes sur le client et serveur sont en ROOT. La distribution à mettre à jour est Ubuntu 18.04 LTS 64bits. Cependant, lorsque je fais un apt-get update sur le client, une dizaine d'erreurs d'erreurs que  je n'arrive pas à comprendre sont affichées.

Pour le serveur j'ai repris la config de apt-mirror indiqué dans le wiki. J'ai également pris soin de vérifier que tous les dépôts du sources.list du client étaient bien inclus dans ceux qui ont été téléchargés par le serveur.

Sans trop chercher à comprendre, j'ai repris la moitié des erreurs indiquant des dépôts manquant (du client) pour les inclure dans le fichier de configuration de apt-mirror du serveur, puis j'ai relancé une synchro du serveur. Une fois la synchro terminée du serveur, j'ai refais sur le client un apt-get update. J'ai eu exactement les mêmes nombres et les mêmes erreurs.

Après y avoir passé toute l'après midi, je ne sais plus très bien ni quoi faire ni pourquoi ça ne fonctionne pas.

Voici le fichier sources.list du client :

# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic restricted main
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic-updates restricted main
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/ bionic-backports restricted universe multiverse main
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security restricted main
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

voici le fichier de configuration du serveur apt-mirror :

############# config ##################
#
set base_path /home/christophe/depots
## Dans le cas d'un serveur web gardez le chemin par défaut (celui qui suit) ##
#set base_path    /var/spool/apt-mirror
# if you change the base path you must create the directories below with write privileges
#
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 xxxx (votre architecture i386/hppa/powerPC/ia64...)
set defaultarch  amd64
set postmirror_script $base_path/postmirror.sh
set run_postmirror 0
set nthreads     25
set _tilde 0
#
############# end config ##############

######################################################
##        UBUNTU VERSION Bionic Beaver - 18.04 LTS  ##
##                i386 - 32bits                     ##
######################################################

##  Dépôts officiels  ##
deb http://fr.archive.ubuntu.com/ubuntu bionic main restricted
deb http://security.ubuntu.com/ubuntu bionic-security main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu bionic-updates main restricted

##  Dépôts Universe et Multiverse  ##
deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

##  Dépôts Backports  ##
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Dépôt commercial  ##
deb http://archive.canonical.com/ubuntu bionic partner

## Uncomment the following two lines to add software from Ubuntu's 'extras' repository.##
#deb http://extras.ubuntu.com/ubuntu bionic main

########manquants
deb http://security.ubuntu.com/ubuntu bionic-security restricted
deb http://archive.canonical.com/ubuntu bionic partner
deb http://fr.archive.ubuntu.com/ubuntu bionic-backports universe
deb http://fr.archive.ubuntu.com/ubuntu bionic-updates restricted
deb http://fr.archive.ubuntu.com/ubuntu bionic restricted


####################################################
##     UBUNTU VERSION bionic Beaver - 18.04 LTS   ##
##                AMD-64 - 64bits                 ##
####################################################

##  Dépôts officiels  ##
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

##  Dépôts Universe et Multiverse  ##
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security universe
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

##  Dépôts Backports  ##
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Dépôt commercial  ##
deb-amd64 http://archive.canonical.com/ubuntu bionic partner

## Uncomment the following two lines to add software from Ubuntu's 'extras' repository.##
#deb-amd64 http://extras.ubuntu.com/ubuntu bionic main

####################################################
##     UBUNTU VERSION Bionic Beaver - 18.04       ##
##               Sources                          ##
####################################################

#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic universe
#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
#deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
#deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
#deb-src http://security.ubuntu.com/ubuntu bionic-security universe
#deb-src http://archive.canonical.com/ubuntu bionic partner
#deb-src http://extras.ubuntu.com/ubuntu bionic main


#######################################################
##             Paquets pour installation	     ##
## d'Ubuntu 32 bits ou 64 bits en local (netinstall) ##
#######################################################

## Dépôts officiels ##
deb http://fr.archive.ubuntu.com/ubuntu bionic main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb http://archive.ubuntu.com/ubuntu bionic-updates      main/debian-installer restricted/debian-installer universe/debian-installer
deb http://archive.ubuntu.com/ubuntu bionic-backports    main/debian-installer
deb http://archive.ubuntu.com/ubuntu bionic-security     main/debian-installer restricted/debian-installer universe/debian-installer


## Dépôts officiels ##
deb-amd64 http://fr.archive.ubuntu.com/ubuntu bionic main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu bionic-updates      main/debian-installer restricted/debian-installer universe/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu bionic-backports    main/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu bionic-security     main/debian-installer restricted/debian-installer universe/debian-installer



############# clean ##############

clean http://fr.archive.ubuntu.com/ubuntu/ bionic
clean http://security.ubuntu.com/ubuntu bionic-security
clean http://archive.canonical.com/ubuntu bionic
# clean http://extras.ubuntu.com/ubuntu bionic

Voici le résultat de apt-get update sur le client :

Réception de :1 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Réception de :2 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Réception de :3 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Réception de :4 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic InRelease [10,2 kB]
Réception de :5 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Réception de :6 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9184 B]
Ign :7 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages
Réception de :8 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted Translation-fr [2380 B]
Réception de :9 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3584 B]
Ign :10 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main i386 Packages
Réception de :11 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1019 kB]
Réception de :12 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main Translation-fr [513 kB]
Réception de :13 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Réception de :14 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Réception de :15 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Réception de :16 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Réception de :17 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Ign :18 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
Réception de :19 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Réception de :20 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe Translation-fr [2972 kB]
Réception de :21 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3287 kB]
Réception de :22 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2151 kB]
Réception de :23 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8420 kB]
Ign :24 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages
Réception de :25 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Réception de :26 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse Translation-fr [109 kB]
Réception de :27 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Réception de :28 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49,7 kB]
Réception de :29 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8931 B]
Réception de :30 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Ign :7 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages
Ign :10 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main i386 Packages
Ign :31 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages
Réception de :32 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [6996 B]
Réception de :33 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3076 B]
Ign :34 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
Réception de :35 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [599 kB]
Réception de :36 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [221 kB]
Réception de :37 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [276 kB]
Réception de :38 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [66,7 kB]
Réception de :39 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [123 kB]
Réception de :40 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [933 kB]
Ign :41 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
Réception de :42 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [272 kB]
Réception de :43 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [227 kB]
Réception de :44 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [193 kB]
Réception de :45 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [396 kB]
Ign :46 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages
Réception de :47 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6636 B]
Réception de :48 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3556 B]
Réception de :49 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Réception de :50 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 48x48 Icons [29 B]
Réception de :51 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse DEP-11 64x64 Icons [2638 B]
Ign :18 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
Ign :24 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages
Ign :7 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages
Ign :10 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main i386 Packages
Réception de :52 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3492 B]
Ign :53 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
Réception de :54 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1604 B]
Réception de :55 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7156 B]
Réception de :56 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [29 B]
Réception de :57 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [29 B]
Réception de :58 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [1024 B]
Ign :59 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages
Réception de :60 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [448 B]
Ign :31 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages
Ign :34 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
Ign :41 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
Ign :46 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages
Ign :18 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
Ign :24 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages
Err :7 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages
  404  File not found [IP : 192.168.0.5 80]
Ign :10 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic/main i386 Packages
Ign :53 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
Ign :61 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic/partner i386 Packages
Réception de :62 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic/partner amd64 Packages [2320 B]
Réception de :63 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic/partner Translation-en [1276 B]
Ign :59 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages
Ign :31 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages
Ign :34 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
Ign :41 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
Ign :46 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages
Ign :53 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
Ign :61 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic/partner i386 Packages
Ign :59 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages
Err :31 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages
  404  File not found [IP : 192.168.0.5 80]
Ign :34 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
Ign :41 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
Ign :46 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages
Err :53 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
  404  File not found [IP : 192.168.0.5 80]
Ign :61 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic/partner i386 Packages
Ign :59 http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages
Err :61 http://192.168.0.5/mirror/archive.canonical.com/ubuntu bionic/partner i386 Packages
  404  File not found [IP : 192.168.0.5 80]
Réception de :64 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4296 B]
Ign :65 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages
Réception de :66 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2192 B]
Ign :67 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main i386 Packages
Réception de :68 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [334 kB]
Réception de :69 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main Translation-en [120 kB]
Réception de :70 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [14,9 kB]
Réception de :71 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Réception de :72 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [20,9 kB]
Réception de :73 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [243 kB]
Ign :74 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
Réception de :75 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe Translation-en [139 kB]
Réception de :76 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [35,8 kB]
Réception de :77 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Réception de :78 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [92,5 kB]
Ign :79 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages
Réception de :80 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4008 B]
Réception de :81 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2060 B]
Réception de :82 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
Réception de :83 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Réception de :84 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2638 B]
Ign :65 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages
Ign :67 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main i386 Packages
Ign :74 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
Ign :79 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages
Ign :65 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages
Ign :67 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main i386 Packages
Ign :74 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
Ign :79 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages
Err :65 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages
  404  File not found [IP : 192.168.0.5 80]
Ign :67 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/main i386 Packages
Ign :74 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
Ign :79 http://192.168.0.5/mirror/security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages
504 ko réceptionnés en 3s (144 ko/s)
Lecture des listes de paquets…
E: Impossible de récupérer http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/dists/bionic/restricted/binary-i386/Packages  404  File not found [IP : 192.168.0.5 80]
E: Impossible de récupérer http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/dists/bionic-updates/restricted/binary-i386/Packages  404  File not found [IP : 192.168.0.5 80]
E: Impossible de récupérer http://192.168.0.5/mirror/fr.archive.ubuntu.com/ubuntu/dists/bionic-backports/universe/binary-i386/Packages  404  File not found [IP : 192.168.0.5 80]
E: Impossible de récupérer http://192.168.0.5/mirror/archive.canonical.com/ubuntu/dists/bionic/partner/binary-i386/Packages  404  File not found [IP : 192.168.0.5 80]
E: Impossible de récupérer http://192.168.0.5/mirror/security.ubuntu.com/ubuntu/dists/bionic-security/restricted/binary-i386/Packages  404  File not found [IP : 192.168.0.5 80]
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.

observations du néophite que je suis :

Au premier essaie j'avais fait un mirroir sur le serveur que de la version 64bits. Face à ces erreurs je me suis dit qu'il manquait peut êtres quelques bribes de 32bits (sait-on jamais...!), j'ai donc complété avec la distr 32bits. Mais l'occupation du disque du serveur est alors passé d'environ 120Go pour la version 64 bits à environ 130Go pour les versions 64 ET 32bits ! ça me parait bien trop peu... Y aurait il pas un soucis ?? Lors du téléchargement aucune erreur n'a été affichée.

Dans le fichier de configuration de apt-mirror, à la ligne N°11 : "set cleanscript $var_path/clean.sh", n'y aurait il pas une erreur ? J'aurais plutot vu : "set cleanscript $base_path/clean.sh". Qu'en pensez-vous ?

Merci à tous pour votre aide et de bien vouloir partager vos connaissances.

Dernière modification par Christophe apprend Linux (Le 13/05/2019, à 22:58)


Ancien Windowsien 7 repentis !!
J'ai choisi de faire mes premiers pas dans le monde de Tux avec Ubuntu 10.04 64bits. J'ai un ordinateur portable Toshiba QOSMIO G40 64bits double coeurs.
Merci d'avance pour vos réponses et votre aide.

Hors ligne

#2 Le 14/05/2019, à 20:41

bruno

Re : Dépots mirroir local apt-mirror - erreurs sur apt-get update

Bonjour,

Si tu mets :

set defaultarch  amd64

cela ne sert a rien de préciser les dépôts avec deb-amd64, c'est au contraire les dépôts i386 que tu dois préciser.
Exemple d'un mirror.list qui devrait fonctionner pour les deux architectures :

############# config ##################
#
set base_path    /srv/apt-mirror
#
# 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  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 bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb-i386 http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
#deb-i386 http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu

Et attention si tu as modifié base_path (/home/christophe/depots dans ton cas) tu dois y copier toute l'arborescence créée à l'installation dans /var/spool/apt-mirror/ : mirror, skel, var et les deux scripts que ce dernier contient.

Hors ligne

#3 Le 16/05/2019, à 14:18

Christophe apprend Linux

Re : Dépots mirroir local apt-mirror - erreurs sur apt-get update

Bonjour,

Bruno,
A la lecture du fichier de configuration de ton apt-mirror, j'ai bien peur de ne pas bien comprendre la "grammaire" utilisée pour désigner les dépôts.
J'avoue que j'ai toujours eu beaucoup de mal à comprendre les mentions et l'organisation des "universe", "multiverse", "restricted", "main"....

Est ce que cela s'apparente à l’arborescence d'un répertoire comme les répertoires et ses sous-répertoires d'un disque dur ?
Du coup est ce que nous ne pourrions pas désigner le répertoire "racine" pour que tous ses sous-répertoires et leurs contenus soient automatiquement "mirorés" ?

Pourquoi parfois, il est possible de trouver en même temps sur la même ligne les mentions "universe" et "multiverse" ? alors que certaines fois ce même dépôt est sur 2 lignes avec à la fin de chacune d'entre elle soit la mention "universe" soit la mention "multiverse" ?

Pour ce qui est de la fin des lignes dans la partie où l'on retrouve les "main" et autres "universe", faut il des espaces entre chacun de ces termes ou des "/" ?

Merci pour vos explications.


Ancien Windowsien 7 repentis !!
J'ai choisi de faire mes premiers pas dans le monde de Tux avec Ubuntu 10.04 64bits. J'ai un ordinateur portable Toshiba QOSMIO G40 64bits double coeurs.
Merci d'avance pour vos réponses et votre aide.

Hors ligne

#4 Le 16/05/2019, à 14:39

bruno

Re : Dépots mirroir local apt-mirror - erreurs sur apt-get update

Pour les définitions des différents dépôts Ubuntu, tu trouveras les explications dans la doc
Pour la syntaxe, c'est dans la doc sur le fichier sources.list
Tu aurais dû lire tout cela avent de te lancer dans la création d'un dépôt miroir.

Pour les différentes sections : main, universe, etc. tu peux avoir plusieurs lignes ou une seule ligne peu importe. Personnellement je préfère tout mettre sur une seule ligne pour avoir quelque chose de plus compact et plus lisible.

D'autre part, c'est toujours risqué de suivre aveuglément un tutoriel en recopiant tel quel des scripts ou des fichiers de configuration. Un tutoriel n'engage que son auteur et les instructions qui y sont données doivent être comprises et adaptées en se référant aux documentations officielles (page de man, /usr/share/doc, site officiel, etc.)

Pour finir, la version d'apt-mirror fournie par Ubuntu contient quelques bogues.

Dernière modification par bruno (Le 16/05/2019, à 15:31)

Hors ligne

#5 Le 16/05/2019, à 15:12

Christophe apprend Linux

Re : Dépots mirroir local apt-mirror - erreurs sur apt-get update

Contrairement aux apparences de mes questions, j'ai déjà effectué une lecture approfondis des doc dont tu m'as données les liens y compris les infos sur le projet sur Github ceci parmi tant autres, que j'ai d’ailleurs imprimées pour pouvoir y faire des annotations et autres gribouillis de débutant.

Mais je dois certainement faire partis, à mon plus grand désespoir, de ceux qui comprennent vite mais à qui il faut expliquer bien plus longtemps que la moyenne et je m'en excuse. De plus je ne suis pas forcément très à l'aise avec la langue anglaise mais j 'essaie de me débrouiller.

Et puis, lire les doc c'est bien, seulement au bout d'un moment il faut se lancer... Et quand on ose se lancer et que des questions précises apparaissent ou que des erreurs non prévues nous arrêtent net, vers qui pouvons nous nous tourner lorsque les lectures ne suffisent plus à nous faire avancer ?

N'avons nous pas tous été à un moment débutant, et heureux d'avoir pu bénéficier d'une main tendu d'un inconnu qui passait par là ayant pour seule motivation d'aider son prochain à sortir d'une mauvaise ornière.... N'est ce pas la raison d'être d'un forum ?

J'ai beaucoup travaillé sur ce projet et je ne crois pas solliciter la communauté inutilement et en regard des recherches et des efforts déjà fournis, je pense ne pas avoir à rougir à faire appel à vous.

Et il y a aussi un autre problème à prendre en compte, lorsque comme moi vous lisez de nombreuses doc sur un sujet, et que certaines informations y sont contradictoires, comment faire pour faire la part des choses ?

Mais je suis encore désolé de ne pas avoir la vivacité intellectuelle que je voudrais .

Merci pour votre aide.

Dernière modification par Christophe apprend Linux (Le 16/05/2019, à 15:17)


Ancien Windowsien 7 repentis !!
J'ai choisi de faire mes premiers pas dans le monde de Tux avec Ubuntu 10.04 64bits. J'ai un ordinateur portable Toshiba QOSMIO G40 64bits double coeurs.
Merci d'avance pour vos réponses et votre aide.

Hors ligne