LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-29-2024, 08:27 AM   #1
Hylton
LQ Newbie
 
Registered: Jan 2024
Location: South Africa
Distribution: Ubuntu - Zorin OS 17 Core
Posts: 2

Rep: Reputation: 0
Linux Ubuntu Zorin 17 OS - Install ClamAV via APT on Ubuntu - Error Message


Trying to install ClamAV via APT on Ubuntu with:

sudo apt install clamav clamav-daemon

Receive the following Error Message:

[sudo] password for guy:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
clamav-daemon is already the newest version (0.103.11+dfsg-0ubuntu0.22.04.1).
clamav is already the newest version (1.2.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up clamav-daemon (0.103.11+dfsg-0ubuntu0.22.04.1) ...
touch: cannot touch '/var/log/clamav/clamav.log': No such file or directory
dpkg: error processing package clamav-daemon (--configure):
installed clamav-daemon package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

Output below from the ClamAV command - clamconf -n

Version: 1.2.1
Optional features supported: MEMPOOL AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 ICONV JSON RAR

Database information
Database directory: /usr/local/share/clamav
print_dbs: Can't open directory /usr/local/share/clamav

Platform information
uname: Linux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64
OS: Linux, ARCH: x86_64, CPU: x86_64
Full OS version: Zorin OS 17
zlib version: 1.3 (1.3), compile flags: a9
platform id: 0x0a21bfbf0800000000070500

Build information
GNU C: 7.5.0 (7.5.0)
sizeof(void*) = 8
Engine flevel: 191, dconf: 191
 
Old 02-02-2024, 11:54 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Hi, you seem to have the latrest version of clamav. To kill the nuisance error, run
Code:
sudo touch /var/log/clamav/clamav.log
which should create that logfile. If that errors out, go looking at permissions, etc.

For some reason, the script/program seems to be checking for clamav.log before touching it, which simply updates it.
 
  


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
[SOLVED] echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \ > /etc/apt/apt.conf.d/01keep-debs Outabux Debian 10 12-30-2022 12:12 PM
Zorin 16 Pro OS install won't erase the presently installed Zorin 15 OS Nosar Zorin OS 3 12-01-2021 08:30 PM
I have troubles. Blinks: Zorin OS12 zorin tty1 zorin login:_ FRANCISCO JAHN Linux - Newbie 1 09-23-2020 07:02 PM
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
LXer: Artyom Zorin on Zorin OS, the gateway to Linux for Windows users LXer Syndicated Linux News 0 04-23-2012 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:49 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