apt-get on a local mirror
Finally got apt-mirror to work. I got the entire i386 site at
ftp.fi.debian.org mirrored on a USB drive. Now I am trying to do a simple
local apt-get on a test machine.
My mirror is located at /mnt/debmirror/ which has the mirror, skel, and var
subdirs in it.
I made a very simple sources.list file just for test, copied from the Man page
and changed to match my path. like so...
deb file:/mnt/debmirror/mirror/ftp.fi.debian.org/debian stable main
contrib non-free
deb file:/mnt/debmirror/mirror/ftp.fi.debian.org/debian unstable main
contrib non-free
deb-src file:/mnt/debmirror/mirror/ftp.fi.debian.org/debian unstable
main contrib non-free
When I run apt-get update to build my indexes I get the following errors in
part...
***************************
root@Rigel:~# apt-get update
Err file: stable/main Packages
File not found
Ign file: stable/main Release
(snip)
Failed to fetch
file:/mnt/debmirror/mirror/ftp.fi.debian.org/debian/dists/stable/main/binary-i386/Packages.gz
File not found
(snip)
Reading Package Lists... Done
W: Couldn't stat source package list file: stable/main Packages
(/var/lib/apt/lists/_mnt_debmirror_mirror_ftp.fi.debian.org_debian_dists_stable_main_binary-i386_Packages)
- stat (2 No such file or directory)
(snip)
**************************
What it appears to be looking for is this...
/mnt/debmirror/mirror/ftp.fi.debian.org/debian/dists/stable/main/binary-i386/Packages.gz
The actual path is this...
/mnt/debmirror/mirror/ftp.fi.debian.org/debian/dists/woody/main/binary-i386/Packages.gz
It looks like something isn't translating "stable" into "woody"
I assume that my sources.list file is wrong but so far haven't managed to fix
it. Anybody see what is wrong?
Thanks
krf
Reply to: