Soucis avec serveur Mirroir

Bonjour à tous

J’ai un serveur mirroir sous debian qui gere les paquets debian et ubuntu.

Je suis en train de mettre à jour ce mirroir (ce n’est pas moi qui l’ai monté) pour gerer les paquest ubuntu 14.04LTS que je suis en train de déployer.

Seulement je rencontre un soucis plus que génant à savoir que quand je fait un apt-get update j’ai des erreurs uniquement sur la partie trusty-security:

apt-get update
Ign http://ubuntu.domaine.lan trusty InRelease
Ign http://ubuntu.domaine.lan trusty-updates InRelease
Ign http://ubuntu.domaine.lan trusty-security InRelease
Ign http://ubuntu.domaine.lan trusty InRelease
Atteint http://ubuntu.domaine.lan trusty Release.gpg
Atteint http://ubuntu.domaine.lan trusty-updates Release.gpg
Ign http://ubuntu.domaine.lan trusty-security Release.gpg
Atteint http://ubuntu.domaine.lan trusty Release.gpg
Atteint http://ubuntu.domaine.lan trusty Release
Atteint http://ubuntu.domaine.lan trusty-updates Release
Ign http://ubuntu.domaine.lan trusty-security Release
Atteint http://ubuntu.domaine.lan trusty Release            
Atteint http://ubuntu.domaine.lan trusty/main amd64 Packages
Atteint http://ubuntu.domaine.lan trusty/restricted amd64 Packages
Atteint http://ubuntu.domaine.lan trusty/universe amd64 Packages
Atteint http://ubuntu.domaine.lan trusty/multiverse amd64 Packages
Atteint http://ubuntu.domaine.lan trusty/main i386 Packages 
Atteint http://ubuntu.domaine.lan trusty/restricted i386 Packages
Atteint http://ubuntu.domaine.lan trusty/universe i386 Packages
Atteint http://ubuntu.domaine.lan trusty/multiverse i386 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/main amd64 Packages           
Atteint http://ubuntu.domaine.lan trusty-updates/restricted amd64 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/universe amd64 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/multiverse amd64 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/main i386 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/restricted i386 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/universe i386 Packages
Atteint http://ubuntu.domaine.lan trusty-updates/multiverse i386 Packages
Atteint http://ubuntu.domaine.lan trusty/partner amd64 Packages
Atteint http://ubuntu.domaine.lan trusty/partner i386 Packages
Err http://ubuntu.domaine.lan trusty-security/main amd64 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/restricted amd64 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/universe amd64 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/multiverse amd64 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/main i386 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/restricted i386 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/universe i386 Packages
  404  Not Found
Err http://ubuntu.domaine.lan trusty-security/multiverse i386 Packages
  404  Not Found
Ign http://ubuntu.domaine.lan trusty-security/main Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty-security/main Translation-fr
Ign http://ubuntu.domaine.lan trusty-security/main Translation-en
Ign http://ubuntu.domaine.lan trusty-security/multiverse Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty-security/multiverse Translation-fr
Ign http://ubuntu.domaine.lan trusty-security/multiverse Translation-en
Ign http://ubuntu.domaine.lan trusty-security/restricted Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty-security/restricted Translation-fr
Ign http://ubuntu.domaine.lan trusty-security/restricted Translation-en
Ign http://ubuntu.domaine.lan trusty-updates/main Translation-en
Ign http://ubuntu.domaine.lan trusty-updates/multiverse Translation-en
Ign http://ubuntu.domaine.lan trusty-updates/restricted Translation-en
Ign http://ubuntu.domaine.lan trusty-updates/universe Translation-en
Ign http://ubuntu.domaine.lan trusty-security/universe Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty-security/universe Translation-fr
Ign http://ubuntu.domaine.lan trusty-security/universe Translation-en
Ign http://ubuntu.domaine.lan trusty/partner Translation-en
Ign http://ubuntu.domaine.lan trusty/main Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty/main Translation-fr 
Ign http://ubuntu.domaine.lan trusty/main Translation-en 
Ign http://ubuntu.domaine.lan trusty/multiverse Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty/multiverse Translation-fr
Ign http://ubuntu.domaine.lan trusty/multiverse Translation-en
Ign http://ubuntu.domainelan trusty/restricted Translation-fr_FR
Ign http://ubuntu.domaine.lan trusty/restricted Translation-fr
Ign http://ubuntu.domaine.lan trusty/restricted Translation-en
Ign http://ubuntu.domaine.lan trusty/universe Translation-fr_FR         
Ign http://ubuntu.domaine.lan trusty/universe Translation-fr            
Ign http://ubuntu.domaine.lan trusty/universe Translation-en
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/main/binary-amd64/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/restricted/binary-amd64/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/universe/binary-amd64/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/multiverse/binary-amd64/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/main/binary-i386/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/restricted/binary-i386/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/universe/binary-i386/Packages  404  Not Found
W: Impossible de récupérer http://ubuntu.domaine.lan/ubuntu/dists/trusty-security/multiverse/binary-i386/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.

