Linux Lite Forums

Full Version: clamav and freshclam update failures
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Its a long time since I've been to these forums, but I just installed 4.8 on my old windows 7 laptop.  I'm trying to install the clamav antivirus as instructed in the help manual.  Despite receiving the ERROR message and typing in the sudo rm -rf /var/log/clamav/freshclam.log command, I repeatedly get the reply: 

"can't download daily.cvd from https://database.clamav.net/daily.cvd.  Download failed.
Time out was reached.  Remote version 25742.
Has anyone else ran into this problem? 
(03-05-2020, 06:12 PM)Jan link Wrote: [ -> ]Its a long time since I've been to these forums, but I just installed 4.8 on my old windows 7 laptop.  I'm trying to install the clamav antivirus as instructed in the help manual.  Despite receiving the ERROR message and typing in the sudo rm -rf /var/log/clamav/freshclam.log command, I repeatedly get the reply: 

"can't download daily.cvd from https://database.clamav.net/daily.cvd.  Download failed.
Time out was reached.  Remote version 25742.
Has anyone else ran into this problem?

I remember having this issue a while ago and can't exactly remember but I don't think ever managed to solve it, I just stopped trying and decided not to use any AV software in Linux,  so far haven't had any virus/malware scenarios. However, googling for it gave this https://www.howtoforge.com/community/thr...ror.76634/ try that and see and if it works.

Hope this helps! Smile
Has this been resolved? Could have just been a server issue on that day.

Try: https://gitlab.com/dave_m/clamtk/issues/90

Sent from my Mobile phone using Tapatalk

I remember having this issue a while ago and can't exactly remember but I don't think ever managed to solve it, I just stopped trying and decided not to use any AV software in Linux,  so far haven't had any virus/malware scenarios. However, googling for it gave this https://www.howtoforge.com/community/thr...ror.76634/ try that and see and if it works.

Thank you, Moltke, for the suggestion but, sadly, it didn't work out in my case. Sad
(03-06-2020, 03:21 PM)Jerry link Wrote: [ -> ]Has this been resolved? Could have just been a server issue on that day.

Try: https://gitlab.com/dave_m/clamtk/issues/90

Sent from my Mobile phone using Tapatalk
Hi Jerry,  Thanks for your reply.  I tried loading clamav again today, and although it came from a different server, I got the same ERROR messages as before.  Actually, there are four ERROR messages in total and they are as follows:

ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateFileLog =  /var/log/clamav/freshclam.log)
ERROR: initialize: libfreshclam unit failed
ERROR: Initialization error

Also, I tried the  https://gitlab.com/dave_m/clamtk/issues/90.  It downloaded fine, but the clamav does not show up as an application, so am unable to execute the download.  I checked the Synaptics Manager folder and clamav and clamav-daemon show up as installed programs there, but nowhere else.  So, maybe this program is partially installed ???
How did you initially install clamav?

Sent from my Mobile phone using Tapatalk

Some years ago I had an issue with clamav on LXLE 12.04 not updating. It was down to permissions on the log file.

This was what I wrote at the time - don't know if it helps.

Quote:Noticed one issue - clamav cannot update sigs because the log file directory is missing.
If you run sudo freshclam you get error:-
Can't open /var/log/clamav/freshclam.log in append mode

As root I created /var/log/clamav, then:-
chown -R clamav:clamav /var/log/clamav

freshclam now updates sigs OK.
(03-06-2020, 10:34 PM)Jan link Wrote: [ -> ][quote author=Jerry link=topic=7123.msg51142#msg51142 date=1583508070]
Has this been resolved? Could have just been a server issue on that day.

Try: https://gitlab.com/dave_m/clamtk/issues/90

Sent from my Mobile phone using Tapatalk
Hi Jerry,  Thanks for your reply.  I tried loading clamav again today, and although it came from a different server, I got the same ERROR messages as before.  Actually, there are four ERROR messages in total and they are as follows:

ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateFileLog =  /var/log/clamav/freshclam.log)
ERROR: initialize: libfreshclam unit failed
ERROR: Initialization error

Also, I tried the  https://gitlab.com/dave_m/clamtk/issues/90.  It downloaded fine, but the clamav does not show up as an application, so am unable to execute the download.  I checked the Synaptics Manager folder and clamav and clamav-daemon show up as installed programs there, but nowhere else.  So, maybe this program is partially installed ???

[/quote]


[member=5901]Jan[/member]


View my post here https://www.linuxliteos.com/forums/insta.../#msg39662


The lock error = remove that log file, you may have cancelled/stopped a run - I tested on my old LL3.8 and mid scan cancelled tried update -- got locked error - rm commands ran, updated fine and a new scan ran..


I did get a notification it couldn't find a config file on initial 'freshclam' on 2nd run all up to date..


*use sudo and change directory to your home (I used 'yourusername')

I ran into the same problem and this is what I did and it worked for me
I'll put a couple of caveats on it though so YMMV;
I am a relatively new user to Linux so my knowledge/experience is way lower than most and I may be leading you up the garden path
I still use some vocabulary that is more related to windoze but it should make sense
I did this on Linux Mint 19.3, not LL so some things may be different - I wanted to try LM on my laptop just to see what I think.
I am running LM on a 128Gb USB stick so am essentially dual booting Win10/LM at the moment
I used the GUI for some things as I'm not a super confident user of the Terminal yet.

These are the steps I followed


I used timeshift to create a new restore point just in case I stuffed something up

I did a complete remove of clamav using terminal -
Code:
sudo apt purge clamav

I used the file manager, logged on as root, to find and delete all files/directories related to clamav. I did not delete any that were in the timeshift directories

I did a new install of clamav via terminal -
Quote:sudo apt install clamav
  during this process I got recommended other installs so added those. In the end it looked like this -
Code:
sudo apt install clamav clamav-daemon clamav-docs libclamunrar9 daemon clamdscan

Once installed I rebooted the laptop

I ran
Code:
sudo freashclam
and got the expected errors (locked by another process, etc)

I removed the logfile using
Code:
sudo rm /var/log/clamav/freshclam.log
Note I did not use -rf

I ran
Code:
sudo freshclam
again to have it time out

Using the file manager, logged in as root, I found and edited the freshclam.conf file changing ConnectTimeout to 300 and RecieveTimeout to 300. I also changed Checks to 6 but that's me, you don't have to do this.
The idea behind changing the timeouts was due to the awsomely great and fantastic internet we get here in Oz, I figured it was taking too long to download the DB's and freshclam times out for me.

I ran
Code:
sudo freshclam
again and the DB finished downloading and passed checks

Moments ago I ran
Code:
sudo freshclam
and got
Code:
Sun Mar  8 12:22:47 2020 -> ClamAV update process started at Sun Mar  8 12:22:47 2020
Sun Mar  8 12:22:47 2020 -> daily.cvd database is up to date (version: 25744, sigs: 2210896, f-level: 63, builder: raynman)
Sun Mar  8 12:22:47 2020 -> main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Sun Mar  8 12:22:47 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
The Help Manual has the best-practice guide specifically designed for Linux Lite.
Pages: 1 2 3 4