Friday, 4 May 2018

How to resolve Clam AV Error while updating virus database



Clam AV fails to start after update to v0.99.4. After the update and getting the below error:


[root@linuxcnf ~]# freshclam
ERROR: This tool requires libclamav with functionality level 85 or higher (current f-level: 82)
[root@linuxcnf ~]#

 It seems that the referenced libraries are old one in the configured location (/usr/lib64/). The upgraded clamd is not functioning with the existing library and there is many reasons for the issue and this article described one of those, so follow the below steps to resolve the issue:

Run the following command to locate libraries files:

[root@linuxcnf ~]# locate libclamav
/usr/lib64/libclamav.so.7
/usr/lib64/libclamav.so.7.1.1
/usr/lib64/pkgconfig/libclamav.pc
/usr/local/lib64/libclamav.so.7
/usr/local/lib64/libclamav.so.7.1.1
[root@linuxcnf ~]#

Run the following command to remove old library file ‘/usr/lib64/libclamav.so.7’ if the link file is already exist:

[root@linuxcnf ~]# rm -f /usr/lib64/libclamav.so.7
[root@linuxcnf ~]#

Run the following command to create a symlink of library file:

[root@linuxcnf ~]# ln -s /usr/lib64/libclamav.so.7.1.1 /usr/lib64/libclamav.so.7
[root@linuxcnf ~]#

Run the following command to verify the Clam AV working status:
  
[root@linuxcnf ~]# freshclam -V
ClamAV 0.99.4/24537/Fri May  4 02:05:07 2018
[root@linuxcnf ~]#

That’s it the issue has been resolved!!!

No comments:

Post a Comment