voici la configuration du sources.list du serveur mirroir:

/etc/apt/ubuntu-mirror.list 
############# config ##################
#
set base_path /data/ubuntu
#
# 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  i386
set nthreads     2
set tilde 0
#
############# end config ##############

## 32 bits
deb http://fr.archive.ubuntu.com/ubuntu/ precise main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ precise universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ precise-updates universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ precise-security universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ precise-backports main restricted unive
rse multiverse
deb http://archive.canonical.com/ubuntu/ precise partner

#############################
### Ubuntu Trusty 32 bits ###
#############################

##  Depots officiels  ##
deb http://fr.archive.ubuntu.com/ubuntu trusty main restricted
deb http://security.ubuntu.com/ubuntu trusty-security main restricted

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

##  Depots Universe et Multiverse  ##
deb http://fr.archive.ubuntu.com/ubuntu/ trusty universe
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb http://fr.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://security.ubuntu.com/ubuntu trusty-security multiverse

##  Depots Backports  ##
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-backports main restricted univer
se multiverse

## Depots commercial  ##
deb http://archive.canonical.com/ubuntu trusty partner

#################################
### Fin Ubuntu Trusty 32 bits ###
#################################

# netinstall
deb http://fr.archive.ubuntu.com/ubuntu precise               main/debian-instal
ler restricted/debian-installer universe/debian-installer multiverse/debian-inst
aller


## 64 bits

deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise main restricted
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise universe multiverse
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise-updates universe multiver
se
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise-security universe multive
rse
deb-amd64 http://fr.archive.ubuntu.com/ubuntu/ precise-backports main restricted
 universe multiverse
deb-amd64 http://archive.canonical.com/ubuntu/ precise partner

#############################
### Ubuntu Trusty 64 bits ###
#############################

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

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

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

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

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

#################################
### Fin Ubuntu Trusty 64 bits ###
#################################

# netinstall
deb-amd64 http://fr.archive.ubuntu.com/ubuntu precise            main/debian-ins
taller restricted/debian-installer universe/debian-installer multiverse/debian-i
nstaller

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

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


# What directories should we clean up
# (i.e. remove files missing in up-to-date indexes)
#clean http://fr.archive.ubuntu.com/
#clean http://security.ubuntu.com/
#clean http://archive.canonical.com/
#clean http://extras.ubuntu.com/ubuntu

# But exclude this directories
# (which is not managed by apt and apt-mirror)
skip-clean http://fr.archive.ubuntu.com/ubuntu/netboot/

si je vais avec mon navigateur sur l’adresse ubuntu.domaine.lan/ubuntu/dists/

voila ce que j’ai:

[DIR] precise-backports/      13-May-2015 18:00    -   
[DIR] precise-security/       13-May-2015 18:00    -   
[DIR] precise-updates/        13-May-2015 18:00    -   
[DIR] precise/                13-May-2015 18:00    -   
[DIR] trusty-backports/       13-May-2015 18:00    -   
[DIR] trusty-updates/         13-May-2015 18:00    -   
[DIR] trusty/                 13-May-2015 18:00    -  

donc ce foutu repertoire trusty-security ne s’écrit pas !!

Pouvez vous m’aider à trouver l’origine de ce problème?

Par avance merci

up :confused:

Il vous manque des infos supplémentaires?

je pense que tu as dû te tromper de forum, peu de personne s’intéresse a *buntu ici :102

Ben dans mon cas le serveur est debian et non ubuntu

De plus ubuntu et debian, désolé mais c’est la même chose

Un serveur miroir ubuntu et un serveur miroir debian c’est idem et ce serveur fait aussi miroir debian.

j’ai essayé d’avoir de l’aide sur le forum ubuntu-fr.org, mais la bas ils ne semblent pas interréssé par les problèmes que peuvent rencontrer les professionnels avec ubuntu (sans doute trop complexe).

j’ai suivi ce tuto à la lettre, et toujours le même problème: http://doc.ubuntu-fr.org/tutoriel/creer_un_miroir_de_depot

Actuellement j’ai donc sur mes postes clients un sources.list un peu tordu puisque tout passe par le serveur miroir sauf la partie security qui elle passe par le net et les adresses http.

Salut !
Je suis novice, mais je me permets de tenter une réponse. Ou plutôt de poser des questions…

Plutôt que de visiter le serveur avec le navigateur, vérifions déjà si les fichiers sont présents avec

Et si ça n’est pas le cas, donne ici le résultat de

Si par contre les fichiers ont été correctement téléchargés sur le miroir, alors j’imagine que c’est le serveur HTTP qui pose problème : tu utilises Apache ?

Bonjour,

ubuntu.domaine.lan/ubuntu/dists/ … 6/Packages -> dans ton navigateur que renvoie cette page ?

Que disent les [mono]logs[/mono] quand tu lances le apt-get update ou upgrade sur le serveur miroir concernant la tentative d’écriture de trusty ?

Bonjour

alors voila le resultat de ubuntu.domaine.lan/ubuntu/dists/ … 6/Packages

Not Found
The requested URL /ubuntu/dists/trusty-security/universe/binary-i386/Packages was not found on this server.

normal d’ailleurs puisque si je vais sur ubuntu.domaine.lan/ubuntu/dists/, j’ai:

Index of /ubuntu/dists

Icon  Name                    Last modified      Size  Description[DIR] Parent Directory                             -   
[DIR] precise-backports/      13-May-2015 18:00    -   
[DIR] precise-security/       13-May-2015 18:00    -   
[DIR] precise-updates/        13-May-2015 18:00    -   
[DIR] precise/                13-May-2015 18:00    -   
[DIR] trusty-backports/       13-May-2015 18:00    -   
[DIR] trusty-updates/         13-May-2015 18:00    -   
[DIR] trusty/                 13-May-2015 18:00    -   

donc le repertoire trusty-security se se crée pas et son contenu ne se télécharge pas et c’est la le soucis

[quote=“pols12”]donne ici le résultat de

Bonjour

Voici donc le résultat de

Downloading 288 index files using 2 threads...
Begin time: Wed May 27 09:28:56 2015
[2]... [1]... [0]... 
End time: Wed May 27 09:29:56 2015

Proceed indexes: [PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP]

26.6 KiB will be downloaded into archive.
Downloading 2 archive files using 2 threads...
Begin time: Wed May 27 09:30:41 2015
[2]... [1]... [0]... 
End time: Wed May 27 09:30:42 2015

0.0 bytes in 0 files and 0 directories can be freed.
Run /data/ubuntu/var/clean.sh for this purpose.

d’autres infos:

less /data/ubuntu/var/clean.sh
#!/bin/sh

cd /data/ubuntu/mirror || exit 1

echo 'Removing 0 unnecessary files [0 bytes]...'
echo 'done.'
echo

echo 'Removing 0 unnecessary directories...'
echo 'done.'
echo
/data/ubuntu/var/clean.sh (END)

aprés au niveau des logs spécifiques à la mise à jour du mirroir, voila les fichiers que j’ai:

/data/ubuntu/var # ll
total 69M
drwxr-xr-x 2 apt-mirror apt-mirror 4,0K mai   27 09:37 .
drwxr-xr-x 5 apt-mirror apt-mirror 4,0K sept.  7  2012 ..
-rw-r--r-- 1 apt-mirror apt-mirror  29M mai   27 09:30 ALL
-rw-r--r-- 1 apt-mirror apt-mirror  974 mai   27 09:30 archive-log.0
-rw-r--r-- 1 apt-mirror apt-mirror  965 mai   27 09:30 archive-log.1
-rw-r--r-- 1 apt-mirror apt-mirror  128 mai   27 09:30 archive-urls.0
-rw-r--r-- 1 apt-mirror apt-mirror  124 mai   27 09:30 archive-urls.1
-rw-r--r-- 1 apt-mirror apt-mirror  176 mai   27 09:31 clean.sh
-rw-r--r-- 1 apt-mirror apt-mirror 110K mai   27 09:29 index-log.0
-rw-r--r-- 1 apt-mirror apt-mirror 106K mai   27 09:29 index-log.1
-rw-r--r-- 1 apt-mirror apt-mirror  12K mai   27 09:28 index-urls.0
-rw-r--r-- 1 apt-mirror apt-mirror  13K mai   27 09:28 index-urls.1
-rw-r--r-- 1 apt-mirror apt-mirror  40M mai   27 09:30 MD5
-rw-r--r-- 1 apt-mirror apt-mirror  756 mai   27 09:30 NEW

Bon la les fichiers sont quand même très gros.

Au niveau des logs tu a s besoin de quelles informations?

J’ai cherché des infos trusty security et je n’ai rien trouvé.

Merci pour ton coup de main