clamscan not working after dist-upgrade from 14.04 to 16.04

Asked by Jan Florkowski

After doing a do-release-upgrade from trusty 14.04 to xenial 16.04, clamscan won't work.

:~# clamscan -r /
LibClamAV Error: cli_tgzload: Unknown type flag 's'
LibClamAV Error: Can't load /var/lib/clamav/daily.cvd: Malformed database
ERROR: Malformed database

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.99.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.058 sec (0 m 0 s)

I delete the daily.cvd and run service clamav-freshclam again to synchronize the database, but I'll get the same error.

After a reinstall from all installed clamav-packages and removed files from /var/lib/clamav I'll get the error too.

On a new xenial 16.04 system clamscan worked fine, so I think something goes wrong while the dist-upgrade.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu clamav Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

what is the output of:

sudo updatedb
locate clam | grep -i home

Thanks

(The first command will take a while as it is making a database of all files on the system. This makes the locate command more accurate in searches).

Revision history for this message
Jan Florkowski (j-florkowski) said :
#3

executed both with no return, what do you expect?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Was ex some sort of configuration to be held in your user's profile.

Revision history for this message
A. Denton (aquina) said :
#5

After a reinstall from all installed clamav-packages and removed files from /var/lib/clamav I'll get the error too.

Maybe a »sudo apt-get purge <package>« will help along with a chack of the clamav config file in /etc/clamav/.

Can you help with this problem?

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

To post a message you must log in.