Cannot install ClamAV server scanner on Ubuntu 10.04 LTS

13 posts / 0 new
Last post
#1 Fri, 06/03/2011 - 10:19
jvieille

Cannot install ClamAV server scanner on Ubuntu 10.04 LTS

When running the post_installation wizard, I couldn't set the ClamAV server scanner:

A problem occurred testing the ClamAV server scanner :
ERROR: Can't connect to clamd: No such file or directory

I tried to add the volatile rep, but after that the script issue this error:

The following packages have unmet dependencies:
  virtualmin-base: Depends: clamav-daemon but it is not going to be installed
                   Depends: clamav but it is not going to be installed
                   Depends: clamav-freshclam but it is not going to be installed
WARN - apt-get seems to have failed. Are you sure your OS and version is supported?
WARN - http://www.virtualmin.com/os-support

FATAL - Fatal Error Occurred: Installation failed: 0
FATAL - Cannot continue installation.
FATAL - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - re-attempted after any problems have been resolved.
FATAL - Removing temporary directory and files.
FATAL - If you are unsure of what went wrong, you may wish to review the log
FATAL - in /root/virtualmin-install.log

Thanks for help

Fri, 06/03/2011 - 10:33
andreychek

Hmm, it sounds like it's having trouble getting ClamAV installed.

First, I'd recommend sticking with the standard Ubuntu 10.04 repos until everything is working as expected... adding any additional repositories will make things more difficult to troubleshoot :-)

Once you have just standard repositories in your /etc/apt/sources.list file, what does this command show:

dpkg -l 'clamav*'

Fri, 06/03/2011 - 10:56
jvieille

No packages found matching clamav*.

the reps in sources.list are the following:

deb ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid main restricted deb-src ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid main restricted

deb ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates main restricted deb-src ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates main restricted

deb ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid universe deb-src ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid universe deb ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates universe deb-src ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates universe

deb ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid multiverse deb-src ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid multiverse deb ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates multiverse deb-src ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates multiverse

Fri, 06/03/2011 - 11:02
andreychek

Okay, what output do you get if you run this command as root:

apt-get update && apt-get install clamav clamav-daemon clamav-freshclam

Fri, 06/03/2011 - 11:08
jvieille
root@ks311625:~# apt-get update && apt-get install clamav clamav-daemon clamav-freshclam
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com lucid-security Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit ftp://mirror.ovh.net lucid Release.gpg
Hit ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid/main Translation-en_GB
Hit ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB
Hit ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB
Hit ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB
Hit ftp://mirror.ovh.net lucid-updates Release.gpg
Get: 1 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
Ign ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
Get: 2 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
Ign ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
Get: 3 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Ign ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Get: 4 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
Ign ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
Hit ftp://mirror.ovh.net lucid Release
Hit ftp://mirror.ovh.net lucid-updates Release
Hit ftp://mirror.ovh.net lucid/main Packages
Hit ftp://mirror.ovh.net lucid/restricted Packages
Hit ftp://mirror.ovh.net lucid/main Sources
Hit ftp://mirror.ovh.net lucid/restricted Sources
Hit ftp://mirror.ovh.net lucid/universe Packages
Hit ftp://mirror.ovh.net lucid/universe Sources
Hit ftp://mirror.ovh.net lucid/multiverse Packages
Hit ftp://mirror.ovh.net lucid/multiverse Sources
Hit ftp://mirror.ovh.net lucid-updates/main Packages
Hit ftp://mirror.ovh.net lucid-updates/restricted Packages
Hit ftp://mirror.ovh.net lucid-updates/main Sources
Hit ftp://mirror.ovh.net lucid-updates/restricted Sources
Hit ftp://mirror.ovh.net lucid-updates/universe Packages
Hit ftp://mirror.ovh.net lucid-updates/universe Sources
Hit ftp://mirror.ovh.net lucid-updates/multiverse Packages
Hit ftp://mirror.ovh.net lucid-updates/multiverse Sources
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  clamav-base libclamav6 libltdl7 libtommath0
Suggested packages:
  clamav-docs daemon libclamunrar6
