Re: aptitude dist-upgrade removes important packages

Florian Kulzer wrote:
Most likely it is not a bug. It seems that some packages have been
marked as "automatically installed" and no other package on your system
depends on them anymore. In that case aptitude will remove these
"unused" packages unless you change that configuration option.

This should be fixable by running

aptitude unmarkauto '~M!~R~i'

to remove the "auto" mark from all the packages on which no other
installed package depends
These packages are marked as auto, but I am not sure if your fix will do what you think

root@main:~# aptitude unmarkauto '~M!~R~i'
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
bug-buddy eog esound fast-user-switch-applet file-roller gcalctool
gconf-editor gdm gedit gedit-common gnome-backgrounds gnome-cards-data
gnome-core gnome-games gnome-games-data gnome-keyring-manager
gnome-nettool gnome-system-tools gnome-themes gnome-utils gnomemeeting
gtk2-engines gtk2-engines-pixbuf gtkhtml3.8 gucharmap guile-1.6-libs
industrial-cursor-theme libavahi-compat-howl0 libdmx1 libgnomevfs2-bin
libgtkhtml3.8-15 libgtksourceview-common libgtksourceview1.0-0
libguile-ltdl-1 libopenh323-1.18.0 libpt-1.10.0 libpt-plugins-alsa
libpt-plugins-v4l python-gnome2-desktop system-tools-backends vino
zenity zip
The following packages have been kept back:
amarok amarok-engines amarok-xine apache2-utils apt-file base-files
cdrdao console-common console-data dbus debconf debconf-i18n
dictionaries-common discover1 discover1-data dvd+rw-tools e2fslibs
e2fsprogs enscript epiphany-browser evolution-data-server
evolution-data-server-common exim4 exim4-base exim4-config
exim4-daemon-light fastjar firefox firefox-gnome-support
foomatic-filters gettext-base gnome-applets gnome-applets-data
gnome-keyring gnome-media gnome-media-common gnumeric gnumeric-common
grep grub gstreamer0.10-plugins-ugly hal hdparm hpijs hpijs-ppds
ifupdown imagemagick inetutils-inetd initramfs-tools installation-report
iptables iputils-ping irb1.8 kappfinder kate kcontrol kdebase
kdebase-bin kdebase-data kdebase-kio-plugins kdelibs-data kdelibs4c2a
kdepasswd kdeprint kdesktop kfind khelpcenter kicker klibc-utils klipper
kmenuedit konqueror konqueror-nsplugins konsole kpager kpersonalizer
kppp ksmserver ksplash ksysguard ksysguardd ktip kwin libapache-mod-php4
libapr1 libavahi-client3 libavahi-common-data libavahi-common3
libavahi-compat-libdnssd1 libavahi-glib1 libavahi-qt3-1 libblkid1
libbonobo2-0 libbonobo2-common libcaca0 libcamel1.2-8 libcomerr2
libcucul0 libdbus-1-3 libdiscover1 libebook1.2-5 libecal1.2-6
libedata-book1.2-2 libedata-cal1.2-5 libedataserver1.2-7
libedataserverui1.2-6 libegroupwise1.2-10 libgail-common libgail17
libgdome2-cpp-smart0c2a libgksu2-0 libglib1.2 libglib1.2-dev
libgnome-keyring0 libgnome-media0 libgnutls13 libgphoto2-2
libgphoto2-port0 libgsf-1-114 libgsf-1-common libgsf-gnome-1-114
libgssapi2 libhal-storage1 libhal1 libhsqldb-java libjack0.100.0-0
libklibc libkonq4 libmagick9 libmyspell3c2 libmysqlclient15off libneon26
libnewt0.52 libopencdk8 liborbit2 libpam-modules libpam-runtime libpam0g
libpoppler0c2 libpoppler0c2-glib libreadline-ruby1.8 libreadline5
libruby1.8 libsdl1.2debian libsdl1.2debian-alsa libselinux1 libsmbclient
libsnmp-base libsnmp9 libss2 libtasn1-3 libtasn1-3-bin libtheora0
libtunepimp3 libuuid1 libxalan2-java libxerces2-java libxklavier10
libxml2 libxml2-utils libxslt1.1 libxvidcore4 linux-kernel-headers
locales mysql-client mysql-client-5.0 mysql-common mysql-server
mysql-server-5.0 nano nfs-common openssh-client openssh-server
php4 php4-common php4-mysql poppler-utils popularity-contest
postgresql-7.4 postgresql-client-7.4 postgresql-client-common
postgresql-common python-central python-libxml2 python-newt
python-numeric python-uno rdoc1.8 readline-common rhythmbox ruby1.8
strace tar telnet thunderbird ttf-opensymbol ucf vsftpd whiptail
xserver-xorg-input-evdev xserver-xorg-video-mga xsltproc
0 packages upgraded, 0 newly installed, 43 to remove and 212 not upgraded.
Need to get 0B of archives. After unpacking 135MB will be freed.
Do you want to continue? [Y/n/?]

So even in this command it tries to remove them.

To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

Relevant Pages

  • Aptitude issue
    ... I'm having an issue with Aptitude that I'm not sure how to correct. ... Reading state information... ... Writing extended state information... ... The following packages will be REMOVED: ...
  • aptitude has poor exit status behaviour
    ... In the course of scripting some aptitude upgrade activity I've found ... Ign etch/main Packages/DiffIndex ... Ign etch/updates/main Packages/DiffIndex ... Err etch/updates/main Packages ...
  • Re: Delete part of metapackage?
    ... example) without deleting or installing the entire KDE ... I'm guessing you are using aptitude to manage the package ... apt-get remove <a metapackage name> ... Then you can remove select packages in aptitude without questions ...
  • How recover from aborted dist-upgrade Stable to Testing (due to apt-listbug bug 585448)
    ... I did aptitude update, aptitude upgrade, then converted my /etc/apt/sources.list ... [SNIP 71 lines] ... The following packages will be REMOVED: ... A package failed to install. ...
  • Re: To dselect or aptitude, that is the question
    ... > Nine reasons why you should be using aptitude instead of apt-get or dselect. ... > install', it looks and works just like apt-get, with a few enhancements. ... > Stop worrying about pruning unused libraries and support packages from ... > the Recommends relationship. ...