Bug#574072: apt-get upgrade re-upgrades same packages over and over (to same already installed version)
Am Mittwoch 17 März 2010 15:04:56 schrieb David Kalnischkies:
> 2010/3/17 Sten Heinze <sten.heinze@gmx.de>:
> Back to the problem itself:
> The version merger in apt is a bit broken if multiply versions with
> different hashes are available. In your case two versions are available:
> the official and your rebuilt - now apt tries to merge the status file
> and doesn't find the right version and therefore creates a new one:
> This triggers the "local and online package with the same version
> but different hash - reinstall it" feature -- in an endless loop as it
> will reinstall version 2, but compares in the next run only against
> version 1 leading again to a version 3…
> This bug should be fixed by applying the patch from #351056 [0].
> I have therefore optimistically merged your bug to this group and
> the changelog will close them all together as most (if not all) are
> caused by this bug or no longer reproducible with newer APT…
> … or caused by the reinstall feature which if it runs only one time
> is really a feature as it is a simple matter of pinning in action.
I compiled my own apt version 0.7.25.3+patch r1962 (and I had to add the
build-deps of r1959 to make it build, both from the mentioned bazaar repo),
and it fixes it:
# apt-cache policy libqt4-designer
libqt4-designer:
Installiert: 4:4.6.2-1
Kandidat: 4:4.6.2-1
Versions-Tabelle:
4:4.6.2-1 0
1 http://ftp.de.debian.org experimental/main Packages
*** 4:4.6.2-1 0
500 file: ./ Packages
100 /var/lib/dpkg/status
4:4.5.3-4 0
500 http://ftp.de.debian.org testing/main Packages
50 http://ftp.de.debian.org unstable/main Packages
4.4.3-1+lenny1 0
500 http://security.debian.org stable/updates/main Packages
4.4.3-1 0
500 http://ftp.de.debian.org stable/main Packages
On apt-get upgrade, no upgrade of qt to the already installed version is
happening anymore.
Thanks a lot!
Sten
Reply to: