PDA

View Full Version : [SOLVED] clamav update failed



ipv
March 3rd, 2020, 06:36 AM
since the last 1 month clam av is not getting updated.

clamtk reports antivirus signatures outdated.

sudo freshclam starts the update which is about 56 mb but the update fails at around 17-18 mb.

this is with a fresh install of both 18.04.4 & 19.10.

tried various repositories but to no avail.


clamscan -V

gives me this : ClamAV 0.102.2

please have a look here :

285167

& here :

285168
(https://postimg.cc/D83BSkqs)

webaake
March 3rd, 2020, 03:33 PM
A bit down on this page, there's some tips about freshclam:
https://www.clamav.net/documents/clamav-virus-database-faq

My Freshclam updates have been working fine.

EuclideanCoffee
March 3rd, 2020, 04:22 PM
Freshclam works in my environment. Appears to be a network issue on your side.

SeijiSensei
March 3rd, 2020, 04:31 PM
Check /etc/freshclam.conf and make sure it has a line like this:

DatabaseMirror db.local.clamav.net

I responded to a post here a couple of weeks back where someone reported having troubles with freshclam, and he had a different DatabaseMirror entry. I know this works because my ClamAV installation updates every day.

I believe db.local.clamav.net points to a Cloudflare instance that routes to the proper server depending on where you're located. The server that freshclam reports using

Database updated (6768029 signatures) from db.local.clamav.net (IP: 104.16.218.84)
is in Cloudflare's range of IP addresses (see "whois 104.16.0.0").

ipv
March 4th, 2020, 06:48 AM
Freshclam works in my environment. Appears to be a network issue on your side.

on the same machine with the same internet connection with debian buster clamav has absolutely no issues.

this problem has surfaced on ubuntu since a month & is also prevalent on neon which is an ubuntu derivative.


Check /etc/freshclam.conf and make sure it has a line like this:

DatabaseMirror db.local.clamav.net


here is what i did :


sudo nano /etc/freshclam.conf

it was empty not even a single letter / word in it. so i pasted what you wrote, saved & exited. here is what it looks like now :

285174

SeijiSensei
March 4th, 2020, 05:25 PM
freshclam.conf should definitely not be empty, so maybe it's in a different location on your system. Use "locate freshclam.conf" to find it.

(My servers run CentOS, not Ubuntu, so Ubuntu may store the freshclam.conf in a different location.)

It's always good practice to examine any configuration files for new software you are using.

deadflowr
March 4th, 2020, 05:39 PM
freshclam.conf should be in the /etc/clamav directory.
Or at least that's were is was last time I ran clam.

ipv
March 5th, 2020, 04:51 AM
freshclam.conf should definitely not be empty, so maybe it's in a different location on your system. Use "locate freshclam.conf" to find it.

(My servers run CentOS, not Ubuntu, so Ubuntu may store the freshclam.conf in a different location.)

It's always good practice to examine any configuration files for new software you are using.


freshclam.conf should be in the /etc/clamav directory.
Or at least that's were is was last time I ran clam.


sudo nano /etc/clamav/freshclam.conf

gives me this :

285175

does it require any corrections?

ipv
March 8th, 2020, 08:51 AM
bug reported on launchpad ubuntu. bug acknowledged. work in progress.

uRock
March 9th, 2020, 02:40 AM
sudo nano /etc/clamav/freshclam.conf gives me this :

https://postimg.cc/GHtX3nNZ

does it require any corrections?

Why make people go to intrusive sites when you can post images here?

ipv
March 9th, 2020, 07:08 AM
Why make people go to intrusive sites when you can post images here?

i could not figure out the attachments thingy.

have rectified all my posts.

ipv
March 22nd, 2020, 06:02 PM
bug fix released.