debmirror from a debian

Jordon Bedwell jordon at
Sun Oct 31 00:20:02 UTC 2010

On 10/30/2010 01:08 PM, Tomas Alberto Ramirez Andujar wrote:
> Hi, I am trying to do debmirror to download the 10.10 repo, but.. no
> dice... here's my script:
> debmirror \
> --progress \
> --verbose \
> --nosource \
> --passive \
> --ignore-small-errors \
> --ignore-missing-release \
> --root=ubuntu/ubuntu \
> --method=http \
> --dist=lucid \
> --section=main,multiverse,restricted,universe \
> --arch=i386 \
> /media/Documents/UBUNTU/

Here is an example (including structure) from our live mirrors for our
clusters around the US and UK, from start to finish for you sir:

mkdir -p /srv/apt/mirror/ubuntu
mkdir /srv/apt/keys
gpg --no-default-keyring \
--keyring /srv/apt/keys/trustedkeys.gpg \
--import /usr/share/keyrings/ubuntu-archive-keyring.gpg
chown root:root /srv/apt/keys/trustedkeys.gpg
chmod og-wx,og+r /srv/apt/keys/trustedkeys.gpg

*Set your HTTP root to /srv/apt/mirror*

GNUPGHOME=/srv/apt/keys debmirror -a i386 \
--no-source \
-s main \
-h \
-d lenny,lenny-security,lenny-updates \
-r /ubuntu \
--progress \
-e http \

If you need a list of mirrors visit: there
are country code lists of mirrors.  EXP: uk.txt, us.txt try to pick them
by university or major company that you /trust/.  For example we only
mirror off of MIT on the east and we only mirror of Berkley in the west,
and Texas in the south because we trust them schools and they have
departments with competent learning engineers who can keep a server up.

More information about the ubuntu-users mailing list