[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#557328: apt: autoremove / build-dep interaction broken by virtual packages



Control: found -1 2.6.1

On 2009-11-21 13:14:25 +0100, Andreas Metzler wrote:
> With APT::Get::Build-Dep-Automatic "apt-get autoremove" does not
> remove packages pulled in by provides. The extended_states file gets a
> wrong entry for the virtual package, instead of the real one.

For "apt-get autoremove", this is a more general bug, unrelated
to build-dep. For instance, after the upgrade to bookworm and
"apt autoremove --purge".

joooj:~> aptitude why gcc-8-base
i   devscripts   Recommends pristine-tar
i A pristine-tar Depends    pbzip2
i A pbzip2       Depends    libgcc1 (>= 1:3.0)
i A libgcc1      Depends    gcc-8-base (= 8.3.0-6)

even though libgcc1 is no longer in the archive. It is actually
provided by libgcc-s1 (which does not depend on gcc-8-base):

joooj:~> dpkg -s libgcc-s1
Package: libgcc-s1
[...]
Version: 12.2.0-14
Replaces: libgcc1 (<< 1:10)
Provides: libgcc1 (= 1:12.2.0-14)
[...]

So, as it was installed automatically ("A"), it should have been
removed by "apt autoremove".

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: