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!</div>

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

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 "installonlyn" 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
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for net-snmp-libs to pack into transaction set.
net-snmp-libs-5.3.1-19.el 100% |=========================| 27 kB 00:00
—> Package net-snmp-libs.i386 1:5.3.1-19.el5_1.3 set to be updated
—> Downloading header for clamd to pack into transaction set.
clamd-0.92-1.el5.rf.i386. 100% |=========================| 6.2 kB 00:00
—> Package clamd.i386 0:0.92-1.el5.rf set to be updated
—> Downloading header for clamav-server-sysv to pack into transaction set.
clamav-server-sysv-0.92-1 100% |=========================| 15 kB 00:00
—> Package clamav-server-sysv.i386 0:0.92-1.vm.el5 set to be updated
—> Downloading header for net-snmp to pack into transaction set.
net-snmp-5.3.1-19.el5_1.3 100% |=========================| 50 kB 00:00
—> Package net-snmp.i386 1:5.3.1-19.el5_1.3 set to be updated
—> Downloading header for clamav-filesystem to pack into transaction set.
clamav-filesystem-0.92-1. 100% |=========================| 15 kB 00:00
—> Package clamav-filesystem.i386 0:0.92-1.vm.el5 set to be updated
—> Downloading header for clamav-lib to pack into transaction set.
clamav-lib-0.92-1.vm.el5. 100% |=========================| 16 kB 00:00
—> Package clamav-lib.i386 0:0.92-1.vm.el5 set to be updated
—> Downloading header for clamav to pack into transaction set.
clamav-0.92-1.vm.el5.i386 100% |=========================| 18 kB 00:00
—> Package clamav.i386 0:0.92-1.vm.el5 set to be updated
—> Downloading header for mcstrans to pack into transaction set.
mcstrans-0.2.6-1.el5_1.1. 100% |=========================| 5.2 kB 00:00
—> Package mcstrans.i386 0:0.2.6-1.el5_1.1 set to be updated
—> Downloading header for clamav-db to pack into transaction set.
clamav-db-0.92-1.el5.rf.i 100% |=========================| 3.7 kB 00:00
—> Package clamav-db.i386 0:0.92-1.el5.rf set to be updated
–> Running transaction check
–> Processing Dependency: clamav-server = 0.92-1.vm.el5 for package: clamav-server-sysv
–> Processing Dependency: data(clamav) for package: clamav-lib
–> Processing Dependency: data(clamav) for package: clamav
–> Processing Dependency: clamav = 0.92-1.el5.rf for package: clamd
–> Processing Dependency: /usr/bin/freshclam for package: virtualmin-base
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for clamav-data to pack into transaction set.
clamav-data-0.92-1.vm.el5 100% |=========================| 15 kB 00:00
—> Package clamav-data.i386 0:0.92-1.vm.el5 set to be updated
—> Downloading header for clamav-server to pack into transaction set.
clamav-server-0.92-1.vm.e 100% |=========================| 17 kB 00:00
—> Package clamav-server.i386 0:0.92-1.vm.el5 set to be updated
–> Running transaction check
–> Processing Dependency: clamav = 0.92-1.el5.rf for package: clamd
–> Processing Dependency: /usr/bin/freshclam for package: virtualmin-base
–> Finished Dependency Resolution
Error: Missing Dependency: clamav = 0.92-1.el5.rf is needed by package clamd<br><br>Post edited by: sales@siteomatic.net, at: 2008/01/01 13:10

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.

# 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 --> 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 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

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?

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

http://www.virtualmin.com/index.php?option=com_fireboard&Itemid=77&func=view&id=9401&catid=5#9401

Can I just simply remove the VM pkg and go with a standard Centos pkg?

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.

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

–Ivan

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. :wink:

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

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 "recheck config" in vm and got:
The ClamAV program clamscan does not appear to be working properly :

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)

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

I then tried #yum install clamav*

... --> Running transaction check --> Processing Conflict: clamav-data-empty conflicts data(clamav) > empty --> Processing Conflict: clamav-data conflicts data(clamav) < full --> Finished Dependency Resolution Error: clamav-data-empty conflicts with data(clamav) > empty Error: clamav-data conflicts with data(clamav) < full

-Steve

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 “yum update” 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

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.

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.

Right you are. Apologies for my typo.

This is still a problem for me

Redhat Enterprise Linux 4ES

Im still getting the failed dependency

[code:1]—> Package clamav-filesystem.x86_64 0:0.92-2.vm.el5 set to be updated
—> Package clamav-update.x86_64 0:0.92-2.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![/code:1]

Is there something I should be doing?

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.

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?

Well, if you were to do a brand new install of RHEL/CentOS now, there wouldn’t actually be a “clamd” package – you’d have a bunch of “clamav*” related packages.

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

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 "clamd" package out of the way so that the newer "clamav*" packages can be installed.

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

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