How to Update Virus Definitions?

Q'center app, Helpdesk app
Post Reply
bluewammer
New here
Posts: 4
Joined: Thu Jul 13, 2017 4:51 pm

How to Update Virus Definitions?

Post by bluewammer »

Virus definitions are no longer updating automatically on either my 219PII or 112P, so I thought I would install the update manually. I downloaded the clamav-0.103.2.tar file offered to me on the ClamavNet website. When I expanded the .tar file I found two .cvd files, daily.cvd and main.cvd, but when I try to install either of these I get the message "incorrect file format". Interestingly, both files are listed in OSX Finder as having a size of zero bytes.

What am I doing wrong?
jota2016
New here
Posts: 2
Joined: Fri Apr 16, 2021 2:17 pm

Re: How to Update Virus Definitions?

Post by jota2016 »

Hi,

I was having the same problem on my TS-230 since a couple of days ago.
Logging in via ssh and manually running freshclam returned this error:

# freshclam
freshclam: error while loading shared libraries: libclamav.so.9: cannot open shared object file: No such file or directory

When checking the freshclam dependencies, some of them were missing.

Code: Select all

# ldd /usr/local/bin/freshclam 
        linux-vdso.so.1 (0x0000007f9916a000)
        libclamav.so.9 => not found
        libfreshclam.so.2 => not found
        libresolv.so.2 => //lib64/libresolv.so.2 (0x0000007f9911a000)
        libssl.so.1.0.0 => //lib64/libssl.so.1.0.0 (0x0000007f990a2000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x0000007f98ed0000)
        libiconv.so.2 => //lib64/libiconv.so.2 (0x0000007f98de2000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x0000007f98dc3000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x0000007f98c7f000)
        libcurl.so.4 => /usr/lib/libcurl.so.4 (0x0000007f98c18000)
        libz.so.1 => //lib64/libz.so.1 (0x0000007f98bf0000)
        libpthread.so.0 => //lib64/libpthread.so.0 (0x0000007f98bc4000)
        libc.so.6 => //lib64/libc.so.6 (0x0000007f98a7e000)
        /lib/ld-linux-aarch64.so.1 (0x0000007f9913f000)
        libdl.so.2 => //lib64/libdl.so.2 (0x0000007f98a6a000)
        libm.so.6 => //lib64/libm.so.6 (0x0000007f989b8000)
        liblber-2.4.so.2 => //lib64/liblber-2.4.so.2 (0x0000007f9899c000)
        libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0x0000007f98951000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x0000007f98937000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0x0000007f98906000)

I have manually created the missing symbolic links.

Code: Select all

ln -s /share/CACHEDEV1_DATA/.antivirus/usr/lib/libclamav.so.9.0.4 /usr/lib/libclamav.so.9
ln -s /share/CACHEDEV1_DATA/.antivirus/usr/lib/libfreshclam.so.2.0.0 /usr/lib/libfreshclam.so.2
After that, two new dependencies appeared, so I created the links as well.

Code: Select all

ln -s /share/CACHEDEV1_DATA/.antivirus/usr/lib/libclammspack.so.0.1.0 /usr/lib/libclammspack.so.0
ln -s /share/CACHEDEV1_DATA/.antivirus/usr/lib/libcharset.so.1.0.0 /usr/lib/libcharset.so.1
When all dependencies were resolved, I was able to update from the GUI again.

I don't know if it will be your same case, but you can check if freshclam has missing dependencies.
victortsui
New here
Posts: 3
Joined: Sun Mar 17, 2013 9:19 am

Re: How to Update Virus Definitions?

Post by victortsui »

I have the same problem with my TS-219II. I have to reset my drive to factory settings due to Ransomeware attack in April. I have not been able to update virus definition ever since. However, I noticed update was sporadic even before NAS reset in April anyway. I downloaded clamav-0.103.3.tar.gz from www.clamav.net and after expanding the content : / database / daily.cvd and main.cvd both files have zero bytes. Am I looking at the right place or have the correct download package? Any suggestion is appreciated.
bluewammer
New here
Posts: 4
Joined: Thu Jul 13, 2017 4:51 pm

Re: How to Update Virus Definitions?

Post by bluewammer »

I have the same problem - both files have zero bytes every time I download them.
Post Reply

Return to “NAS Management”