Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

clamav error

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Lonewolf71
Posts: 61
Joined: 2021-06-30 21:38
Been thanked: 2 times

clamav error

#1 Post by Lonewolf71 »

I was trying to scan my system just for the heck of it, but when I try to update clam I get the error below...

Code: Select all

family@hp-lin:~$ sudo freshclam
[sudo] password for family: 
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!

jakoline1
Posts: 54
Joined: 2021-07-06 00:49
Been thanked: 1 time

Re: clamav error

#2 Post by jakoline1 »

You're getting this error because the clamav-freshclam service is running in the background.

1- Stop it by typing

Code: Select all

sudo systemctl stop clamav-freshclam.service
2- Do the manual update afterwards by typing

Code: Select all

sudo freshclam
3- Stop clamav-freshclam from starting automatically on system startup by executing the following command and configuring it for manual updates only (you many need to scroll down to see it).

Code: Select all

sudo dpkg-reconfigure clamav-freshclam
By configuring clamav-freshclam this way, you will be able to select an update server that's closer to you so that it works faster and you will also be able to stop freshclam from giving an error concerning the clamd.conf file everytime it updates clamav, by disabling the clamd daemon notification.

(Source https://askubuntu.com/questions/1292583 ... ot-working)

jakoline1
Posts: 54
Joined: 2021-07-06 00:49
Been thanked: 1 time

Re: clamav error

#3 Post by jakoline1 »

In the terminal you should highlight the option you want then press the tab key from your keyboard to chose either Ok or Cancel, then hit Enter.

Here is how I did it.

1- Run this command in terminal

Code: Select all

sudo dpkg-reconfigure clamav-freshclam
2- Pick manual
Image

3- Select the closet location
Image

4- Leave blank (unless you're using a proxy)
Image

5- Not sure if it's effective or not since we already disabled auto-updates, I choose 10
Image

6- Select No, according to the guy at Ask Ubuntu he says notifications will result errors
Image

7- I don't know what bytecode database does but I'll go with yes
Image

8- I think a private mirror is where you hold your own version of the virus database away from the official ones, I don't have a private mirror so I'll leave it blank (leave blank and select OK)
Image

9- Log rotation means deleting old log files when they get too old or too big in size, I'll pick No, maybe you'll have a different opinion.
Image

After going through the previous steps, you may see this:

Code: Select all

Wed Jul 14 13:49:31 2021 -> Your ClamAV installation is OUTDATED!
Wed Jul 14 13:49:31 2021 -> Local version: 0.103.2 Recommended version: 0.103.3
It doesn't matter, it's telling you that Clamav itself is outdated, as for the virus database it's fine and up-to-date

Code: Select all

Wed Jul 14 13:49:31 2021 -> daily.cld database is up-to-date
Wed Jul 14 13:49:31 2021 -> main.cvd database is up-to-date
Wed Jul 14 13:49:31 2021 -> bytecode.cvd database is up-to-date

Lonewolf71
Posts: 61
Joined: 2021-06-30 21:38
Been thanked: 2 times

Re: clamav error

#4 Post by Lonewolf71 »

Thanks so much!

Post Reply