Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After installing clamav and clamtk, when doing freshclam I receive this message:

freshclam
ERROR: Can't create temporary directory /var/lib/clamav/clamav-f52645d8e80b9b727228734e339d231d
Hint: The database directory must be writable for UID 1000 or GID 1000

Could somebody help?

share|improve this question
    
So I re-installed it, used sudo freshclam and what i got was this: pastebin.com/kh9Q1h3K Is there anyway that warning is fixed? I'm asking because I can't seem to install it from the tar.gz file of the home page. I will leave this as solved and wait for the repositories, thank you all. [SOLVED] –  vitimiti Sep 21 '12 at 11:20
1  
This is not a forum, we do not use "[SOLVED]" here. The format of this site is Question -> Answer, so If you have an answer please feel free to add an answer to your own question, or if an answer solved your question click on the green check next to the answer that solved your question. –  Mateo Sep 30 '12 at 2:18
add comment

3 Answers

http://www.iasptk.com/ubuntu/19931-ubuntu-1204-clamav-problem-with-updating

In Terminal:

Stop the updater:

sudo /etc/init.d/clamav-freshclam stop

Update:

sudo freshclam -v

Start the updater:

sudo /etc/init.d/clamav-freshclam start
share|improve this answer
add comment

I seem to remember getting this issue when I first started using clamav, going back through my notes I found I had written this:

First find out my uid and gid by typing at the command prompt: id your_username

Should give you a long line of text with a uid and gid in it somewhere, then type: sudo chown UID.GID /var/lib/clamav then sudo chmod 755 /var/lib/clamav

Change UID and GID with the values you got from the id Command above.

hope that helps

share|improve this answer
add comment

Yes, run freshclam with sudo:

sudo freshclam

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.