LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Creating local debmirror (https://www.linuxquestions.org/questions/debian-26/creating-local-debmirror-286080/)

nogetfx 02-04-2005 01:50 AM

Creating local debmirror
 
Hi

I'm trying to create at local debmirror for my FAI-server. But! When i use the standard script it comes with an "gpg signature" error, it can't find the gpg from the ftp-site. I will only download 210 megs and a complet deb-mirror of woody should be oround 5 gigs.

The script
Code:

#! /bin/sh

# $Id: mkdebmirror,v 1.19 2004/07/08 11:35:44 lange Exp $
# Thomas Lange, lange@informatik.uni-koeln.de, (c) 2001-2004

# create partitial debian mirror using command debmirror(1) and rsync

# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rsync_disks() {

    # get the boot disks
    rsync --delete -av $2::debian/dists/$1/main/disks-$arch $destdir/debian/dists/$1/main/
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
update_from() {

    # update local mirror from a host
    host=$1
    allopt="$debug --passive --getcontents --nosource --arch=$arch --ignore=disks-$arch/"
    defopt="$allopt --host=$host --dist=$dist"

    echo "------------------ create mirror for debian ------------------"
    debmirror $destdir/debian $defopt

    echo "------------------ create mirror for debian-non-US ------------------"
    debmirror $destdir/debian-non-US $defopt -r /debian-non-US -s non-US/main,non-US/contrib,non-US/non-$
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# main program
#
# here you have to adjust the hostnames of the mirror and the names of the distributions


debug="$@"
arch=i386
dist=sarge,woody,sarge-proposed-updates,woody-proposed-updates

destdir=/files/scratch/debmirror

# first sync from a mirror near to you
update_from ftp.uni-koeln.de

# since this mirror is not always up to date, sync the rest from an official mirror
update_from ftp.de.debian.org

# even one should not mirror the security site, but I will do it.
echo "------------------ create mirror for debian-security ------------------"
debmirror $destdir/debian-security $allopt --host=security.debian.org -r debian-security -d sarge/update$

# get installation disk images via rsync
rsync_disks woody ftp2.de.debian.org

Any ideas..?



nogetfx 02-04-2005 03:21 AM

More errors

Code:


------------------ create mirror for debian ------------------
Mirroring to /files/scratch/debmirror/debian from ftp://anonymous:ftp.se.debian.org//debian/
Arches: i386
Dists: sarge,woody,sarge-proposed-updates,woody-proposed-updates
Sections: main,contrib,non-free,main/debian-installer
Passive mode on.
Attempting to get lock, this might take 2 minutes before it fails.
Get Release files.
[0%] Keeping: dists/sarge/Release
[0%] Keeping: dists/sarge/Release.gpg
gpg: Signature made Thu Feb  3 21:26:16 2005 CET using DSA key ID 4F368D5D
gpg: Can't check signature: public key not found
Release signature does not verify
[0%] Keeping: dists/woody/Release
[0%] Keeping: dists/woody/Release.gpg
gpg: WARNING: multiple signatures detected.  Only the first will be checked.


Cohobin 02-22-2006 02:02 AM

gpg errors can be avoided by using the

--ignore-release-gpg

command line option. manpage for more details.

- bob


All times are GMT -5. The time now is 06:56 PM.