Copyright (C) 2001 Ian Maclaine-cross <iml@debian.org>. You may use
this only under the conditions of the General Public License in file
GPL.
This worked for me and "potato" on 20 September
2001. Future Debian archive changes require adjustments to these
instructions. Please back up your system before trying this as
mistakes by you or errors in the software or this document can cause a
complete loss of data. The steps are:---
Try "$ ftp ftp.us.debian.org" with username
"ftp" and password "username@" where
username is your current login name. Then "ftp> cd
debian" and "ftp> ls". Note down the names
and sizes of the README files then "ftp> bye". If this
does not work you do not have an FTP client installed or have no
FTP connection to the Internet. Until this is remedied you should
not attempt to install or use mirror.
Install the mirror package using dselect or
dpkg.
As root with "crontab -e" add these two lines to root's
crontab:
Run "ls -l /tmp" a few minutes apart to see if cron is working
and updating the timestamp on cron.marker every minute.
Your computer needs to run and be connected to the Internet
all night. Do not forget to turn the monitor off.
Next day check that cron is still working with "ls -l
/tmp". The directory /var/log/mirror/ should
have five files listing the files downloaded and mm.status
recording when the packages were run. See if directories
/home/ftp/pub/debian/ and
/var/lib/mirror/debian-non-US/ have the Debian
READMEs and the directory listing files
remote_ls-lR. Directory
/var/lib/mirror/debian-security/ should have a
README. The subdirectory dists/ should
have empty directories and links. Write down the subdirectory name
which the "stable" link points to. The
".mirror" files also log the results of the mirror
run. If this did not work read the fine manuals starting with
"man mirror" and proceed no further until the problem
is remedied. You may have a proxy server or need passive FTP.
Check with df whether you have >2.5 GB of hard disk space in the
partition containing /home/ftp/pub/. Can you afford
the download charges for 2.5 GB? It is best if you have no
download charges so check with your ISP.
"$ debian-mirrors" should give you the closest mirrors if they
are unknown. In the USA you also need an overseas mirror for
debian-non-US. Edit /etc/mirror/packages/debian-dists
as requested in the comments at the top of the file.
Third day check to see if you have most of the stable
distribution. One day soon you should get the result "No
files to transfer" in both ".mirror" files. You
can now uncomment the "get_symlink_files=" line in
packages/debian-dists to drag in missing "Not
symlinking ... as no path ..." files referred to in
"/var/log/mirror/".
If all these steps worked change dselect to install packages from
debian/ and debian-non-US/ and test them
by installing some new packages. If the packages install, well
done! Otherwise check the steps and read the manuals.
Read the manuals in /usr/share/doc/mirror/html/ for more
complex tasks and fine-tuning.