Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ClamAV issues

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
sephstorm
Posts: 2
Joined: 2018-07-20 22:43

ClamAV issues

#1 Post by sephstorm »

So I don't know why ClamAV is so difficult to maintain.

I won't bore you guys with all the details of the issues I was having, suffice it to say I uninstalled using apt several times, tried reinstallng from the repo several times trying to get it working and finally went to trying to install from source. After following the instructions to install from source based on the instructions on the clamav site. After installing and restarting I am now getting the following error when running freshclam:

Code: Select all

Can't open/parse the config file /usr/local/etc/freshclam.conf
So did a search. ran the following

Code: Select all

dpkg-reconfigure clamav-freshclam
dpkg-query: package 'clamav-freshclam' is not installed and no information is available

Code: Select all

dpkg-reconfigure freshclam
dpkg-query: package 'freshclam' is not installed and no information is available

Code: Select all

which freshclam
/usr/local/bin/freshclam

Code: Select all

cat /usr/local/etc/freshclam.conf
cat: /usr/local/etc/freshclam.conf: No such file or directory
there is however a /usr/local/etc/freshclam.conf.sample

wtf?

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: ClamAV issues

#2 Post by kedaha »

Hi,
I've recently tried it with two different email server set-ups and can confirm that the steps given at /stretch/filtering-viruses-malware/—in combination with rspamd—which makes interesting reading, work well. However, I finally opted for a different setup, as posted recently in this topic.
It is now up and running for 24/7 use.
I definitely would not compile it from source.

Code: Select all

# service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor pr
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: active (running) since Fri 2018-07-20 22:53:43 BST; 8h ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
 Main PID: 565 (clamd)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/clamav-daemon.service
           └─565 /usr/sbin/clamd --foreground=true
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 69 times

Re: ClamAV issues

#3 Post by None1975 »

After following the instructions to install from source based on the instructions on the clamav site. After installing and restarting I am now getting the following error when running freshclam
When you compile it from source, did you create the .deb package?
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

sephstorm
Posts: 2
Joined: 2018-07-20 22:43

Re: ClamAV issues

#4 Post by sephstorm »

None1975 wrote:
After following the instructions to install from source based on the instructions on the clamav site. After installing and restarting I am now getting the following error when running freshclam
When you compile it from source, did you create the .deb package?
No, per the instructions I downloaded the tar file, untared it, installed the needed OpenSSL libraries, configured make, and make installed, followed by a reboot (this is from my memory, so might have missed a step.)

That said, following the instructions above have me somewhat working. So heres to hoping.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 69 times

Re: ClamAV issues

#5 Post by None1975 »

sephstorm wrote:No, per the instructions I downloaded the tar file, untared it, installed the needed OpenSSL libraries, configured make, and make installed.
I understood. Then it is clear why dpkg indicates that

Code: Select all

package 'clamav-freshclam' is not installed and no information is available
You should create a .deb package and then install it. This is straightforward; just run this to make the .deb (from in the source package directory):

Code: Select all

dpkg-buildpackage -us -uc
This will spit out lots of output; the options given mean it shouldn't prompt you about unsigned files. When it finishes you should find your .deb in the parent directory, so cd up one level and install like so (as root):

Code: Select all

cd ..
# dpkg -i packagename*.deb
Done! Now it’s official. Don’t forget to uninstall the old file

Code: Select all

freshclam
Good luck.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply