Debian Bug report logs - #519469
apt-get proposes to autoremove packages not yet installed

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Luca Capello <[email protected]>

Date: Thu, 12 Mar 2009 23:21:19 UTC

Severity: minor

Merged with 517202

Found in versions apt/0.7.20.2, apt/0.7.21

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Luca Capello <[email protected]>, APT Development Team <[email protected]>:
Bug#519469; Package apt. (Thu, 12 Mar 2009 23:21:21 GMT) (full text, mbox, link).


Acknowledgement sent to Luca Capello <[email protected]>:
New Bug report received and forwarded. Copy sent to Luca Capello <[email protected]>, APT Development Team <[email protected]>. (Thu, 12 Mar 2009 23:21:21 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Luca Capello <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: apt-get proposes to autoremove packages not yet installed
Date: Fri, 13 Mar 2009 00:18:21 +0100
[Message part 1 (text/plain, inline)]
Package: apt
Version: 0.7.20.2
Severity: minor

Hello,

something strange is going on with apt-get:
=====
gismo:/etc# apt-get install qemubuilder
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bochsbios openhackware openbios-ppc openbios-sparc vgabios \
  esound-common libasyncns0 proll libpulse0 libesd-alsa0 libbluetooth2 \
  libvdeplug2 libaudiofile0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  bochsbios bridge-utils debootstrap esound-common kvm libasyncns0
  libaudiofile0 libbluetooth2 libdirectfb-1.2-0 libesd-alsa0 libpulse0 \
  libsdl1.2debian libsdl1.2debian-alsa libsvga1 libvdeplug2 libx86-1 \
  openbios-ppc openbios-sparc openhackware proll vgabios
Suggested packages:
  vde2 samba kvm-source esound pulseaudio qemu
Recommended packages:
  esound-clients
The following NEW packages will be installed:
  bochsbios bridge-utils debootstrap esound-common kvm libasyncns0 \
  libaudiofile0 libbluetooth2 libdirectfb-1.2-0 libesd-alsa0 libpulse0 \
  libsdl1.2debian libsdl1.2debian-alsa libsvga1 libvdeplug2 libx86-1 \
  openbios-ppc openbios-sparc openhackware proll qemubuilder vgabios
0 upgraded, 22 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 4431kB of archives.
After this operation, 12.2MB of additional disk space will be used.
Do you want to continue [Y/n]? ^C
gismo:/etc#
=====

FYI, the single package listed as not fully installed or removed is
slime, because of bug #518021 [1] (full output at bug #519455 [2]).

Going back to the real bug, according to apt-get, I can remove a bunch
of packages which are no longer required.  Unfortunately, these packages
are not even installed:
=====
gismo:/etc# dpkg -s bochsbios
Package `bochsbios' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

gismo:/etc# dpkg -s openbios-ppc
Package `openbios-ppc' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

gismo:/etc# dpkg -s proll
Package `proll' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

gismo:/etc#
=====

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://bugs.debian.org/518021
[2] http://bugs.debian.org/519455

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "false";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "none";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::Cache-Limit "88388604";
APT::Default-Release "unstable";
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";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Invoke "";
DPkg::Pre-Invoke:: "if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/etckeeper ]; then etckeeper post-install; fi";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
RPM "";
RPM::Pre-Invoke "";
RPM::Pre-Invoke:: "if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi";
RPM::Post-Invoke "";
RPM::Post-Invoke:: "if [ -x /usr/sbin/etckeeper ]; then etckeeper post-install; fi";
Acquire "";
Acquire::PDiffs "false";

-- (no /etc/apt/preferences present) --


-- (no /etc/apt/sources.list present) --


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring        2009.01.31 GnuPG archive keys of the Debian a
ii  libc6                         2.9-4      GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.3-5  GCC support library
ii  libstdc++6                    4.3.3-5    The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                       <none>     (no description available)
pn  aptitude | synaptic | gnome-a <none>     (no description available)
ii  bzip2                         1.0.5-1    high-quality block-sorting file co
ii  dpkg-dev                      1.14.25    Debian package development tools
ii  lzma                          4.43-14    Compression method of 7z format in
ii  python-apt                    0.7.8      Python interface to libapt-pkg

-- no debconf information
[Message part 2 (application/pgp-signature, inline)]

Merged 517202 519469. Request was from Luca Capello <[email protected]> to [email protected]. (Wed, 16 Jun 2010 10:06:07 GMT) (full text, mbox, link).


Information forwarded to [email protected], APT Development Team <[email protected]>:
Bug#519469; Package apt. (Sun, 27 Apr 2014 01:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to The Wanderer <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>. (Sun, 27 Apr 2014 01:06:05 GMT) (full text, mbox, link).


Message #12 received at [email protected] (full text, mbox, reply):

From: The Wanderer <[email protected]>
To: [email protected]
Subject: Re: apt-get proposes to autoremove packages not yet installed
Date: Sat, 26 Apr 2014 21:02:46 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I'm seeing what looks like a somwhat less severe version of this same
behavior.

As it stands, I have no packages listed as candidates for autoremoval:

========
root@apologia:~# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.
========

Attempting to dist-upgrade results in candidates listed for autoremoval,
all but one of which are also listed as candidates for new-package
installation:

========
root@apologia:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer
required:
  librtmp0:i386 libzita-alsa-pcmi0 libzita-resampler1 uuid-dev
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  gir1.2-atspi-2.0 libatspi2.0-dev librtmp1 librtmp1:i386
libsdl-gfx1.2-5 libzita-alsa-pcmi0 libzita-resampler1 nettle-dev
startpar uuid-dev
========

Something is screwy somewhere, though I'm not completely clear on
whether it's necessarily in apt or whether it might be in the dependency
constellation of some other package(s).

I'll hold off on completing this upgrade for a few days, in case this
gets any attention and there's anything useful to be discovered from my
system configuration.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJTXFc2AAoJEASpNY00KDJrjXkQAIMYZLxyUdVTu7nEYi7MI5uB
eHWh/mHaoCQLj1/JevECqVI9EpNvXA+SspyjTCGbmS7XCOddPKnAMNT3f5iYwa3/
4YAdiQdBfRZgWX3SICi4CDz2ZwPdjjX0SYiX5kq4Dzk90sbZJg0k651xkQJH5cPm
XHPXwZ/udFcqAQ1wwmOkTaNe4saX09K9s3/W2V8Q6SjPRb6T4lSwatlYAI/0Q5Pq
y5li1x3kNazGI2Cqahn3/w7FnFehg/pBx1a7VZ0m6DKfP0Oa3MAPYxzt+aczLUaO
gurPXPHMvnrxS3/Udq7wuzqBkk13Znx0udGMt2zItFF7KPJPSewLG+pkulj6DecO
KndjDxFXX63q6Bh6XCUMgNjYN+F/WDdAXTLtITZnnd4ZmTgj6ekO3sOqaTfdVAx+
0uPhRhPJgMMxvoDybJJRIPHu5m9m/M/mz4bAmBiVoOauu3ONBMlwLTgGvf9tLIpS
1M31DQJYBB7qt244JN4gYScyc4ay8xM83RWMJibZ3rC0/myGrlz1L9q5NJnEJuZE
5jnWsHhYrhithKDfh85BXQhFN6+b2lWC/rT9W78AC9CBO4/AuAgnlxJCWRerFZCH
7tZW1RodOLjjB1jWhBF+4jM3lRzFBL/46pyBIXN1K0W9eD2wqnXYyNj/0TH06L30
fWIsPwTlKY670Snp+gOZ
=D13N
-----END PGP SIGNATURE-----



Information forwarded to [email protected], APT Development Team <[email protected]>:
Bug#519469; Package apt. (Sun, 27 Apr 2014 18:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to The Wanderer <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>. (Sun, 27 Apr 2014 18:09:05 GMT) (full text, mbox, link).


Message #17 received at [email protected] (full text, mbox, reply):

From: The Wanderer <[email protected]>
To: [email protected]
Subject: Re: apt-get proposes to autoremove packages not yet installed
Date: Sun, 27 Apr 2014 14:07:08 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

It looks like this happens when:

* One version of a package is installed.

* A newer version of that package is available from the repositories.

* The newer version depends on a package which the currently-installed
version does not.

* The new-dependency package is not currently installed.

* The original package is for some reason marked as "kept back" by the
dist-upgrade logic, and so will not actually be upgraded.

In this circumstance, apt-get incorrectly selects the new dependency for
installation as a new package by dist-upgrade, even though the package
version that depends on it is not actually going to be installed. It
then correctly lists the newly installed package for autoremoval,
because nothing that's actually installed depends on it.


Here's the details of my case, from which I came to this conclusion:


I run an amd64 system, with i386 enabled on multiarch.

jackd1, libjack0, libjack0:i386, and libjack-dev are installed on my
system.

Both libjack-dev and jackd1 depend on libjack0.

The newest available version of jackd1 adds a dependency on
libzita-alsa-pcmi0 and libzita-resampler1, and the newest version of
libjack-dev adds a dependency on uuid-dev. None of those three packages
are currently installed.

Due to bug 740708, the current testing version of libjack0 is not
coinstallable with the current testing version of libjack0:i386.

As a result, libjack0 is "kept back" on dist-upgrade, causing
libjack-dev and jackd1 to also be kept back.

However, the new dependencies of those packages are still selected for
installation by dist-upgrade.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJTXUdMAAoJEASpNY00KDJrcw8P/RDZpTVzSmB2WbQ5oFMsGKh4
SmgaT1Z93Sd1EkPXgUAZxSRn2qKRQdAUBogKnDbFlsyOThB8Fcis15h1fHbBQZ6a
FGFL+YHNs7I+pRFHgpu22EUo4AbesektX5XecFMUniYeDaIlgp+vbrU2Rz+V8NGa
AkrZi030VZBkCVTmaK0PDzbb4NAtUmzo1/0/aiFjqOR/kpOVblxcw5N7XfWUmdHg
TtEUqmDViYkVYYO9NyWf7eU7PW6gxFNqHMHw1qVwyNwCl1xg7cIXr/nFNCdp/Nf8
yT+IjMXRzTKEDDr+gF/xJpNodHVjaXrPgi00m2Nd+h3RLnaNbolCYvGd/Bma2E6l
IwRB19XpQ8HA5Pt/6JJ12arZCnNRuop44dG71ggevZxIXVID9XK7xv/070a28kqB
4YK3SQq90Hzv0gzujlj+rzbK0ujchZe+DHnxbFGZJNMleYe5b3bqgExGmglVAERd
PEUTFfrrhEJbsxo8cJ2O9ARoMVDKfM/PVyhrqNSoPyPIEcNsS2n83K+yG7wlhyT7
nWgRJaeVmBC6ASjqwlEJlifunAxG3dQP1j56Xmwvm6FECp3kvQzLNddxMXTLhggD
XRuGg/oMxIUqRDe9oVmxYB2/VP/o5aQMvzeLvSRKbuwldvDw+pRW+MQAgi5oNfau
laP9tfl1+tORrJyjUIZ/
=cAO7
-----END PGP SIGNATURE-----



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 07:25:00 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.