al7oot wrote:
>
> Hello everyone,
>
> I've just migrated from debian lenny Xfce to openSUSE 11.2 Xfce.
> It's the best Xfce distribution I've ever used; it's lightweight,
> up-to-date and good looking distro. Thanks to all developers and
> openSUSE community.
>
> As I'm running a dual-boot machine openSUSE/XP thus I had to
> install a virus scanner and I've choosen ClamAV. I successfully
installed
> ClamTK but unable to update the virus definitions database.I
> tried to resolve the issue by doing the following steps as root:
> Yast2>System>System Services (Runlevel)>Expert Mode> assign
> runlevel 2,3&5 to clamav-milter, clamd and freshclam>OK>Reboot
>
> Then, I tried to update clamav using ClamTK but it failed. Also
> I tried to update it using freshclam through terminal but I got
> this error message:
>
> Code:
> --------------------
> al7oot@xfce:~> freshclam
> ClamAV update process started at Tue Dec 22 10:11:40 2009
> main.cvd is up to date (version: 51, sigs: 545035, f-level:
> 42, builder: sven) ERROR: chdir_tmp: Can't create directory
> ./clamav-cd7ec6d0b7dd2b5e52685fa6a30fcfe7 WARNING: Incremental
> update failed, trying to download daily.cvd ERROR: getfile:
> Can't create new file
> /var/lib/clamav/clamav-ee703d106eb288a04532a0ef33bb7698 in
> /var/lib/clamav Hint: The database directory must be writable
> for UID 1000 or GID 100 WARNING: Can't download daily.cvd from
> database.clamav.net al7oot@xfce:~>
>
> --------------------
>
>
> I googled the net for a solution but I couldn't find any
> applicable solution. Please help me.
> Thanks
Did you run as root?
Note: I just ran clamscan manually. Check and make sure the file
freshclam.log exists in /var/log before running the below command.
If not create as root and change the owner:user to vscan:vscan and
permissions to 644:
-rw-r--r-- 1 vscan vscan 12896 2009-12-23 09:17 freshclam.log
see clamav permissions below.
sudo fresshclam -v --log=/var/log/freshclam.log
(also could use su, enter root password in either case)
Note: I got failures on some of the mirrors but then it found a
good one and successfully updated daily.cvd.
Also note your error appears to be a permissions problem on the
var/lib/clamav contents. here's mine:
-rw-rw-r-- 1 vscan vscan 4 2009-12-23 08:10 clamav-
milter.pid
srwxrwxrwx 1 vscan vscan 0 2009-12-23 08:10 clamav-milter-
socket
-rw-rw-r-- 1 vscan vscan 4 2009-12-23 08:10 clamd.pid
srwxrwxrwx 1 vscan vscan 0 2009-12-23 08:10 clamd-socket
-rw-r--r-- 1 vscan vscan 3493315 2009-12-23 09:17 daily.cvd
-rw-r--r-- 1 vscan vscan 21253696 2009-11-09 08:19 main.cvd
-rw------- 1 vscan vscan 156 2009-12-2
Who owns your files. should set up as vscan:vscan.
Partial Log Entry:
Trying to download
http://database.clamav.net/daily-10029.cdiff
(IP: 130.59.10.36)
WARNING: getfile: daily-10029.cdiff not found on remote server
(IP: 130.59.10.36)
WARNING: getpatch: Can't download daily-10029.cdiff from
database.clamav.net
Retrieving
http://database.clamav.net/daily-10029.cdiff
Ignoring mirror 130.59.10.36 (due to previous errors)
Trying to download
http://database.clamav.net/daily-10029.cdiff
(IP: 193.1.193.64)
WARNING: getfile: daily-10029.cdiff not found on remote server
(IP: 193.1.193.64)
WARNING: getpatch: Can't download daily-10029.cdiff from
database.clamav.net
Retrieving
http://database.clamav.net/daily-10029.cdiff
Ignoring mirror 130.59.10.36 (due to previous errors)
Trying to download
http://database.clamav.net/daily-10029.cdiff
(IP: 193.1.193.64)
WARNING: getfile: daily-10029.cdiff not found on remote server
(IP: 193.1.193.64)
WARNING: getpatch: Can't download daily-10029.cdiff from
database.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Whitelisting short-term blacklisted mirrors
Retrieving
http://database.clamav.net/daily.cvd
Trying to download
http://database.clamav.net/daily.cvd
(IP: 193.1.193.64)
Downloading daily.cvd [100%]
daily.cvd updated (version: 10212, sigs: 134109, f-level: 44,
builder: arnaud)
Database updated (679144 signatures) from database.clamav.net
(IP: 193.1.193.64)
Clamd successfully notified about the update.
Hope this helps.
--
Russ
[openSUSE 11.2 (2.6.31.5-0.1-desktop, x86_64] KDE 4.3.4 release 2
Intel Core 2 Dual E7200, 4 GB RAM, GeForce 8400 GS, 320GB Disc (2)
Bookmarks