how i update signature of virus scanner through command line

Asked by somit on 2009-03-29

when i go through the virus scanner,in the menu help,selecting update defination,it tells that "you must be root to install update"...at the starting ..i entered username as root and password to log in it tells that "the administrater not allow to login from this screen"..is there any command through which i can update the virus scanner?I am using ubuntu 8.04 hardy.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu clamav Edit question
Assignee:
No assignee Edit question
Last query:
2009-06-07
Last reply:
2009-07-05

This question was reopened

Please read the already answered question https://answers.launchpad.net/ubuntu/+source/clamav

Hope this helps

somit (sovitkumar) said : #2

i want to upload the new version of clamav....because whenever i update the signature it tells "outdated".i want full instruction how to upload new version

somit (sovitkumar) said : #3

i want to upload the new version of clamav....because whenever i update the signature it tells "outdated".i want full instruction how to upload new version

somit (sovitkumar) said : #4

when i update the clamav it gives following information:
:~$ sudo freshclam
ClamAV update process started at Tue Apr 7 17:54:08 2009
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.92.1 Recommended version: 0.95
DON'T PANIC! Read http://www.clamav.net/support/faq
main.inc is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
Downloading daily-9210.cdiff [100%]
daily.inc updated (version: 9210, sigs: 38620, f-level: 41, builder: guitar)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 26, recommended = 41
DON'T PANIC! Read http://www.clamav.net/support/faq
Database updated (539287 signatures) from db.local.clamav.net (IP: 219.117.246.122)
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl
connect(): No such file or directory
please help me out.I go through the www.clamav.net.But i don't know what to do.

somit (sovitkumar) said : #5

when i update the clamav it gives following information:
:~$ sudo freshclam
ClamAV update process started at Tue Apr 7 17:54:08 2009
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.92.1 Recommended version: 0.95
DON'T PANIC! Read http://www.clamav.net/support/faq
main.inc is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
Downloading daily-9210.cdiff [100%]
daily.inc updated (version: 9210, sigs: 38620, f-level: 41, builder: guitar)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 26, recommended = 41
DON'T PANIC! Read http://www.clamav.net/support/faq
Database updated (539287 signatures) from db.local.clamav.net (IP: 219.117.246.122)
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl
connect(): No such file or directory
please help me out.I go through the www.clamav.net.But i don't know what to do.

somit (sovitkumar) said : #6

now i installed new version,but still getting problem.I go through the clamav document.I entered some of the command instructed by clamav and i got the following result.please advice me further,what to do?
:~$ whereis freshclam
freshclam: /usr/bin/freshclam /usr/local/bin/freshclam /usr/local/etc/freshclam.conf /usr/share/man/man1/freshclam.1.gz
~$ whereis clamscan
clamscan: /usr/bin/clamscan /usr/local/bin/clamscan /usr/share/man/man1/clamscan.1.gz
~$ ldd `which freshclam`
 linux-gate.so.1 => (0xb7f1e000)
 libclamav.so.6 => /usr/local/lib/libclamav.so.6 (0xb7e3d000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e39000)
 libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7e25000)
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7e0d000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cbe000)
 /lib/ld-linux.so.2 (0xb7f1f000)
:~$ freshclam
ERROR: Please edit the example config file /usr/local/etc/freshclam.conf
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf

Jim J (morlockhq) said : #7

It looks like you need to edit the example freshclam.conf file and save a copy to /etc/clamav/freshclam.conf.

The manual pages for what goes in the file are here:

http://manpages.ubuntu.com/manpages/intrepid/man5/freshclam.conf.5.html

and

for using freshclam are here:

http://manpages.ubuntu.com/manpages/intrepid/man1/freshclam.1.html

somit (sovitkumar) said : #8

~$ sudo freshclam
ERROR: Please edit the example config file /usr/local/etc/freshclam.conf
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
what to edit?

somit (sovitkumar) said : #9

i go through the website of clamav.....i entered the command
:~$ whereis freshclam
freshclam: /usr/bin/freshclam /usr/local/bin/freshclam /usr/local/etc/freshclam.conf /usr/share/man/man1/freshclam.1.gz
~$ whereis clamscan
clamscan: /usr/bin/clamscan /usr/local/bin/clamscan /usr/share/man/man1/clamscan.1.gz
~$ ldd `which freshclam`
 linux-gate.so.1 => (0xb809f000)
 libclamav.so.6 => /usr/local/lib/libclamav.so.6 (0xb7fa2000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f9e000)
 libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7f89000)
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f70000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e12000)
 /lib/ld-linux.so.2 (0xb8085000)

now....what to do...plz help me

Jim J (morlockhq) said : #10

Somit,

Looks like you need to edit the /usr/local/etc/freshclam.conf file to match your environment. I'm pretty sure that the comments in the freshclam.conf file will give your some idea of what needs to be edited.

-------------------------------------
somit<email address hidden> wrote:

Question #65741 on clamav in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/clamav/+question/65741

    Status: Answered => Open

somit is still having a problem:
~$ sudo freshclam
ERROR: Please edit the example config file /usr/local/etc/freshclam.conf
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
what to edit?

--
You received this question notification because you are a direct
subscriber of the question.

Bob (info-bobimmo) said : #11

ok, I found the problem. Just edit the file and put # before example. That will fix your problem.

Can you help with this problem?

Provide an answer of your own, or ask somit for more information if necessary.

To post a message you must log in.