LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-04-2005, 01:50 AM   #1
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Rep: Reputation: 15
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..?



Last edited by nogetfx; 02-04-2005 at 02:15 AM.
 
Old 02-04-2005, 03:21 AM   #2
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 02-22-2006, 02:02 AM   #3
Cohobin
Member
 
Registered: Feb 2003
Posts: 51

Rep: Reputation: 15
gpg errors can be avoided by using the

--ignore-release-gpg

command line option. manpage for more details.

- bob
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
cannot get to Suse desktop since creating profile.local jhenager Linux - General 1 09-18-2005 12:44 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM
Creating Local Update Mirror wyohman Mandriva 9 12-28-2003 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration