On 2/18/06, Andreas Janssen <[EMAIL PROTECTED]> wrote:
> >
> > This downloads updates currently needed, and puts them into an
> > apt-move style archive in /usr/mirror, which is then picked up like so
> > in sources.list:
> >
> > deb file:/usr/mirror/debian testing main
> >
> > However, even if a file exists in /usr/mirror, apt-upgrade will still
> > tryn and download it.
>
> Check apt-cache policy packagename to see if your apt-move package
> source is listed. If it is, move it to a higher position in your
> sources.list and run apt-get update.

Thanks for the suggestions Andreas, I didn't know about the policy
option before.  I used it and came up with the following:

/usr/mirror is in sources.list:

commanche:~# grep /usr/mirror /etc/apt/sources.list
#deb file:/usr/mirror/debian testing/updates main contrib non-free
deb file:/usr/mirror/debian testing main

commanche:~# apt-cache policy cpp
cpp:
  Installed: 4:4.0.2-2
  Candidate: 4:4.0.2-2
  Version table:
 *** 4:4.0.2-2 0
        500 file: testing/main Packages
        500 http://ftp.uk.debian.org testing/main Packages
        100 /var/lib/dpkg/status

apt-get upgrade will now try and get cpp-4.0 4.0.2-8, however:

commanche:~# find /usr/mirror -name cpp*deb|grep   4.0.2-8
/usr/mirror/debian/pool/main/g/gcc-4.0/cpp-4.0_4.0.2-8_i386.deb

Interrupting apt-upgrade, running apt-update again and rerunning it
still won't pick it up from the local mirror.

--
chris

--
regards, chris

Reply via email to