Bug#756509: apt: "apt upgrade" suggests to remove packages not installed with apt-get autoremove
Package: apt
Version: 1.0.6
Severity: minor
Hi,
running "apt upgrade" suggests to remove libcdt5, libcgraph6, and
libgvpr2. At the same time it also wants to install them, even though
graphviz is held back:
+---
| ~ # apt upgrade
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Calculating upgrade... The following packages were automatically installed and are no longer required:
| libcdt5 libcgraph6 libgvpr2
| Use 'apt-get autoremove' to remove them.
| Done
| The following NEW packages will be installed:
| libcdt5 libcgraph6 libgvpr2
| The following packages have been kept back:
| graphviz
| 0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
| Need to get 0 B/359 kB of archives.
| After this operation, 911 kB of additional disk space will be used.
| Do you want to continue? [Y/n] n
+---
Just to be sure, the packages are currently not installed:
+---
| ~ # dpkg -l libcdt5 libcgraph6 libgvpr2
| dpkg-query: no packages found matching libcdt5
| dpkg-query: no packages found matching libcgraph6
| dpkg-query: no packages found matching libgvpr2
+---
apt-get dist-upgrade will upgrade graphviz:
+---
| ~ # apt-get dist-upgrade
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Calculating upgrade... The following packages were automatically installed and are no longer required:
| libcdt4 libcgraph5 libgraph4 libgvpr1
| Use 'apt-get autoremove' to remove them.
| Done
| The following packages will be REMOVED:
| libgvc5
| The following NEW packages will be installed:
| libcdt5 libcgraph6 libgvc6 libgvpr2
| The following packages will be upgraded:
| graphviz
| 1 upgraded, 4 newly installed, 1 to remove and 0 not upgraded.
| Need to get 1415 kB/1774 kB of archives.
| After this operation, 10.4 MB of additional disk space will be used.
| Do you want to continue? [Y/n]
| [...]
| Unpacking graphviz (2.38.0-4) over (2.26.3-17.1) ...
+---
Afterwards apt-get autoremove removed libcdt4, libcgraph5, libgraph4,
libgvpr1. "apt upgrade" then stopped its strange behavior.
Ansgar
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^linux-image-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^linux-headers-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^linux-headers-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^linux-image-extra-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^linux-image-extra-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^linux-signed-image-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^linux-signed-image-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^kfreebsd-image-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^kfreebsd-image-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^kfreebsd-headers-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^kfreebsd-headers-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^gnumach-image-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^gnumach-image-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^.*-modules-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^.*-modules-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^.*-kernel-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^.*-kernel-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.14-1-amd64$";
APT::NeverAutoRemove:: "^linux-tools-3\.13-1-amd64$";
APT::NeverAutoRemove:: "^linux-tools-3\.14-1-amd64$";
APT::VersionedKernelPackages "";
APT::VersionedKernelPackages:: "linux-image";
APT::VersionedKernelPackages:: "linux-headers";
APT::VersionedKernelPackages:: "linux-image-extra";
APT::VersionedKernelPackages:: "linux-signed-image";
APT::VersionedKernelPackages:: "kfreebsd-image";
APT::VersionedKernelPackages:: "kfreebsd-headers";
APT::VersionedKernelPackages:: "gnumach-image";
APT::VersionedKernelPackages:: ".*-modules";
APT::VersionedKernelPackages:: ".*-kernel";
APT::VersionedKernelPackages:: "linux-backports-modules-.*";
APT::VersionedKernelPackages:: "linux-tools";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
APT::Periodic "";
APT::Periodic::Enable "1";
APT::Periodic::Update-Package-Lists "1";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
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::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Bin::lzma "/usr/bin/xz";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Dir::Ignore-Files-Silently:: "\.distUpgrade$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::PDiffs "0";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
DPkg::Post-Invoke:: "[ ! -e /usr/bin/how-can-i-help ] || /usr/bin/how-can-i-help";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
CommandLine "";
CommandLine::AsString "apt-config dump";
-- /etc/apt/preferences --
Package: *
Pin: release unstable
Pin-Priority: 100
Package: debian-keyring lintian debian-policy
Pin: release unstable
Pin-Priority: 500
Package: chromium chromium-inspector
Pin: release unstable
Pin-Priority: 500
Package: iceweasel xulrunner-29 libmozjs29d
Pin: release experimental
Pin-Priority: 500
Package: iceweasel xulrunner-29 libmozjs29d
Pin: release unstable
Pin-Priority: 500
Package: libdune-pdelab-dev libdune-pdelab-2.0dev libdune-typetree-dev libdune-typetree-2.3dev
Pin: release experimental
Pin-Priority: 500
-- /etc/apt/sources.list --
# deb http://ftp.halifax.rwth-aachen.de/debian/ jessie main
deb http://ftp.halifax.rwth-aachen.de/debian/ jessie main contrib non-free
deb-src http://ftp.halifax.rwth-aachen.de/debian/ jessie main
deb http://ftp.halifax.rwth-aachen.de/debian/ unstable main contrib non-free
deb-src http://ftp.halifax.rwth-aachen.de/debian/ unstable main contrib non-free
deb http://ftp.halifax.rwth-aachen.de/debian/ experimental main contrib non-free
deb-src http://ftp.halifax.rwth-aachen.de/debian/ experimental main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://www.43-1.org/~ansgar/apt sid main
deb-src http://www.43-1.org/~ansgar/apt sid main
deb http://www.43-1.org/~ansgar/apt experimental main
deb-src http://www.43-1.org/~ansgar/apt experimental main
# jessie-updates, previously known as 'volatile'
#deb http://ftp.halifax.rwth-aachen.de/debian/ jessie-updates main
#deb-src http://ftp.halifax.rwth-aachen.de/debian/ jessie-updates main
# jessie-backports, previously on backports.debian.org
#deb http://ftp.halifax.rwth-aachen.de/debian/ jessie-backports main
#deb-src http://ftp.halifax.rwth-aachen.de/debian/ jessie-backports main
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2012.4
ii gnupg 1.4.18-2
ii libapt-pkg4.12 1.0.6
ii libc6 2.19-7
ii libgcc1 1:4.9.1-1
ii libstdc++6 4.9.1-1
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.11-1
ii dpkg-dev 1.17.10
ii python-apt 0.9.3.8
-- no debconf information
Reply to: