Bug#618848: "apt-get remove libdb4.8" does many things, but doesn't remove the package
Package: apt
Version: 0.8.13
Severity: important
<-- snip -->
# apt-get remove libdb4.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqca2 libzbar0 libtokyocabinet8 libsilcclient-1.1-3 libflite1
libpolkit-qt-1-0 libcrush1 libqtsensors1 libknewstuff2-4 libmeanwhile1
libknewstuff3-4 libwireshark0 qemu-user openhackware libsrtp0 openbios-ppc
qemu-keymaps libcrypto++8 seabios libthreadweaver4 libkdecore5
libktexteditor4 libgupnp-1.0-3 libkmediaplayer4 libpolkit-gobject-1-0
plasma-scriptengine-javascript librpmio1 rpm-common libkrosscore4
libqtmultimediakit1 libfftw3-3 libwsutil0 librados1 libgadu3 openbios-sparc
etherboot-qemu libsolid4 libnice10 libelf1 libkdnssd4 libkparts4 libexempi3
shared-desktop-ontologies kdoctools libsilc-1.1-2 phonon-backend-xine
libsmi2ldbl libwireshark-data vgabios libgme0 libspeexdsp1 libiptcdata0
libkfile4 libkpty4 libwildmidi1 libphonon4 libkntlm4 libplasma3 libcdaudio1
libmimic0 libgupnp-igd-1.0-3 kdelibs-bin libc-ares2 libattica0 libkjsembed4
libpolkit-agent-1-0 libkio5 qemu-utils libkjsapi4 libqt4-webkit libzephyr4
libmusicbrainz4c2a libcelt0-0 isc-dhcp-common libqtwebkit4
gstreamer0.10-nice libwiretap0 libkde3support4 libssh-4 libknotifyconfig4
kdelibs5-plugins libkhtml5 libkdeui5 libkdesu5 libgssdp-1.0-2 libbluetooth3
libkutils4 libofa0 libqtlocation1 libvdeplug2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
anacron apt-utils isc-dhcp-common libdb4.7 libdb5.1 libpam-modules
libperl5.10 libraptor1 libsasl2-2 libwireshark-data libwireshark0
libwiretap0 libwsutil0 perl perl-base perl-modules python2.5
python2.5-minimal
Suggested packages:
default-mta mail-transport-agent powermgmt-base raptor-utils
snmp-mibs-downloader wireshark-doc python2.5-doc python-profiler
The following packages will be REMOVED:
alien apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
apt-listchanges cron cvs dblatex ekiga gdb git-svn glade gnome-dvb-client
gnome-dvb-daemon gstreamer0.10-plugins-bad iproute isc-dhcp-client kaffeine
kdebase-runtime libapache2-mod-passenger libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libcap2-bin libgladeui-1-9 libgstfarsight0.10-0 libnepomuk4
libnepomukquery4a libopal3.6.8 libpt2.6.7 libpurple0 libpython2.6
libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core
libreoffice-draw libreoffice-filter-binfilter libreoffice-help-en-us
libreoffice-impress libreoffice-math libreoffice-pdfimport
libreoffice-style-galaxy libreoffice-writer librpm1 librpmbuild1
libsasl2-modules libserf-0-0 libslv2-9 libsvn-perl libsvn1 mutt
openssh-client openssh-server pidgin python-apt python-gst0.10 qemu
qemu-system rpm rpm2cpio subversion totem totem-plugins
totem-plugins-dvb-daemon wireshark wireshark-common
The following NEW packages will be installed:
anacron libdb4.7 libdb5.1 python2.5 python2.5-minimal
The following packages will be upgraded:
apt-utils isc-dhcp-common libpam-modules libperl5.10 libraptor1 libsasl2-2
libwireshark-data libwireshark0 libwiretap0 libwsutil0 perl perl-base
perl-modules
13 upgraded, 5 newly installed, 68 to remove and 387 not upgraded.
Need to get 30.3 MB of archives.
After this operation, 472 MB disk space will be freed.
Do you want to continue [Y/n]?
<-- snip -->
Whatever apt is trying to do here, the one thing
I told it to do (removing libdb4.8) is not done.
On Ubuntu 10.04 with apt 0.7.25.3ubuntu9.3 I'm getting the expected result:
<-- snip -->
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
base-files libpam-modules (due to base-files) bash e2fsprogs libblkid1 (due
to e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs)
hostname upstart (due to hostname) login libpam-runtime (due to login) mount
0 upgraded, 0 newly installed, 1047 to remove and 1 not upgraded.
After this operation, 4,302MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
<-- snip -->
-- 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 "environment";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
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::Get "";
APT::Get::Show-Upgraded "yes";
APT::Clean-Installed "off";
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::dpkg "/usr/bin/dpkg";
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]+$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
DPkg "";
DPkg::Pre-Install-Pkgs "";
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/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
CommandLine "";
CommandLine::AsString "apt-config dump";
-- (no /etc/apt/preferences present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37.3 (SMP w/8 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 2010.08.28 GnuPG archive keys of the Debian a
ii gnupg 1.4.11-3 GNU privacy guard - a free PGP rep
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.6-20110116-1 GCC support library
ii libstdc++6 4.6-20110116-1 The GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
apt recommends no packages.
Versions of packages apt suggests:
ii apt-doc 0.8.10.3 Documentation for APT
ii aptitude 0.6.3-3.2 terminal-based package manager (te
ii bzip2 1.0.5-6 high-quality block-sorting file co
ii dpkg-dev 1.15.8.10 Debian package development tools
ii lzma 4.43-14 Compression method of 7z format in
ii python-apt 0.7.100.1 Python interface to libapt-pkg
-- no debconf information
Reply to: