apt installs unneeded packages on a dist-upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 12.04 dev (amd64) with apt 0.8.16~exp12ubuntu4 and have set 'APT::Install-
sworddragon@
[sudo] password for sworddragon:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
libgettextpo0 libgphoto2-2 libgphoto2-port0 libmpg123-0 libopenal-data libopenal1 libunistring0
The following packages have been kept back:
ia32-libs wine1.3
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,848 kB of archives.
After this operation, 5,823 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 1,848 kB in 10s (183 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libunistring0.
(Reading database ... 111712 files and directories currently installed.)
Unpacking libunistring0 (from .../libunistrin
Selecting previously unselected package libgettextpo0.
Unpacking libgettextpo0 (from .../libgettextp
Selecting previously unselected package libgphoto2-port0.
Unpacking libgphoto2-port0 (from .../libgphoto2-
Selecting previously unselected package libgphoto2-2.
Unpacking libgphoto2-2 (from .../libgphoto2-
Selecting previously unselected package libmpg123-0.
Unpacking libmpg123-0 (from .../libmpg123-
Selecting previously unselected package libopenal-data.
Unpacking libopenal-data (from .../libopenal-
Selecting previously unselected package libopenal1.
Unpacking libopenal1 (from .../libopenal1_
Setting up libunistring0 (0.9.3-5) ...
Setting up libgettextpo0 (0.18.1.1-5ubuntu3) ...
Setting up libgphoto2-port0 (2.4.11-4ubuntu2) ...
Setting up libgphoto2-2 (2.4.11-4ubuntu2) ...
Setting up libmpg123-0 (1.12.1-3.2ubuntu1) ...
Setting up libopenal-data (1:1.13-4ubuntu2) ...
Setting up libopenal1 (1:1.13-4ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
sworddragon@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libgettextpo0 libgphoto2-2 libgphoto2-port0 libmpg123-0 libopenal-data libopenal1 libunistring0
0 upgraded, 0 newly installed, 7 to remove and 2 not upgraded.
After this operation, 5,823 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 111885 files and directories currently installed.)
Removing libgettextpo0 ...
Removing libgphoto2-2 ...
Removing libgphoto2-port0 ...
Removing libmpg123-0 ...
Removing libopenal1 ...
Removing libopenal-data ...
Removing libunistring0 ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
sworddragon@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
libgettextpo0 libgphoto2-2 libgphoto2-port0 libmpg123-0 libopenal-data libopenal1 libunistring0
The following packages have been kept back:
ia32-libs wine1.3
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/1,848 kB of archives.
After this operation, 5,823 kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
As you can see apt tries to install libgettextpo0, libgphoto2-2, libgphoto2-port0, libmpg123-0, libopenal-data, libopenal1 and libunistring0 because it thinks these packages are dependencies of some installed packages. But I can remove these packages without removing other packages. There is also such a case if i386 is activated as multiarch. The first dist-upgrade will install many packages which are not needed too:
sworddragon@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
acl bluez bluez-alsa:i386 esound-common gcc-4.6-base:i386 glib-networking
libaio1:i386 libao-common libao4:i386 libasn1-
libavahi-
libcupsimage2
libfreetype6:i386 libgcc1:i386 libgcrypt11:i386 libgd2-xpm:i386 libgdbm3:i386 libgdk-
libgphoto2-2 libgphoto2-2:i386 libgphoto2-port0 libgphoto2-
libhcrypto4-
libjpeg-
libmng1:i386 libmpg123-0 libmpg123-0:i386 libncurses5:i386 libncursesw5:i386 libnspr4:i386 libnss3:i386 libodbc1:i386 libogg0:i386 liboil0.3:i386 libopenal-data libopenal1 libopenal1:i386 liborc-0.4-0:i386 libp11-kit0:i386
libparted0debian1 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386 libproxy1:i386 libpulse-
libqt4-
libroken18-
libsgutils2-2 libshout3:i386 libslang2:i386 libsm6:i386 libsndfile1:i386 libsoup-
libtag1-
libv4lconvert
libxcb-
libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxt6:i386 libxv1:i386 libxxf86vm1:i386 odbcinst odbcinst1debian2 odbcinst1debian
xaw3dg:i386 zlib1g:i386
The following packages have been kept back:
ia32-libs wine1.3
0 upgraded, 230 newly installed, 0 to remove and 2 not upgraded.
Need to get 59.6 MB/61.4 MB of archives.
After this operation, 195 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
I can't reproduce anymore these 2 problems on the same version of apt. Maybe it was a dependency problem in the package lists.