LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2024, 03:49 PM   #1
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Rep: Reputation: 0
Can't update clamav


After installing clamav, when I attempt to update via freshclam, I get:

sudo freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!

and:
ls -l /etc/clamav/freshclam.conf
-rw-r--r-- 1 clamav adm 682 Mar 8 00:33 /etc/clamav/freshclam.conf

doesn't help.
Can anybody help?
Graeme
 
Old 03-07-2024, 05:04 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
freshclam is already running? Maybe. Is it?
 
Old 03-07-2024, 05:14 PM   #3
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Original Poster
Rep: Reputation: 0
I found that freshclam is already installed by the software manager.
Is that why I can't manually update it?
Does:
-rw-r--r-- 1 clamav adm 682 Mar 8 00:33 /etc/clamav/freshclam.conf
say that it is up to date as of March 8?
Graeme
 
Old 03-07-2024, 05:21 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
I'm guessing the clamav-update tool is running which automatically updates the database.
 
Old 03-13-2024, 08:38 PM   #5
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Original Poster
Rep: Reputation: 0
I used:
lsof /var/log/clamav/freshclam.log
to find which process is locking the file with nothing but a blinking cursor in response.

ls -l /etc/clamav/freshclam.conf
gets the same response as previously, so that just referred to the installation date.
No good if definitions can't be updated.
Firefox wouldn't be involved would it?
Graeme
 
Old 03-14-2024, 12:02 AM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
freshclam doesn’t update the freshclam.conf file, so looking at its listing doesn’t tell us anything about the update.

lsof lists the open files used by a running program. The log file isn’t a program.

What does the log file say? The last entry in mine is
Code:
ClamAV update process started at Wed Mar 13 21:23:06 2024
daily.cld database is up-to-date (version: 27213, sigs: 2054946, f-level: 90, builder: raynman)
main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode.cld database is up-to-date (version: 335, sigs: 86, f-level: 90, builder: raynman)
Indicating that an update has run…
Frankly, I’m not sure what is running freshclam on my server. Probably a cron job I’m to lazy to look for right now…but the log file shows me that the update is running every three hours.

Last edited by scasey; 03-14-2024 at 12:09 AM.
 
Old 03-15-2024, 02:56 AM   #7
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Original Poster
Rep: Reputation: 0
I ran lsof which gave a million entries but none re clamav.
How do I access the logfile.
I want what you've got. Regular updates and email and download checking.
Graeme
 
Old 03-19-2024, 09:20 PM   #8
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Original Poster
Rep: Reputation: 0
Clamav continues to be a mystery.
However it tells me:
clamav is already the newest version (0.103.11+dfsg-0ubuntu0.22.04.1).

How do I (know that I) get regular signature updates and set it to scan incoming emails and downloads?
Or can I assume that I'm safe using Linux Mint 2211.33 Virginia and don't need to bother?
Graeme
 
Old 03-20-2024, 12:16 AM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by GraemeRS View Post
How do I access the logfile.
Graeme
Use cat or more (or less) to view the log file. You may need to be root.
 
Old 03-20-2024, 09:53 PM   #10
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Original Poster
Rep: Reputation: 0
Can you put that in the context of a command please.
Graeme
 
Old 03-20-2024, 10:42 PM   #11
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Since the process is locked, you could try killing freshclam with
Quote:
killall -9 freshclam
then try running it again.
 
Old 03-20-2024, 11:37 PM   #12
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by GraemeRS View Post
Can you put that in the context of a command please.
Graeme
Those are the commands in bold.
Code:
cat /path/to/freshclam,log
more  /path/to/freshclam,log
less /path/to/freshclam,log

Last edited by scasey; 03-20-2024 at 11:40 PM.
 
Old 03-30-2024, 02:29 AM   #13
GraemeRS
LQ Newbie
 
Registered: Jan 2023
Posts: 29

Original Poster
Rep: Reputation: 0
Sorry scasey. I couldn't find a way to make any of those work.
At first I gave up but then thought I should say I'm thinking that there is expertise assumed of me that I don't have.
I'm a fairly recent convert to Linux and loving it. Learning to use Terminal is a challenge.
Regards,
Graeme
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clamav upgrade telling me clamav is newest version, but running 'sudo freshclam' tells me it is outdated! hddfsck Linux - Newbie 16 09-13-2019 09:43 PM
Mimedefang clamav vs clamav-milter digitolx Linux - Server 0 10-20-2010 03:45 PM
Can't update to the latest version of Clamav on Suse 11.1 swamprat Linux - Software 6 04-05-2010 11:59 AM
file-scan-clamav-1.8 or clamav-0.93.1 invader44 Linux - Newbie 1 12-29-2009 08:49 AM
How can I update ClamAV? clpl1980 Fedora 2 03-27-2007 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration