APT shows same-version packages as upgradable when the packages are the same version but are different (e.g. one from debian, one from ubuntu)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt
If two sources provide the same version of a package, that package is forever upgradable in APT/aptitude. This happens even if one of the sources has negative priority:
shot@devielle:~$ cat /etc/apt/
Package: *
Pin: release a=feisty-backports
Pin-Priority: -1
Package: *
Pin: release o=Debian
Pin-Priority: -1
shot@devielle:~$ apt-cache policy pkg-config
pkg-config:
Installed: 0.21-1
Candidate: 0.21-1
Version table:
0.21-1 0
-1 http://
0.21-1 0
500 http://
*** 0.21-1 0
100 /var/lib/
The package pkg-config is forever upgradable (and aptitude installs the Ubuntu and Debian versions alternatively) unless I remove the Debian repositories from my config.
The above only happens when the version numbers are equal; if the low-pinned version is newer, it’s not up for an upgrade:
shot@devielle:~$ apt-cache policy apt ftp.debian. org experimental/main Packages archive. ubuntu. com feisty/main Packages dpkg/status ftp.debian. org unstable/main Packages
apt:
Installed: 0.6.46.4ubuntu7
Candidate: 0.6.46.4ubuntu7
Version table:
0.7.0 0
-1 http://
*** 0.6.46.4ubuntu7 0
500 http://
100 /var/lib/
0.6.46.4 0
-1 http://