[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-cd problem



On Wed, May 08, 2002 at 11:42:06AM +0200, Raphael Hertzog wrote:
> Le Wed, May 08, 2002 at 11:31:20AM +0200, Anthony GARZIANO écrivait:
> > > Cheers,
> > 
> > It search some files and say :
> > file /dists/potato/* can't be found
> > and it say an error message :
> > make: *** [mirrorcheck] error 1
> > ERROR: Your mirror has a problem, please correct it.
> > Thanks.
> 
> Ok, this may not be a bug, you just have an incomplete mirror...
> woody has packages that have not been updated since potato
> and as such the corresponding files are still in dists/potato/
> 
> For example the packages adbbs and cce are in that case.
> 
> You need to include potato in your mirror. At least the files that are
> used within woody.
> 
> Cheers,
I include the potato.
Some problems desapeared, now it says that it doesn't find some files
like:
pool/main/b/bash*
or some other packages.
Effectivily this files don't appear in the archive.
I don't understand.
I include my scripts for download, the apt source.list and the conf.sh
of debian-cd.
Thanks.
#! /bin/sh
set -e

# This script originates from http://www.debian.org/mirror/anonftpsync

# Note: You MUST have rsync 2.0.16-1 or newer, which is available in slink
# and all newer Debian releases, or at http://rsync.samba.org/

# Set the variables below to fit your site. You can then use cron to have
# this script run daily to automatically update your copy of the archive.

# Don't forget:
# chmod 744 anonftpsync

# TO is the destination for the base of the Debian mirror directory
# (the dir that holds dists/ and ls-lR).

TO=/home/debian/debian

# RSYNC_HOST is the site you have chosen from the mirrors file.
# (http://www.debian.org/mirror/mirrors_full)

RSYNC_HOST=ftp.debian.org

# RSYNC_DIR is the directory given in the "Packages over rsync:" line of
# the mirrors file for the site you have chosen to mirror.

RSYNC_DIR=debian 

# EXCLUDE is a list of parameters listing patterns that rsync will exclude.
# The following example would exclude mostly everything:
EXCLUDE="\
  --exclude binary-alpha/ --exclude binary-arm/ \
  --exclude binary-m68k/ --exclude binary-powerpc/ --exclude binary-sparc/ \
  --exclude binary-ia64/ --exclude binary-mips*/ --exclude binary-hppa/ --exclude binary-sh/ \
  --exclude binary-s390 \
  --exclude *_alpha.deb --exclude *_arm.deb \
  --exclude *_m68k.deb --exclude *_powerpc.deb --exclude *_sparc.deb \
  --exclude *_ia64.deb --exclude *_hppa.deb --exclude *_mips.deb --exclude *_sh.deb \
  --exclude *_s390.deb --exclude *_mipsel.deb \
  --exclude unstable/ \
  --exclude sid/ \
  --exclude sid*/ \
  --exclude *alpha/ --exclude *arm/ --exclude *m68k/ \
  --exclude *powerpc/ --exclude *sparc/ --exclude *ia64/ \
  --exclude *hppa/ --exclude *mips/ --exclude *sh/ --exclude *s390/ \
"

# With a blank EXCLUDE you will mirror the entire archive.

#EXCLUDE=

# There should be no need to edit anything below this point, unless there
# are problems.

#-----------------------------------------------------------------------------#

# Note: on some non-Debian systems, hostname doesn't accept -f option.
# If that's the case on your system, make sure hostname prints the full
# hostname, and remove the -f option. If there's no hostname command,
# replace `hostname -f` with the hostname manually below.

LOCK="${TO}/Archive-Update-in-Progress-`hostname -f`"

# Get in the right directory and set the umask to be group writable
# 
cd $HOME
umask 002

# Check to see if another sync is in progress
if lockfile -! -l 43200 -r 0 "$LOCK"; then
  echo `hostname` is unable to start rsync, lock file exists
  exit 1
fi
# Note: on some non-Debian systems, trap doesn't accept "exit" as signal
# specification. If that's the case on your system, try using "0".
trap "rm -f $LOCK > /dev/null 2>&1" exit

set +e
rsync --recursive --links --times --verbose --compress --delete \
     --exclude "Archive-Update-in-Progress-`hostname -f`" \
     --exclude "project/trace/`hostname -f`" \
     $EXCLUDE \
     $RSYNC_HOST::$RSYNC_DIR/* $TO > rsync.log 2>&1
date -u > "${TO}/project/trace/`hostname -f`"

# Note: if you don't have savelog, use any other log rotation facility, or
# comment this out, the log will simply be overwritten each time.
savelog rsync.log > /dev/null 2>&1
#! /bin/sh
set -e

# This script originates from http://www.debian.org/mirror/anonftpsync

# Note: You MUST have rsync 2.0.16-1 or newer, which is available in slink
# and all newer Debian releases, or at http://rsync.samba.org/

# Set the variables below to fit your site. You can then use cron to have
# this script run daily to automatically update your copy of the archive.

# Don't forget:
# chmod 744 anonftpsync

# TO is the destination for the base of the Debian mirror directory
# (the dir that holds dists/ and ls-lR).

TO=/home/debian/debian-non-US

# RSYNC_HOST is the site you have chosen from the mirrors file.
# (http://www.debian.org/mirror/mirrors_full)

RSYNC_HOST=non-US.debian.org

# RSYNC_DIR is the directory given in the "Packages over rsync:" line of
# the mirrors file for the site you have chosen to mirror.

RSYNC_DIR=debian-non-US 

# EXCLUDE is a list of parameters listing patterns that rsync will exclude.
# The following example would exclude mostly everything:
EXCLUDE="\
  --exclude binary-alpha/ --exclude binary-arm/ \
  --exclude binary-m68k/ --exclude binary-powerpc/ --exclude binary-sparc/ \
  --exclude binary-ia64/ --exclude binary-mips*/ --exclude binary-hppa/ --exclude binary-sh/ \
  --exclude binary-s390 \
  --exclude *_alpha.deb --exclude *_arm.deb \
  --exclude *_m68k.deb --exclude *_powerpc.deb --exclude *_sparc.deb \
  --exclude *_ia64.deb --exclude *_hppa.deb --exclude *_mips.deb --exclude *_sh.deb \
  --exclude *_s390.deb --exclude *_mipsel.deb \
  --exclude unstable/ \
  --exclude slink/ --exclude slink*/ \
  --exclude sid/ \
  --exclude sid*/ \
  --exclude *alpha/ --exclude *arm/ --exclude *m68k/ \
  --exclude *powerpc/ --exclude *sparc/ --exclude *ia64/ \
  --exclude *hppa/ --exclude *mips/ --exclude *sh/ --exclude *s390/ \
"

# With a blank EXCLUDE you will mirror the entire archive.

#EXCLUDE=

# There should be no need to edit anything below this point, unless there
# are problems.

#-----------------------------------------------------------------------------#

# Note: on some non-Debian systems, hostname doesn't accept -f option.
# If that's the case on your system, make sure hostname prints the full
# hostname, and remove the -f option. If there's no hostname command,
# replace `hostname -f` with the hostname manually below.

LOCK="${TO}/Archive-Update-in-Progress-`hostname -f`"

# Get in the right directory and set the umask to be group writable
# 
cd $HOME
umask 002

# Check to see if another sync is in progress
if lockfile -! -l 43200 -r 0 "$LOCK"; then
  echo `hostname` is unable to start rsync, lock file exists
  exit 1
fi
# Note: on some non-Debian systems, trap doesn't accept "exit" as signal
# specification. If that's the case on your system, try using "0".
trap "rm -f $LOCK > /dev/null 2>&1" exit

set +e
rsync --recursive --links --times --verbose --compress --delete \
     --exclude "Archive-Update-in-Progress-`hostname -f`" \
     --exclude "project/trace/`hostname -f`" \
     $EXCLUDE \
     $RSYNC_HOST::$RSYNC_DIR/* $TO > rsync2.log 2>&1
date -u > "${TO}/project/trace/`hostname -f`"

# Note: if you don't have savelog, use any other log rotation facility, or
# comment this out, the log will simply be overwritten each time.
savelog rsync.log > /dev/null 2>&1
# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
#deb http://http.us.debian.org/debian testing main contrib non-free
#deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
#deb http://security.debian.org stable/updates main contrib non-free

# Uncomment if you want the apt-get source function to work
#deb-src http://http.us.debian.org/debian testing main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free

#deb ftp://ftp.debian.org/debian/ stable main non-free contrib
#deb-src ftp://ftp.debian.org/debian/ stable main non-free contrib
#deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb file:/home/debian/debian/ woody main contrib non-free
deb-src file:/home/debian/debian/ woody main contrib non-free
deb file:/home/debian/debian-non-US/ woody/non-US main contrib non-free
deb-src file:/home/debian/debian-non-US/ woody/non-US main contrib non-free

Attachment: conf.sh
Description: Bourne shell script


Reply to: