ClamAV wont update

23 posts / 0 new
Last post
#1 Sun, 12/30/2007 - 15:45
SteveHeinsch

ClamAV wont update

I tried to update clamav via virtualmin and got an error, which isnt obvious from the message:

Now updating clamav .. Installing package(s) with command yum -y install clamav .. Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package clamav.x86_64 0:0.92-1.vm.el5 set to be updated --> Running transaction check --> Processing Dependency: libclamav.so.1()(64bit) for package: clamd --> Processing Dependency: clamav = 0.88.1-2.vm for package: clamd --> Processing Dependency: data(clamav) for package: clamav --> Processing Dependency: clamav-lib = 0.92-1.vm.el5 for package: clamav --> Processing Dependency: libclamav.so.3()(64bit) for package: clamav --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package clamav-lib.x86_64 0:0.92-1.vm.el5 set to be updated ---> Package clamav-data.x86_64 0:0.92-1.vm.el5 set to be updated --> Running transaction check --> Processing Dependency: libclamav.so.1()(64bit) for package: clamd --> Processing Dependency: clamav = 0.88.1-2.vm for package: clamd --> Processing Dependency: clamav-filesystem = 0.92-1.vm.el5 for package: clamav-data --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package clamav-filesystem.x86_64 0:0.92-1.vm.el5 set to be updated --> Running transaction check --> Processing Dependency: libclamav.so.1()(64bit) for package: clamd --> Processing Dependency: clamav = 0.88.1-2.vm for package: clamd --> Finished Dependency Resolution .. install failed! service clamd status

clamd (pid 2937) is running...

any suggestions? Running on CentOS4.4 Thanks<br><br>Post edited by: SteveHeinsch, at: 2007/12/30 16:01

Tue, 01/01/2008 - 13:04
siteomatic

same problem here (different output). I'm running the following:

Webmin version 1.380
Virtualmin version 3.50 (Pro)

CentOS Linux 5.1
Perl version 5.008008
Postfix version 2.3.3
BIND version 9.3.3
Apache version 2.2.3
PHP version 5
Webalizer version 2.01-10
Logrotate version 3.7.4
MySQL version 5.0.22
PostgreSQL version 8.1.9
ProFTPd version 1.31
SpamAssasssin version 3.2.3
ClamAV version 0.91.2

Now updating clamav ..

Installing package(s) with command yum -y install clamav ..

Loading &quot;installonlyn&quot; plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamav.i386 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: clamav-lib = 0.92-1.vm.el5 for package: clamav
--&gt; Processing Conflict: clamav-filesystem conflicts clamav &gt; 0.91.2-2.vm.el5
--&gt; Processing Dependency: libclamav.so.3 for package: clamav
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamav-filesystem.i386 0:0.92-1.vm.el5 set to be updated
---&gt; Package clamav-lib.i386 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: clamav-filesystem = 0.91.2-2.vm.el5 for package: clamav-data
--&gt; Processing Dependency: clamav-filesystem = 0.91.2-2.vm.el5 for package: clamav-server
--&gt; Processing Dependency: clamav-lib = 0.91.2-2.vm.el5 for package: clamav-server
--&gt; Processing Dependency: libclamav.so.2 for package: clamav-update
--&gt; Processing Dependency: libclamav.so.2 for package: clamav-server
--&gt; Processing Dependency: clamav-filesystem = 0.91.2-2.vm.el5 for package: clamav-update
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamd.i386 0:0.92-1.el5.rf set to be updated
---&gt; Package clamav-db.i386 0:0.92-1.el5.rf set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: clamav-server = 0.91.2-2.vm.el5 for package: clamav-server-sysv
--&gt; Processing Dependency: data(clamav) for package: clamav-lib
--&gt; Processing Dependency: data(clamav) for package: clamav
--&gt; Processing Dependency: clamav = 0.92-1.el5.rf for package: clamd
--&gt; Processing Dependency: /usr/bin/freshclam for package: virtualmin-base
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamav-data.i386 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: clamav-server = 0.91.2-2.vm.el5 for package: clamav-server-sysv
--&gt; Processing Dependency: clamav = 0.92-1.el5.rf for package: clamd
--&gt; Processing Dependency: /usr/bin/freshclam for package: virtualmin-base
--&gt; Finished Dependency Resolution

.. install failed!

I also tried to clean the Yum cache, rebuild the rpm db and tried again. Here's the direct yum output from shell:

# yum update
Loading &quot;installonlyn&quot; plugin
Setting up Update Process
Setting up repositories
virtualmin 100% |=========================| 951 B 00:00
virtualmin-universal 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 27 kB 00:00
################################################## 91/91
primary.xml.gz 100% |=========================| 8.5 kB 00:00
################################################## 58/58
primary.xml.gz 100% |=========================| 1.5 MB 00:04
################################################## 5911/5911
primary.xml.gz 100% |=========================| 834 kB 00:02
################################################## 2400/2400
primary.xml.gz 100% |=========================| 87 kB 00:00
################################################## 158/158
primary.xml.gz 100% |=========================| 157 B 00:00
primary.xml.gz 100% |=========================| 61 kB 00:00
################################################## 196/196
Resolving Dependencies
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Downloading header for net-snmp-libs to pack into transaction set.
net-snmp-libs-5.3.1-19.el 100% |=========================| 27 kB 00:00
---&gt; Package net-snmp-libs.i386 1:5.3.1-19.el5_1.3 set to be updated
---&gt; Downloading header for clamd to pack into transaction set.
clamd-0.92-1.el5.rf.i386. 100% |=========================| 6.2 kB 00:00
---&gt; Package clamd.i386 0:0.92-1.el5.rf set to be updated
---&gt; Downloading header for clamav-server-sysv to pack into transaction set.
clamav-server-sysv-0.92-1 100% |=========================| 15 kB 00:00
---&gt; Package clamav-server-sysv.i386 0:0.92-1.vm.el5 set to be updated
---&gt; Downloading header for net-snmp to pack into transaction set.
net-snmp-5.3.1-19.el5_1.3 100% |=========================| 50 kB 00:00
---&gt; Package net-snmp.i386 1:5.3.1-19.el5_1.3 set to be updated
---&gt; Downloading header for clamav-filesystem to pack into transaction set.
clamav-filesystem-0.92-1. 100% |=========================| 15 kB 00:00
---&gt; Package clamav-filesystem.i386 0:0.92-1.vm.el5 set to be updated
---&gt; Downloading header for clamav-lib to pack into transaction set.
clamav-lib-0.92-1.vm.el5. 100% |=========================| 16 kB 00:00
---&gt; Package clamav-lib.i386 0:0.92-1.vm.el5 set to be updated
---&gt; Downloading header for clamav to pack into transaction set.
clamav-0.92-1.vm.el5.i386 100% |=========================| 18 kB 00:00
---&gt; Package clamav.i386 0:0.92-1.vm.el5 set to be updated
---&gt; Downloading header for mcstrans to pack into transaction set.
mcstrans-0.2.6-1.el5_1.1. 100% |=========================| 5.2 kB 00:00
---&gt; Package mcstrans.i386 0:0.2.6-1.el5_1.1 set to be updated
---&gt; Downloading header for clamav-db to pack into transaction set.
clamav-db-0.92-1.el5.rf.i 100% |=========================| 3.7 kB 00:00
---&gt; Package clamav-db.i386 0:0.92-1.el5.rf set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: clamav-server = 0.92-1.vm.el5 for package: clamav-server-sysv
--&gt; Processing Dependency: data(clamav) for package: clamav-lib
--&gt; Processing Dependency: data(clamav) for package: clamav
--&gt; Processing Dependency: clamav = 0.92-1.el5.rf for package: clamd
--&gt; Processing Dependency: /usr/bin/freshclam for package: virtualmin-base
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Downloading header for clamav-data to pack into transaction set.
clamav-data-0.92-1.vm.el5 100% |=========================| 15 kB 00:00
---&gt; Package clamav-data.i386 0:0.92-1.vm.el5 set to be updated
---&gt; Downloading header for clamav-server to pack into transaction set.
clamav-server-0.92-1.vm.e 100% |=========================| 17 kB 00:00
---&gt; Package clamav-server.i386 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: clamav = 0.92-1.el5.rf for package: clamd
--&gt; Processing Dependency: /usr/bin/freshclam for package: virtualmin-base
--&gt; Finished Dependency Resolution
Error: Missing Dependency: clamav = 0.92-1.el5.rf is needed by package clamd&lt;br&gt;&lt;br&gt;Post edited by: sales@siteomatic.net, at: 2008/01/01 13:10

Wed, 01/02/2008 - 21:53 (Reply to #2)
SteveHeinsch

<div class='quote'># yum install clamav
Setting up Install Process
Setting up repositories
virtualmin 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
base 1.1 kB 00:00
virtualmin-universal 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamav.x86_64 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: libclamav.so.1()(64bit) for package: clamd
--&gt; Processing Dependency: clamav = 0.88.1-2.vm for package: clamd
--&gt; Processing Dependency: data(clamav) for package: clamav
--&gt; Processing Dependency: clamav-lib = 0.92-1.vm.el5 for package: clamav
--&gt; Processing Dependency: libclamav.so.3()(64bit) for package: clamav
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamav-lib.x86_64 0:0.92-1.vm.el5 set to be updated
---&gt; Package clamav-data.x86_64 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: libclamav.so.1()(64bit) for package: clamd
--&gt; Processing Dependency: clamav = 0.88.1-2.vm for package: clamd
--&gt; Processing Dependency: clamav-filesystem = 0.92-1.vm.el5 for package: clamav-data
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Package clamav-filesystem.x86_64 0:0.92-1.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: libclamav.so.1()(64bit) for package: clamd
--&gt; Processing Dependency: clamav = 0.88.1-2.vm for package: clamd
--&gt; Finished Dependency Resolution
Error: Missing Dependency: libclamav.so.1()(64bit) is needed by package clamd
Error: Missing Dependency: clamav = 0.88.1-2.vm is needed by package clamd
</div>

Sat, 01/05/2008 - 07:58 (Reply to #3)
siteomatic

This is not a standard pkg.

clamav = 0.88.1-2.vm

This is a Virtualmin pkg. Can I just simply remove the VM pkg and go with a standard Centos pkg?

Tue, 01/08/2008 - 13:49 (Reply to #4)
Joe
Joe's picture

<div class='quote'>Can I just simply remove the VM pkg and go with a standard Centos pkg? </div>

There is no standard CentOS ClamAV package. CentOS 5 should have the latest Clam package already. CentOS 4 has some dependency issues at the moment, as I've moved to a single Clam spec for all CentOS versions (the same one that Fedora provides, with a few modifications to build on CentOS), but they should be resolved in the next day or so.

--

Check out the forum guidelines!

Sun, 01/06/2008 - 10:10 (Reply to #5)
siteomatic

From searching I found this new thread that I believe acknowledges this issue.

http://www.virtualmin.com/index.php?option=com_fireboard&amp;Itemid=77&a...

Sun, 01/13/2008 - 10:34 (Reply to #6)
DonReaves

After clamav .92 was successfully updated from .088 by the automated process, clamd would not start. This is Centos 4.6.
I got the same ClamAvLib error with a recheck config as Steve reported. Also, procmail log reported the same error.
Seems that the daily.inc data files have moved from
/var/lib/clamav/daily.inc to /var/clamav/daily.inc.
main.cvd is in both locations.

I manually uncommented and edited /etc/conf.d/virtualman.conf directive
DatabaseDirectory to
DatabaseDirectory /var/clamav # was /var/lib/clamav

and now clamd starts and mail is being scanned by clamav
and recheck config passes.

It remains to be seen if clamav updates go to /var/clamav or elsewhere.

Sun, 01/27/2008 - 08:41 (Reply to #7)
HarryZink

The virtualmin.conf file you refer to is NOT in:

/etc/conf.d/virtualman.conf

In fact the proper location is:

/etc/clamd.d/virtualmin.conf

to make this change in.

Thanks for this thread, as it helped me find, isolate, and fix this problem, as it just bit me in the butt as well.

Sun, 01/27/2008 - 20:05 (Reply to #8)
DonReaves

Right you are. Apologies for my typo.

Mon, 03/23/2009 - 12:11 (Reply to #9)
elvis.mcneely

Some accounts are setup to use clamd, if I remove as you suggest will that cause problems on their account / server? Also, you said it is not needed, why is that?

Tue, 03/24/2009 - 05:18 (Reply to #10)
andreychek

Well, if you were to do a brand new install of RHEL/CentOS now, there wouldn't actually be a &quot;clamd&quot; package -- you'd have a bunch of &quot;clamav*&quot; related packages.

I suspect somewhere along the way, and for excellent reasons unbeknownst to me, Joe changed the way the packages were named :-)

So you have an older package on your system, and RPM doesn't realize that the clamav packages it's trying to pull down are actually intended to replace it.

The command Joe shows above just moves the &quot;clamd&quot; package out of the way so that the newer &quot;clamav*&quot; packages can be installed.

The packages you're pulling down should still contain the ClamAV daemon.
-Eric

Fri, 04/24/2009 - 00:32 (Reply to #11)
pixel_paul
pixel_paul's picture

Hi Joe,

I think I may have caused you unnecessary 'clamav stress overload'.

I had been noticing when I run yum update that I was getting this message appearing:

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

Well it bugged me enough to actually run yum-complete-transaction (which is part of yum-utils). I had to run it twice, but after this and I ran yum update, everything has updated perfectly.

So again apologies for wasting your time, but this is a new one for me.

Cheers,

Paul

Fri, 04/24/2009 - 11:13 (Reply to #12)
Joe
Joe's picture

The clamav developers are primarily responsible for all of my &quot;clamav stress overload&quot;. They're the most user-hostile and packager-hostile bunch of developers I know of. (They do wonderful things, and we're all happy that ClamAV exists, and I've donated to the project on more than one occasion, but, they could stand to be a little more polite to users and packagers.)

Anyway, I'm glad you got it sorted. yum is quite a bit more reliable about actually finishing requested installs, and cleaning up after itself, than apt-get...but it can still get into an undefined state every now and then, where it needs your help.

--

Check out the forum guidelines!

Wed, 01/02/2008 - 04:23
tfunk

try installing clamav manually?

goto shell and type:
yum install clamav

Now go back and do that last step you did to see if it fixed it.

Thu, 01/10/2008 - 11:53
ihistand

Thanks for the fix on this issue, Joe/team.... My CentOS 4.6 installation updated properly today.

--Ivan

Thu, 01/10/2008 - 12:27 (Reply to #15)
Joe
Joe's picture

Thanks for the update Ivan! Finally...That was ridiculous. Sometimes I'm amazed at how ornery RPM can be about dependencies--I ended up explicitly adding both an Obsoletes (to get rid of clamd) and a Provides (to convince RPM that the clamav-server package really does provide /usr/sbin/clamd, even though it's clearly in the package). And of course, this all happened after an upgrade of mock (the cross-version build tool for RPMs) that broke building for CentOS 4 and CentOS 3. ;-)

--

Check out the forum guidelines!

Fri, 01/11/2008 - 02:59 (Reply to #16)
siteomatic

Yup, everything is good on my Centos 5 as well. Thanks Joe!

Fri, 01/11/2008 - 04:43
SteveHeinsch

I am still having probs with centos 4.4. I updated via virtualmin and it appeared to go well...no errors. Then I ran a &quot;recheck config&quot; in vm and got:
The ClamAV program clamscan does not appear to be working properly :

<div class='quote'>LibClamAV Error: cli_loaddb(): No supported database files found in /var/lib/clamav/daily.inc
ERROR: Not supported data format

----------- SCAN SUMMARY -----------
Known viruses: 169676
Engine version: 0.92
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Time: 1.507 sec (0 m 1 s)</div>

/var/lib/clamav/daily.inc is empty.

I then tried #yum install clamav*
<div class='quote'>...
--&gt; Running transaction check
--&gt; Processing Conflict: clamav-data-empty conflicts data(clamav) &gt; empty
--&gt; Processing Conflict: clamav-data conflicts data(clamav) &lt; full
--&gt; Finished Dependency Resolution
Error: clamav-data-empty conflicts with data(clamav) &gt; empty
Error: clamav-data conflicts with data(clamav) &lt; full
</div>

-Steve

Fri, 01/11/2008 - 09:05
ihistand

Steve,

I'm not an expert on this issue, however my machine was a CentOS 4.4 originally (I leased it over a year ago). Then it updated itself to 4.6 a month or so ago just by me doing a simple &quot;yum update&quot; then rebooting it after that completed. I didn't even realize that this might happen.

Anyway you might check the centOS web site or just give that a try to see if it gets you back up to snuff.

--Ivan

Tue, 05/06/2008 - 14:21
tomcameron

This is still a problem for me

Redhat Enterprise Linux 4ES

Im still getting the failed dependency

[code:1]---&gt; Package clamav-filesystem.x86_64 0:0.92-2.vm.el5 set to be updated
---&gt; Package clamav-update.x86_64 0:0.92-2.vm.el5 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: libclamav.so.1()(64bit) for package: clamd
--&gt; Processing Dependency: clamav = 0.88.1-2.vm for package: clamd
--&gt; Finished Dependency Resolution

.. install failed![/code:1]

Is there something I should be doing?

Tue, 05/06/2008 - 14:25 (Reply to #20)
Joe
Joe's picture

Remove the clamd package. It is no longer needed.

rpm -e --nodeps clamd

I'll fix the next revision of the package to handle that obsolete package correctly.

--

Check out the forum guidelines!

Thu, 04/23/2009 - 00:24
pixel_paul
pixel_paul's picture

Following the update to 0.95.1.1.vm.el5, my virtualmin pro box updated just fine.

I have also have a virtualmin gpl box, and I get the following error:

Error: Missing Dependency: libclamav.so.5(CLAMAV_PUBLIC) is needed by package clamav-server-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: libclamav.so.5 is needed by package clamav-server-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: clamav-filesystem = 0.94-3vm.el5 is needed by package clamav-update-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: clamav-lib = 0.94-3vm.el5 is needed by package clamav-server-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: libclamav.so.5(CLAMAV_PRIVATE) is needed by package clamav-update-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: libclamav.so.5(CLAMAV_PRIVATE) is needed by package clamav-server-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: libclamav.so.5 is needed by package clamav-update-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: clamav-filesystem = 0.94-3vm.el5 is needed by package clamav-data-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: clamav-filesystem = 0.94-3vm.el5 is needed by package clamav-server-0.94-3vm.el5.i386 (installed)
Error: Missing Dependency: libclamav.so.5(CLAMAV_PUBLIC) is needed by package clamav-update-0.94-3vm.el5.i386 (installed)

Any ideas, much appreciated!

Cheers,

Paul

Thu, 04/23/2009 - 09:51 (Reply to #22)
Joe
Joe's picture

So this is a new, and different issue.

But, are you sure you don't have any other third party repositories configured that provide clamav packages? All of the packages that it's saying are required are in the repo...so updating all of the packages should satisfy all of the dependencies. libclamav.so.5 is provided by clamav-lib.

I don't have a GPL install handy to test on, but I'll set one up today and see what happens...

--

Check out the forum guidelines!

Topic locked