[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-move archive isn't read by apt-get



Hi --

To keep ADSL usable during the day I have a script that runs the
following actions overnight:

/usr/bin/apt-get update &&
/usr/bin/apt-get autoclean &&
/usr/bin/apt-get -dy dist-upgrade &&
/usr/bin/apt-move update &&
/usr/bin/apt-get update

I have an apt-move.conf file with these values set:

APTSITES="/all/"
LOCALDIR=/usr/mirror/debian
DIST=testing
PKGTYPE=binary
FILECACHE=/var/cache/apt/archives

Amongst others.  I then have these lines in a source file:

deb file:/usr/mirror/debian testing main
deb file:/usr/mirror/debian testing/updates main contrib non-free

So the idea is that all the updated packages download overnight - are
put into the apt-move repository (where they also get served up over
HTTP to other machines) and where I can use them locally.

This used to work - or rather this worked and then stopped working and
there may be changes in the above reflecting fiddling trying to get
things to work.

The problem is that often apt-get is still trying to download things
that are already available locally, i'll see it try to get something
from the archive - and then if I do a find on /usr/mirror i'll see
that it's already been downloaded overnight.

I'm loathe to use apt-proxy instead as I've found it to be rather
unstable in use.

--
regards, chris



Reply to: