Ubuntu 10.04 Lucid to 12.04 Precise apt-get autoremove

Hi guys

sometime ago I upgraded from Ubuntu 10.04 Lucid to 12.04 Precise. in the instructions to upgrade is the following

Reset Dependency Flags

These packages are already installed, but the following command will tell apt not include them anytime “apt-get autoremove” is run:

apt-get install bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd webmin usermin webmin-virtual-server libcrypt-ssleay-perl webmin-virtual-server-theme webmin-virtualmin-dav webmin-virtualmin-svn webmin-virtualmin-awstats webmin-virtualmin-mailman webmin-virtualmin-htpasswd clamav-base clamav-daemon clamav clamav-data clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin usermin-virtual-server-theme procmail-wrapper php-pear php5 php5-cgi webmin-security-updates libgd2-xpm

Now when ever I run an update I get

The following packages were automatically installed and are no longer required:
pwgen proftpd-basic libnet-ip-perl db4.8-util libnet-dns-perl re2c clamav
linux-headers-3.2.0-32 linux-headers-3.2.0-33 linux-headers-3.2.0-34
linux-headers-3.2.0-35 linux-headers-3.2.0-36 libnet-xwhois-perl awstats
linux-headers-3.2.0-34-generic clamav-base subversion libclamav6 libsvn1
spamc libapache2-mod-fcgid linux-headers-3.2.0-32-generic mailman scponly
libpg-perl clamav-docs linux-headers-3.2.0-35-generic libneon27-gnutls
libapache2-svn postgresql liberror-perl webalizer ssh libdbd-pg-perl
clamav-freshclam libtommath0 libnetaddr-ip-perl libmail-spf-perl
linux-headers-3.2.0-33-generic clamav-daemon libsys-hostname-long-perl
libdigest-hmac-perl linux-headers-3.2.0-36-generic spamassassin
clamav-testfiles
Use ‘apt-get autoremove’ to remove them.

which includes the following packets that were supposed to be marled not to be removed.

clamav-base subversion spamc libapache2-mod-fcgid mailman scponly libpg-perl clamav-docs libapache2-svn postgresql webalizer libdbd-pg-perl clamav-freshclam clamav-daemon spamassassin clamav-testfiles

My Question are,

are these packets going to be removed if I run ‘apt-get autoremove’?

and

do I need to do something to make sure they are not removed?

Howdy,

I would try running this command again (which includes a few more I added just now). After running it, they should hopefully no longer appear in the autoremove list (oh, and to answer your question, yes, they really would be removed it you ran the autoremove):

apt-get install clamav-base subversion spamc libapache2-mod-fcgid mailman scponly libpg-perl clamav-docs libapache2-svn postgresql webalizer libdbd-pg-perl clamav-freshclam clamav-daemon spamassassin clamav-testfiles proftpd-basic awstats libclamav6 ssh

That worked thanks. Below is the result of running the command.

Reading package lists…
Building dependency tree…
Reading state information…
awstats is already the newest version.
awstats set to manually installed.
spamassassin is already the newest version.
spamassassin set to manually installed.
spamc is already the newest version.
spamc set to manually installed.
ssh is already the newest version.
ssh set to manually installed.
subversion is already the newest version.
subversion set to manually installed.
libapache2-mod-fcgid is already the newest version.
libapache2-mod-fcgid set to manually installed.
libapache2-svn is already the newest version.
libapache2-svn set to manually installed.
libdbd-pg-perl is already the newest version.
libdbd-pg-perl set to manually installed.
libpg-perl is already the newest version.
libpg-perl set to manually installed.
proftpd-basic is already the newest version.
proftpd-basic set to manually installed.
webalizer is already the newest version.
webalizer set to manually installed.
clamav-base is already the newest version.
clamav-base set to manually installed.
clamav-daemon is already the newest version.
clamav-daemon set to manually installed.
clamav-docs is already the newest version.
clamav-docs set to manually installed.
clamav-freshclam is already the newest version.
clamav-freshclam set to manually installed.
libclamav6 is already the newest version.
libclamav6 set to manually installed.
mailman is already the newest version.
mailman set to manually installed.
postgresql is already the newest version.
postgresql set to manually installed.
clamav-testfiles is already the newest version.
clamav-testfiles set to manually installed.
scponly is already the newest version.
scponly set to manually installed.
The following packages were automatically installed and are no longer required:
linux-headers-3.2.0-32 linux-headers-3.2.0-33 linux-headers-3.2.0-34
linux-headers-3.2.0-35 linux-headers-3.2.0-36 linux-headers-3.2.0-34-generic
linux-headers-3.2.0-32-generic linux-headers-3.2.0-35-generic
linux-headers-3.2.0-33-generic linux-headers-3.2.0-36-generic
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I brought up a similar subject last year - https://www.virtualmin.com/node/23229.

This time round, I had to also include proftpd-basic in the list of packages not to be removed, making the full command…

apt-get install apache2 apache2-doc awstats bind9 clamav clamav-base clamav-daemon clamav-docs clamav-freshclam clamav-testfiles dovecot-common dovecot-imapd dovecot-pop3d iptables irb libapache2-mod-fcgid libapache2-svn libclamav6 libcrypt-ssleay-perl libdbd-mysql-perl libdbd-pg-perl libgd2-xpm libnet-ssleay-perl libpg-perl libsasl2-2 libsasl2-modules mailman mysql-client mysql-common mysql-server openssl php-pear php5 php5-cgi postgresql postgresql-client procmail procmail-wrapper proftpd proftpd-basic python quota rdoc ri ruby sasl2-bin scponly spamassassin spamc subversion usermin usermin-virtual-server-theme webalizer webmin webmin-security-updates webmin-virtual-server webmin-virtual-server-theme webmin-virtualmin-awstats webmin-virtualmin-dav webmin-virtualmin-htpasswd webmin-virtualmin-mailman webmin-virtualmin-svn