Bug#376216: apt: Same dist-upgrade over and over, database not updated?
Package: apt
Version: 0.6.44.2
Severity: important
Usually, apt-get dist-upgrade will install some packages. Rerunning it
without an intervening "update" is supposed to find everything in order.
But not so anymore.
Rerunning the dist-upgrade wants to install the same set of packages again
and again and again...
Everytime, apt-get does the install, sets up packages, runs scripts etc.
dpkg -l confirms the new packages are installed
<command> --version confirms new program versions too.
But "apt" apparently forgets to record that the packages are, in fact,
upgraded. So a new apt-get dist-upgrade will go through the motions
and overwrite every package with the SAME version. Look at
this silliness:
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages have been kept back:
gdk-imlib1 gkrellm libkrb5-17-heimdal maxima-share sasl2-bin
The following packages will be upgraded:
airstrike bonnie++ cabextract cd-discid chktex cupsys-pt delo
desktop-file-utils diff docker ed gocr ifupdown libart-2.0-2 libaudiofile0
libcap1 libdvbpsi3 libdvdnav4 libgnome32 libgpgme-dev libgpgme6 libgsm1
libgtkgl2.0-1 libgtkgl2.0-dev libident libieee1284-3 libjasper-1.701-1
libjasper-runtime libmikmod2 liborbit-dev liborbit0 libpcap0.7
libraw1394-5
libselinux1 libsqlite0 libsqlite0-dev libstartup-notification0
libxml-parser-perl lmarbles mawk mp3c mpg321 potool potrace pppstatus
python-pyogg python-pyvorbis t1utils time unrtf xmlto xmms-find
xmms-finespectrum
53 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
2 not fully installed or removed.
Need to get 0B/5119kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 177441 files and directories currently installed.)
Preparing to replace mawk 1.3.3-11 (using .../mawk_1.3.3-11_amd64.deb) ...
Unpacking replacement mawk ...
Preparing to replace libsqlite0 2.8.16-1 (using
..../libsqlite0_2.8.16-1_amd64.de
b) ...
Unpacking replacement libsqlite0 ...
Preparing to replace diff 2.8.1-11 (using .../diff_2.8.1-11_amd64.deb) ...
Unpacking replacement diff ...
Setting up diff (2.8.1-11) ...
It continues like this for a hundred other packages. Every package
overwritten with the same version again. This shouldn't happen.
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
-- /etc/apt/preferences --
Package: *
Pin: release a=testing
Pin-Priority: 900
Package: *
Pin: release a=unstable
Pin-Priority: 800
Package: *
Pin: release a=experimental
Pin-Priority: 700
Package: *
Pin: release o=Debian
Pin-Priority: -10
-- /etc/apt/sources.list --
#sid=testing, sarge=unstable før.
#sarge=stable nå.
#firefox-problemet?
#Stable fins ikke for amd64 - ennå
deb http://amd64.debian.net/debian/ stable non-free main contrib
#url defunct
deb http://ftp.no.debian.org/debian testing main contrib non-free
deb http://ftp.no.debian.org/debian/ unstable main contrib non-free
deb http://ftp.no.debian.org/debian/ experimental main contrib non-free
#deb-src http://amd64.debian.net/debian/ testing main contrib non-free
deb-src http://ftp.no.debian.org/debian/ testing main contrib non-free
#Initng
deb http://debian.space-based.de/debs/ experimental main
#Blackdown java:
deb ftp://ftp.tux.org/java/debian/ testing non-free
#Ubuntu-pakker for xorg
#deb http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
#Dessverre bare for i386 :-(
#vlc, libdvdcss2
#deb http://download.videolan.org/pub/videolan/debian sid main
#deb http://nightlies.videolan.org/build/sid-amd64/arch sid main
deb http://nightlies.videolan.org/build/sid-amd64/arch ./
#Disse er nede for tiden!
##Marillat: unofficial deb packages, unstable, stable
#deb http://cyberspace.ucla.edu/marillat/ sid main
#deb http://cyberspace.ucla.edu/marillat/ sarge main
##stable,testing,unstable
#deb ftp://ftp.nerim.net/debian-marillat/ sarge main
#deb ftp://ftp.nerim.net/debian-marillat/ etch main
#deb ftp://ftp.nerim.net/debian-marillat/ sid main
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-mm4
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Versions of packages apt depends on:
ii libc6 2.3.6-15 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-5 GCC support library
ii libstdc++6 4.1.1-5 The GNU Standard C++ Library v3
Versions of packages apt recommends:
pn debian-archive-keyring <none> (no description available)
-- debconf-show failed
Reply to: