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 14/05/2006, à 17:01

Tribute2U

Probleme avec debmirror

Bonjour a tous big_smile
Je souhaite creer un miroir sur le serveur de la compagnie dans laquelle je fais mon stage.
Je me suis inspire du script aui se trouve a cette adresse : http://www.linux-france.org/lug/gulliver/ml-archives/mars-2006/msg00207.html

Cependant j'ai quelques petits problemes.
Je tente de telecharger les sections main,universe,multiverse et restricted.
Concernant le miroir de Ubuntu Breezy, aucun probleme il telecharge tout ( c'est long mais aucun probleme sauf le "Release signature does not verify" qui est peut etre plus important que je ne le pense) mais pour breezy-security, breezy-updates et breezy-backports je n'arrive pas a telecharger. J'ai l'erreur suivante la plupart du temps :

Release signature does not verify.
Get Packages and Sources files and other miscellany.
http://security.ubuntu.com/ubuntu/dists/breezy-security/Contents-i386.gz => Getting: dists/breezy-security/Contents-i386.gz... 404 Not Found
dists/breezy-security/Contents-i386.gz failed 404 Not Found
dists/breezy-security/Contents-i386.gz failed md5sum check, removing
Errors:
Release signature does not verify.
Download of dists/breezy-security/Contents-i386.gz failed: 404 Not FoundFailed to download some Package, Sources, Contents or release files!
WARNING: releasing 1 pending lock...

et certaines fois j'ai en plus un "needs fetch".
roll:rolleyes::rolleyes:
Losque je vais sur le site uk.archive.ubuntu.com, je trouve bien le repertoire bree-security mais pas le fichier Contents-i386.gz. Je ne sais pas si cela est normal ou pas.

De plus, je suis obliger d'utiliser la methode http car avec rsync il y a un depassement du delai, sinon par ftp la connexion finissait par se fermer je ne sais trop pourquoi.
Rsync me retourne l'erreur suivante :

remote_get rsync dists/breezy/Release
rsync: failed to connect to uk.archive.ubuntu.com: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(99)
dists/breezy/Release failed md5sum check

Pour plus de details, je vous joint mon script :

#!/bin/sh

#Some values :
DESTINATION=/mirror/ubuntu
SERVEURSOURCE=uk.archive.ubuntu.com
DIST=ubuntu
VERSION=breezy
ARCH=i386
IGNOREGPG=1
EXCLUDE=kde

# What is the protocol used ?
#METHOD=ftp
#METHOD=rsync
METHOD=http

# Which kind of deposits ?
SECTIONS=main,universe,multiverse,restricted

# What do we want synchronize ?
MIRROR_DIST=1
MIRROR_SECURITY=1
MIRROR_UPDATES=1
MIRROR_BACKPORTS=1

# It's not necessary to change this part normally
STARTTIME=`date '+%d-%m-%y %H:%M:%S'`
if [ "$METHOD" == "rsync" ]; then SPECRSYNC=: ; else SPECRSYNC="" ; fi
if [ $IGNOREGPG -eq 1 ]; then GPG="--ignore-release-gpg " ; else GPG="" ; fi

echo "Create/Update mirror $DIST $VERSION $ARCH to $DESTINATION"

if [ $MIRROR_DIST -eq 1 ]; then
echo "  ==========================================  "
echo " /                                                             \ "
echo "|        Mirror of $DIST $VERSION to $DESTINATION         |"
echo " \                                                             / "
echo "  =========================================  "

debmirror $DESTINATION --host=$SERVEURSOURCE $GPG\
--arch=$ARCH --nosource -v --method=$METHOD \
--root=$SPECRSYNC$DIST \
--dist=$VERSION \
--section=$SECTIONS \
--exclude-deb-section=$EXCLUDE \
--getcontents \
--debug \
--cleanup \
--progress
fi

if [ $MIRROR_SECURITY -eq 1 ]; then
echo "  ===========================================  "
echo " /                                                             \ "
echo "|        Mirror of $VERSION-security to $DESTINATION/security    |"
echo " \                                                             / "
echo "  ===========================================  "
debmirror $DESTINATION/security --host=security.ubuntu.com $GPG\
--arch=$ARCH --nosource -v --method=$METHOD \
--root=$SPECRSYNC$DIST \
--dist=$VERSION-security \
--section=$SECTIONS \
--exclude-deb-section=$EXCLUDE \
--getcontents \
--debug \
--cleanup \
--progress
fi

if [ $MIRROR_UPDATES -eq 1 ]; then
echo "  ===============================================  "
echo " /                                                                     \ "
echo "|        Mirror of $VERSION-updates to $DESTINATION/updates           |"
echo " \                                                                     / "
echo "  ===============================================  "
debmirror $DESTINATION/updates --host=$SERVEURSOURCE $GPG\
--arch=$ARCH --nosource -v --method=$METHOD \
--root=$SPECRSYNC$DIST \
--dist=$VERSION-updates \
--section=$SECTIONS \
--exclude-deb-section=$EXCLUDE \
--getcontents \
--debug \
--cleanup \
--progress
fi

if [ $MIRROR_BACKPORTS -eq 1 ]; then
echo "  =============================================   "
echo " /                                                                 \  "
echo "|        Mirror of $VERSION-backports to $DESTINATION/backports    | "
echo " \                                                                 /  "
echo "  =============================================   "
debmirror $DESTINATION/backports --host=$SERVEURSOURCE $GPG\
--arch=$ARCH --nosource -v --method=$METHOD \
--root=$SPECRSYNC$DIST \
--dist=$VERSION-backports \
--section=$SECTIONS \
--exclude-deb-section=$EXCLUDE \
--getcontents \
--debug \
--cleanup \
--progress
fi

echo "============================================================"
echo Mirror synchronization start : $STARTTIME
echo Mirror synchronization end   : `date '+%d-%m-%y %H:%M:%S'`
echo "============================================================"

APTSECTIONS=`echo $SECTIONS | sed 's/,/ /g'`
LOCALIP=`ifconfig eth0|grep "inet "|cut -d ":" -f 2|cut -d " " -f 1`

echo To use this mirror, $DESTINATION must be available via http://localhost/$DIST
echo "(These deposits must be added in /etc/apt/sources.list)"

if [ $MIRROR_DIST -eq 1 ]; then
echo deb http://$LOCALIP/$DIST/ $VERSION $APTSECTIONS
fi

echo "============================================================"
echo Mirror synchronization start : $STARTTIME
echo Mirror synchronization end   : `date '+%d-%m-%y %H:%M:%S'`

echo .
APTSECTIONS=`echo $SECTIONS | sed 's/,/ /g'`
LOCALIP=`ifconfig eth0|grep "inet "|cut -d ":" -f 2|cut -d " " -f 1`

echo To use this mirror, $DESTINATION must be available via http://localhost/$DIST
echo "(These deposits must be added ins /etc/apt/sources.list)"

if [ $MIRROR_DIST -eq 1 ]; then
echo deb http://$LOCALIP/$DIST/ $VERSION $APTSECTIONS
fi

if [ $MIRROR_SECURITY -eq 1 ]; then
echo deb http://$LOCALIP/$DIST/security/ $VERSION-security $APTSECTIONS
fi

if [ $MIRROR_UPDATES -eq 1 ]; then
echo deb http://$LOCALIP/$DIST/updates/ $VERSION-updates $APTSECTIONS
fi

if [ $MIRROR_BACKPORTS -eq 1 ]; then
echo deb http://$LOCALIP/$DIST/backports/ $VERSION-backports $APTSECTIONS
fi

echo "============================"
echo "            UPDATE FINISHED            "
echo "============================"

Je vous remercie d'avance pour vos conseils. wink


"Seul l'ignorant se fâche, le sage comprend."
"Autrefois, on s'instruisait pour soi-même. Aujourd'hui, c'est pour en imposer aux autres."

Hors ligne