apt-get is still offering updates for clamav - which I've uninstalled

Asked by Duncan Lithgow

I'm still being offered packages for something I thought I'd uninstalled... i was about to make a bug report, but now I'm not sure it isn't my own fault. But what's going on?

 duncan@ubuntu:~$ sudo apt-get -u upgrade
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following packages will be upgraded:
   clamav clamav-base clamav-freshclam file libclamav2 libexif12 libmagic1
   libpng12-0 libxvidcore4 linux-headers-2.6.20-16
   linux-headers-2.6.20-16-generic linux-image-2.6.20-16-generic mencoder
   mplayer xscreensaver-data xscreensaver-gl
 16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 Need to get 54,4MB of archives.
 After unpacking 201kB of additional disk space will be used.
 Do you want to continue [Y/n]?

So I got a copy of apt-show-versions and discovered:
 libhtml-parser-perl/feisty uptodate 3.55-1build1
 clamav-base/feisty upgradeable from 0.90.2-0ubuntu1.1 to 0.90.2-0ubuntu1.2
 linux-generic/feisty uptodate 2.6.20.16.28.1
... that clamav-base was still installed.

So I tried to remove it and got:
 duncan@ubuntu:~$ sudo apt-get remove clamav-base
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following extra packages will be installed:
   clamav clamav-data
 Suggested packages:
   unrar lha clamav-docs
 Recommended packages:
   arj unzoo
 The following packages will be REMOVED:
   clamav-base clamav-freshclam
 The following NEW packages will be installed:
   clamav-data
 The following packages will be upgraded:
   clamav
 1 upgraded, 1 newly installed, 2 to remove and 13 not upgraded.
 Need to get 9608kB of archives.
 After unpacking 1610kB disk space will be freed.
 Do you want to continue [Y/n]?
... what's going on here?

PS: I'm pretty sure I installed and uninstalled Clam AV using 'Add/Remove Programs'.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Duncan Lithgow
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Templin (coastgnu) said :
#1

On Thu, 14. June 2007 00:31:04 Duncan Lithgow wrote:
> New question #8181 on Ubuntu:
> https://answers.launchpad.net/ubuntu/+question/8181
>
> I'm still being offered packages for something I thought I'd uninstalled...
> i was about to make a bug report, but now I'm not sure it isn't my own
> fault. But what's going on?
Sounds like some package from the clamav 'family' are still installed.

>
> duncan@ubuntu:~$ sudo apt-get -u upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be upgraded:
> clamav clamav-base clamav-freshclam libclamav2
You have to uninstall all of the above packages, not only clamav-base as you
did in your example.
So try a:
 apt-get remove clamav clamav-base clamav-freshclam libclamav2
or:
 apt-get remove --purge clamav clamav-base clamav-freshclam libclamav2
The option --purge will also remove all conf files.

That should solve your problems.
The rest below is a bit more background info or as we like to say in
Germany 'Butter bei die Fische' (Where's the beef!)

> file libexif12 libmagic1
> libpng12-0 libxvidcore4 linux-headers-2.6.20-16
> linux-headers-2.6.20-16-generic linux-image-2.6.20-16-generic mencoder
> mplayer xscreensaver-data xscreensaver-gl
> 16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> Need to get 54,4MB of archives.
> After unpacking 201kB of additional disk space will be used.
> Do you want to continue [Y/n]?
>
> So I got a copy of apt-show-versions and discovered:
> libhtml-parser-perl/feisty uptodate 3.55-1build1
> clamav-base/feisty upgradeable from 0.90.2-0ubuntu1.1 to 0.90.2-0ubuntu1.2
> linux-generic/feisty uptodate 2.6.20.16.28.1
> ... that clamav-base was still installed.
>
> So I tried to remove it and got:
> duncan@ubuntu:~$ sudo apt-get remove clamav-base
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
> clamav clamav-data
> Suggested packages:
> unrar lha clamav-docs
> Recommended packages:
> arj unzoo
> The following packages will be REMOVED:
> clamav-base clamav-freshclam
> The following NEW packages will be installed:
> clamav-data
> The following packages will be upgraded:
> clamav
> 1 upgraded, 1 newly installed, 2 to remove and 13 not upgraded.
> Need to get 9608kB of archives.
> After unpacking 1610kB disk space will be freed.
> Do you want to continue [Y/n]?
> ... what's going on here?
>
> PS: I'm pretty sure I installed and uninstalled Clam AV using 'Add/Remove
> Programs'.

Have a look if one of the following programms is still installed:
clamav - antivirus scanner for Unix
clamav-base - base package for clamav, an anti-virus utility for Unix
libclamav2 - virus scanner library
clamav-freshclam - downloads clamav virus databases from the Internet

And may be the following (but they should be marked for removal by apt itself
('automagic' :), at least if the programms above where marked for removal):

clamtk - graphical front-end for ClamAV
klamav - KDE frontend for ClamAV
avscan - GTK frontend for the Clam AntiVirus scanner (ClamAV)
clamav-daemon - antivirus scanner daemon
clamav-milter - antivirus scanner for sendmail
clamassassin - email virus filter wrapper for ClamAV
clamav-data - clamav data files
clamav-getfiles - Update script for clamav
clamfs - An user-space anti-virus protected file system
clamsmtp - virus-scanning SMTP proxy

You may use synaptic, precisely the search function of synaptic. Search for
clam (set 'Look in:' to 'Description and Name').
Mark all installed clamav packages for removal or complete removal using
synaptic and press the 'Apply' button.

Note: In some cases it is better to use aptitude on the commandline than
apt-get especially for removing packages. Aptitude is more 'intelligent' in
such a case than apt-get.
This because aptitude will also remove all packages wich where installed as a
dependency (if not needed otherwise).
E.G. if a package like clamav-base has a dependency to annother package, here
clamav-base depends on clamav, an 'apt-get install clamav-base' will also
install clamav.
*But* if you remove clamav-base with 'apt-get remove clamav-base' this will
not remove clamav! So here it's a better choice to use aptitude on the
commandline than apt-get. E.G. using 'aptitude remove clamav-base' will
remove clamav-base *and* clamav (only if clamav is not used by another
package which might have been installed later on)!

regards,
thomas

Revision history for this message
Duncan Lithgow (duncan-lithgow) said :
#2

I don't remember how, but this problem has been solved.