4

Since Lucid's packages where moved from archive.ubuntu.com to old-releases.ubuntu.com I'm a bit worried about availability of the repository and want to provide a full local mirror.

Are you aware of a way to download the whole Ubuntu package repository (lucid, lucid-backports, lucid-security and lucid-updates) other than wget -r? I cannot connect with rsync or ftp to old-releases.ubuntu.com.

Edit: This question is not a duplicate of How to create a local APT repository? since the question is about how to mirror from old-releases.ubuntu.com without knowing which packages to mirror (otherwise I could have simply used apt-proxy).

ooxi
  • 151

1 Answers1

4

There are some mirroring tools available, debmirror is one of them (apt-get install debmirror).

The following script (basically one command) hopefully works. The full release is quite many gigabytes, so I didn't test this thoroughly.

#!/bin/sh
debmirror -v --timeout=300 \
 --cleanup --host=old-releases.ubuntu.com \
 --root=ubuntu --method=http --diff=none \
 --getcontents --no-check-gpg \
 --no-source \
 --di-dist=lucid --di-arch=i386,amd64 \
 --section=main,restricted,universe,multiverse,main/debian-installer \
 --dist=lucid,lucid-updates,lucid-security \
 --arch=i386,amd64 /mirror/lucid