clamscan not working after dist-upgrade from 14.04 to 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
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/
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.
Hi,
thank you for your report.
I tried to recreate with:
1. take Trusty container
2. install clamav
3. wait until freshclam had chance to create the initial DB
4. run clamscan -r /
----------- SCAN SUMMARY -----------
Known viruses: 5051511
Engine version: 0.99.2
Scanned directories: 7205
Scanned files: 25302
Infected files: 0
Total errors: 23005
Data scanned: 725.82 MB
Data read: 1766.04 MB (ratio 0.41:1)
Time: 78.221 sec (1 m 18 s)
5. Upgrade to Xenial
6. run clamscan -r / again - working fine still
Known viruses: 5051511
Engine version: 0.99.2
Scanned directories: 7885
Scanned files: 28979
Infected files: 0
Total errors: 23191
Data scanned: 1224.57 MB
Data read: 2206.23 MB (ratio 0.56:1)
Time: 107.607 sec (1 m 47 s)
Might the actual DB that freshclam synced have been broken - although rare that happened in the past.
For the sake of retrying you could share/clamav/ *
1. just re-run freshclam and retry
2. uninstall clamav and freshclam with --purge
3. delet all in /usr/local/
4. install it again and check if the issue went away.
I expect you to still hit the issue as you almost did that already, but it would be nice to make sure that even in that case the issue persists.
Finally your freshclam.log from before the cleanup retry as well as after it might help to shed some light.