The following NEW packages will be installed
  clamav clamav-base clamav-daemon clamav-freshclam libclamav6 libltdl7 libtommath0
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,928kB of archives.
After this operation, 13.6MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get: 1 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid/main libltdl7 2.2.6b-2ubuntu1 [296kB]
Get: 2 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid/main libtommath0 0.39-3ubuntu1 [64.6kB]
Get: 3 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main libclamav6 0.96.5+dfsg-1ubuntu1.10.04.2 [4,180kB]
Get: 4 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main clamav-base 0.96.5+dfsg-1ubuntu1.10.04.2 [300kB]
Get: 5 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main clamav-freshclam 0.96.5+dfsg-1ubuntu1.10.04.2 [320kB]
Get: 6 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main clamav 0.96.5+dfsg-1ubuntu1.10.04.2 [338kB]
Get: 7 ftp://mirror.ovh.net/mirrors/ftp.ubuntu.com/ubuntu/ lucid-updates/main clamav-daemon 0.96.5+dfsg-1ubuntu1.10.04.2 [429kB]
Fetched 5,928kB in 1s (5,608kB/s)
Preconfiguring packages ...
Selecting previously deselected package libltdl7.
(Reading database ... 25312 files and directories currently installed.)
Unpacking libltdl7 (from .../libltdl7_2.2.6b-2ubuntu1_amd64.deb) ...
Selecting previously deselected package libtommath0.
Unpacking libtommath0 (from .../libtommath0_0.39-3ubuntu1_amd64.deb) ...
Selecting previously deselected package libclamav6.
Unpacking libclamav6 (from .../libclamav6_0.96.5+dfsg-1ubuntu1.10.04.2_amd64.deb) ...
Selecting previously deselected package clamav-base.
Unpacking clamav-base (from .../clamav-base_0.96.5+dfsg-1ubuntu1.10.04.2_all.deb) ...
Selecting previously deselected package clamav-freshclam.
Unpacking clamav-freshclam (from .../clamav-freshclam_0.96.5+dfsg-1ubuntu1.10.04.2_amd64.deb) ...
Selecting previously deselected package clamav.
Unpacking clamav (from .../clamav_0.96.5+dfsg-1ubuntu1.10.04.2_amd64.deb) ...
Selecting previously deselected package clamav-daemon.
Unpacking clamav-daemon (from .../clamav-daemon_0.96.5+dfsg-1ubuntu1.10.04.2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libltdl7 (2.2.6b-2ubuntu1) ...

Setting up libtommath0 (0.39-3ubuntu1) ...

Setting up libclamav6 (0.96.5+dfsg-1ubuntu1.10.04.2) ...

Setting up clamav-base (0.96.5+dfsg-1ubuntu1.10.04.2) ...

Setting up clamav-freshclam (0.96.5+dfsg-1ubuntu1.10.04.2) ...
* Starting ClamAV virus database updater freshclam                                                                                                   [ OK ]

Setting up clamav (0.96.5+dfsg-1ubuntu1.10.04.2) ...
Setting up clamav-daemon (0.96.5+dfsg-1ubuntu1.10.04.2) ...
* Clamav signatures not found in /var/lib/clamav
* Please retrieve them using freshclam or install the clamav-data package
* Then run '/etc/init.d/clamav-daemon start'

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Fri, 06/03/2011 - 11:10
jvieille

Note that I proceed with a fresh server install, Virtualmin not yet installed

Fri, 06/03/2011 - 11:18
andreychek

Hmm, it looks like that installed okay, I'm not sure why that didn't install properly during the Virtualmin installation.

You may want to try the Virtualmin installation again, and see if that installs properly this time around.

-Eric

Fri, 06/03/2011 - 11:34
jvieille

Same problem: install proceed without error, but the post-installation wizard fails as indicated above if I check yes for "Run ClamAV server scanner?" (I haven't tried No)

Fri, 06/03/2011 - 11:38
andreychek

What happens if you run this command from the command line:

/etc/init.d/clamav-daemon start

Do you see any errors?

After that, what output do you get if you run this:

ps auxw | grep clam

Fri, 06/03/2011 - 11:43
jvieille

This what I get

root@ks311625:/usr/src# /etc/init.d/clamav-daemon start
* Clamav signatures not found in /var/lib/clamav
* Please retrieve them using freshclam or install the clamav-data package
* Then run '/etc/init.d/clamav-daemon start'
Fri, 06/03/2011 - 11:47
andreychek

Hrm, it really doesn't sound like the Virtualmin installation went smoothly.

Can you attach your /root/virtualmin-install.log to this thread? Perhaps it will contain some clues as to what's going on.

-Eric

Fri, 06/03/2011 - 11:59
jvieille

Here it is

I ran freshclam - another problem comming there apparently

root@ks311625:/usr/src# freshclam
ClamAV update process started at Fri Jun  3 18:47:52 2011
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.96.5 Recommended version: 0.97
DON'T PANIC! Read http://www.clamav.net/support/faq
Downloading main.cvd [  8%]%]
Fri, 06/03/2011 - 12:45
jvieille

I think the problem is sovled.

root@ks311625:/usr/src# freshclam
ClamAV update process started at Fri Jun  3 18:47:52 2011
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.96.5 Recommended version: 0.97
DON'T PANIC! Read http://www.clamav.net/support/faq
Downloading main.cvd [100%]95%]
main.cvd updated (version: 53, sigs: 846214, f-level: 53, builder: sven)
daily.cvd is up to date (version: 13144, sigs: 125458, f-level: 60, builder: ccordes)
bytecode.cvd is up to date (version: 143, sigs: 40, f-level: 60, builder: edwin)
Database updated (971712 signatures) from db.local.clamav.net (IP: 193.51.160.14)
root@ks311625:/usr/src# /etc/init.d/clamav-daemon start
* Starting ClamAV daemon clamd                                                                                                                              LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************

and the wizard proceeded normally

By the way, I found this post which seems to relate to this issue http://194.167.18.22/issues/1671- seems a bug in ClamAV

Thank you very much for your help

Topic locked