Comment 9 for bug 34376

Revision history for this message
Net Venture (netventure) wrote :

Ingo: Using 3 debmirror statements is ok as long as you don't cleanup the mirror. But if you use a --cleanup (or post cleanup) then the last debmirror statement will deem the files downloaded by the previous statements as unneeded and hence, delete them.

Brak:

I've switched to using apt-mirror. There are some inconveniences
1: using a different mirror server for the same repo (ex: hardy) will result in a complete download of the repo
2: a slightly complex directory structure

If you want to use apt-mirror, here is what you can do:
$ sudo apt-get install apt-mirror
$ delete all the lines in /etc/apt/mirror.list and replace with the following:
==========Cut Here=========
############# config ##################
#
set base_path /home/Repository-hardy
#
# if you change the base path you must create the directories below with write privlages
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
set nthreads 20
set tilde 0
#
############# end config ##############

deb http://archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu hardy main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
#deb http://archive.ubuntu.com/ubuntu hardy-updates main/debian-installer restricted/debian-installer universe/debian-installer
#deb http://archive.ubuntu.com/ubuntu hardy-backports main/debian-installer
#deb http://archive.ubuntu.com/ubuntu hardy-security main/debian-installer universe/debian-installer
==========Cut Here=========

As you can see, the debian-installer for hardy-updates, backports and security have been commented out. This is because they are not available on the server yet (at the time of this writing). You need to check manually on the server occasionally and then enable them in the mirror.list file.

This debmirror issue has not been resolved even after nearly 2 years. I hope that someone gets to fix it and make it a better alternative to apt-mirror.

--NV