ClamAV issues

Kernels & Hardware, configuring network, installing services

ClamAV issues

Postby sephstorm » 2018-07-21 04:54

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?
sephstorm
 
Posts: 2
Joined: 2018-07-20 22:43

Re: ClamAV issues

Postby kedaha » 2018-07-21 06:02

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
Mate DE & OSSv4.
LaMp, WordPress; ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 2867
Joined: 2008-05-24 12:26

Re: ClamAV issues

Postby None1975 » 2018-07-21 12:03

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 9.5 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 647
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: ClamAV issues

Postby sephstorm » 2018-07-21 22:28

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.
sephstorm
 
Posts: 2
Joined: 2018-07-20 22:43

Re: ClamAV issues

Postby None1975 » 2018-07-23 14:39

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 9.5 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 647
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable