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

Re: apt-get wants to upgrade package to same version?



Le mercredi 21 août 2002 à 13:28:30, Brian May a écrit:
> Hello,

Hi,

> I have just being playing around with apt-proxy, and noticed something
> weird. Every time I run apt-get, it wants to upgrade the packages it
> just upgraded 5 seconds ago (it only happens on this computer, too):

[..]

> scrooge:/tmp# apt-cache policy kerberos4kth1
> kerberos4kth1:
>   Installed: 1.1-11-2
>   Candidate: 1.1-11-2
>   Version Table:
>      1.1-11-2 0
>          -1 http://snoopy.apana.org.au unstable/main Packages
>      1.1-11-2 0
>         700 http://snoopy.apana.org.au woody/main Packages
>  *** 1.1-11-2 0
>         100 /var/lib/dpkg/status
>      1.1-8-2 0
>         700 http://snoopy.apana.org.au woody/updates/main Packages
>         700 http://snoopy.apana.org.au woody/non-US/main Packages

I have just had the same problem (with different packages).

$ apt-cache policy libpisock8
libpisock8:
  Installed: 0.11.3-2
  Candidate: 0.11.3-2
  Version Table:
     0.11.3-2 0
        500 http://http.us.debian.org unstable/main Packages
     0.11.3-2 0                                             
        990 http://people.debian.org woody/. Packages
 *** 0.11.3-2 0   
        100 /var/lib/dpkg/status

And apt-get wanted to reinstall the same packages again and again.

$ sudo apt-get -s upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
  libpisock++0 libpisock8 pilot-link
3 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
Inst libpisock8 (0.11.3-2 Backports from sid:3.0/stable)
Inst libpisock++0 (0.11.3-2 Backports from sid:3.0/stable)
Inst pilot-link (0.11.3-2 Backports from sid:3.0/stable)
Conf libpisock8 (0.11.3-2 Backports from sid:3.0/stable)
Conf libpisock++0 (0.11.3-2 Backports from sid:3.0/stable)
Conf pilot-link (0.11.3-2 Backports from sid:3.0/stable)


After I changed the order of the lines in /etc/apt/sources.list the
"bug" was corrected.

I now have:

$ apt-cache policy libpisock8
libpisock8:  
  Installed: 0.11.3-2
  Candidate: 0.11.3-2
  Version Table:
 *** 0.11.3-2 0
        990 http://people.debian.org woody/. Packages
        100 /var/lib/dpkg/status
     0.11.3-2 0
        500 http://http.us.debian.org unstable/main Packages

from sources.list(5) you can read:
  "The file lists one source per line, with the most preferred source
  listed first."

Try to reorder your sources.list file.

Hope this helps.

Regards,

-- 
 Dr. Ludovic Rousseau                        Ludovic.Rousseau@free.fr
 -- Normaliser Unix c'est comme pasteuriser le Camembert, L.R. --



Reply to: