How can I install ClamAV's newest version?

Questions about applications and software
Forum rules
Before you post please read how to get help
whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

How can I install ClamAV's newest version?

Post by whois1230 » Tue May 15, 2018 10:42 am

Hi, I'm trying to install the newest version of ClamAV https://www.clamav.net/ --- The newest version is 0.100.0. When I run sudo apt-get install clamav, the older version - 0.99.4, gets installed and when I run sudo freshclam it doesn't update to 0.100.0 and the version stays the same. I also installed ClamTK from the software manager and updated from there, but it still stayed on 0.99.4. I downloaded the clamav-0.100.0.tar.gz file from the official website and ran the "configure" terminal icon from the folder, but that didn't install ClamAV either.

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Tue May 15, 2018 11:06 am

Only 0.99.4 is available from the repos, if you need the latest and greatest you'll have to download the tar.gz files from here and follow the readme instructions. I'll assume you've read all the pros and cons regarding anti-virus software on desktop Linux so I won't go there. Also have a reason to use non-repo'ed software, as it's not been tested with Ubuntu/Mint.

Running freshclam updates the virus definition tables, not the program itself.

Good Luck
Image

whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

Re: How can I install ClamAV's newest version?

Post by whois1230 » Tue May 15, 2018 11:43 am

greerd wrote:
Tue May 15, 2018 11:06 am
Only 0.99.4 is available from the repos, if you need the latest and greatest you'll have to download the tar.gz files from here and follow the readme instructions. I'll assume you've read all the pros and cons regarding anti-virus software on desktop Linux so I won't go there. Also have a reason to use non-repo'ed software, as it's not been tested with Ubuntu/Mint.

Running freshclam updates the virus definition tables, not the program itself.

Good Luck
Hi, I followed all the instructions and installed ClamAV according to them, but any command I run gives this error: user@user ~ $ sudo clamscan -V
ERROR: This tool requires libclamav with functionality level 91 or higher (current f-level: 85)

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Tue May 15, 2018 12:51 pm

Well, there's a libclamav7 in the repos, what does apt policy libclamav7 return, is it installed?
Image

User avatar
phd21
Level 16
Level 16
Posts: 6208
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: How can I install ClamAV's newest version?

Post by phd21 » Tue May 15, 2018 2:12 pm

Hi whois1230,

I just read your post and the good replies to it. Here are my thoughts on this as well.

There is some good information in the post below:
Need for an antivirus.? - Linux Mint Forums
viewtopic.php?f=90&t=238726&hilit=linux+malware+detect

Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

Re: How can I install ClamAV's newest version?

Post by whois1230 » Tue May 15, 2018 5:04 pm

greerd wrote:
Tue May 15, 2018 12:51 pm
Well, there's a libclamav7 in the repos, what does apt policy libclamav7 return, is it installed?
user@user ~ $ apt policy libclamav7
libclamav7:
Installed: 0.99.4+addedllvm-0ubuntu0.16.04.1
Candidate: 0.99.4+addedllvm-0ubuntu0.16.04.1
Version table:
*** 0.99.4+addedllvm-0ubuntu0.16.04.1 500
500 http://ftp-stud.hs-esslingen.de/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
0.99+dfsg-1ubuntu1 500
500 http://ftp-stud.hs-esslingen.de/ubuntu xenial/main amd64 Packages
user@user ~ $

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Tue May 15, 2018 5:27 pm

Sound like you didn't uninstall the distros version before building the new one, see here.
Image

User avatar
phd21
Level 16
Level 16
Posts: 6208
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: How can I install ClamAV's newest version?

Post by phd21 » Tue May 15, 2018 7:24 pm

HI whois1230,

Installing the "ClamAV" packages from "Synaptic Package Manager (SPM)" works as well as can be expected even though it is version 0.99.4 versus 0.100.x. I do not know that there would be any benefits by installing the newest version.

Code: Select all

sudo apt-get install clamav clamtk clamav-unofficial-sigs inotify-tools libtext-csv-xs-perl libclamunrar7 -y
freshclam

I tried to compile the slightly newer version but it gave me an error "could not find openssl" and would not finish, yet I have the "openssl" packages installed?
phd21- Linux Mint Cinnamon 18.3 wrote: $ clamscan -V
ClamAV 0.99.4/24573/Tue May 15 16:36:53 2018

$ clamscan -r --bell -i ~/Downloads
----------- SCAN SUMMARY -----------
Known viruses: 6682880
Engine version: 0.99.4
Scanned directories: 541
Scanned files: 6031
Infected files: 0
Data scanned: 301.86 MB
Data read: 2776.54 MB (ratio 0.11:1)
Time: 142.112 sec (2 m 22 s)
How To Install & Use ClamAV (Antivirus) in Ubuntu 16.04 – TheLinuxCode
https://thelinuxcode.com/install-use-cl ... ntu-16-04/

How to scan for viruses with ClamAV on Ubuntu
https://www.howtoforge.com/tutorial/clamav-ubuntu/

"clamtk" newer (deb) files
https://dave-theunsub.github.io/clamtk/


Hope this helps ...
.
ClamAV_ClamTK.jpg
ClamTK front-end for ClamAV - settings
.
ClamAV_Nemo_FileManager.jpg
Nemo (files) File Manager integration
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

Re: How can I install ClamAV's newest version?

Post by whois1230 » Wed May 16, 2018 7:31 am

greerd wrote:
Tue May 15, 2018 5:27 pm
Sound like you didn't uninstall the distros version before building the new one, see here.
Ok, I managed to install the newest version - 0.100.0, but I can't run the update: user@user ~ $ sudo freshclam
[sudo] password for user:
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
user@user ~ $

Hoser Rob
Level 11
Level 11
Posts: 3853
Joined: Sat Dec 15, 2012 8:57 am

Re: How can I install ClamAV's newest version?

Post by Hoser Rob » Wed May 16, 2018 8:55 am

A couple of thoughts here ...

First, you simply don't need AV software in Linux.

Second, even if you did, Clam is not meant for general Linux desktop use. It's for mail servers, and it only chases Windows viruses anyway.

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Wed May 16, 2018 11:32 am

@phd21 & @Hoser Rob, I'm assuming that the OP is running a server with Windows clients.
whois1230 wrote:
Wed May 16, 2018 7:31 am
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
Try sudo updatedb wait for it to finish, then sudo locate freshclam.conf to find out where its located.
Image

User avatar
phd21
Level 16
Level 16
Posts: 6208
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: How can I install ClamAV's newest version?

Post by phd21 » Wed May 16, 2018 12:37 pm

HI whois1230,

As has already been stated many times in many posts, nobody needs to have an anti-virus anti-malware application installed in Linux Mint unless you are frequently exchanging files with MS Windows or Mac users, or downloading stuff, and even then, there are online antivirus scan options and bootable anti-virus rescue discs that can be used.

I also managed to compile the newest version of ClamAV and install it where it shows clamav v0.100, but nothing works properly with it. One of the risks of compiling software from source code is that if the instructions are not complete or that the "configure", "make", and "install" scripts are not complete enough for whatever operating system you are trying to install it on which seems to be the case with this software and Linux Mint 18.x and Ubuntu 16.04, then you could corrupt your system and or the application will not work properly or at all. There are a lot of support packages, and options, and configuration files for ClamAV which apparently were not installed or setup correctly when compiling and installing this yourself.

I could not even remove (purge) it from my system and install the version from the "Synaptic Package Manager (SPM)" where either version will now function correctly. Fortunately, I could just restore from my backup and this software is not integral for Linux Mint to run properly.

You could try manually deleting all the "clamav" related files and folders from the entire system which is a daunting task, then re-installing the working version from the "Synaptic Package Manager (SPM)" which as long as you update the definitions (freshclam), then it will work as well as expected.

There are also other Anti-virus software that can be installed in Linux Mint.

Hope this helps ...
Last edited by phd21 on Thu May 17, 2018 12:30 pm, edited 1 time in total.
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
AZgl1500
Level 6
Level 6
Posts: 1377
Joined: Thu Dec 31, 2015 3:20 am
Location: /Home/Desktop
Contact:

Re: How can I install ClamAV's newest version?

Post by AZgl1500 » Wed May 16, 2018 1:55 pm

as Phill mentioned, it is far easier to just use a Timeshift version to back up to.

I just did that when I scrambled my laptop yesterday morning "in my sleep", yup, laptop in my lap and went to sleep.
woke up and it was thoroughly scrambled....

I opened Timeshift and went back to the previous day and wallah!
God is good!

whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

Re: How can I install ClamAV's newest version?

Post by whois1230 » Wed May 16, 2018 3:19 pm

greerd wrote:
Wed May 16, 2018 11:32 am
@phd21 & @Hoser Rob, I'm assuming that the OP is running a server with Windows clients.
whois1230 wrote:
Wed May 16, 2018 7:31 am
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
Try sudo updatedb wait for it to finish, then sudo locate freshclam.conf to find out where its located.
user@user ~ $ sudo updatedb
[sudo] password for user:
user@user ~ $ sudo locate freshclam.conf
[sudo] password for user:
/etc/clamav/freshclam.conf
/home/user/Desktop/ClamAV/clamav-0.100.0/docs/man/freshclam.conf.5
/home/user/Desktop/ClamAV/clamav-0.100.0/docs/man/freshclam.conf.5.in
/home/user/Desktop/ClamAV/clamav-0.100.0/etc/freshclam.conf.sample
/home/user/Desktop/ClamAV/clamav-0.100.0/unit_tests/test-freshclam.conf
/home/user/Desktop/ClamAV/clamav-0.100.0/win32/conf_examples/freshclam.conf.sample
/timeshift/snapshots/2017-12-24_09-07-10/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2017-12-24_09-07-10/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2017-12-24_09-07-10/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2017-12-24_09-07-10/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2017-12-24_09-07-10/localhost/var/lib/dpkg/info/clamav-freshclam.config
/timeshift/snapshots/2017-12-24_09-07-10/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/timeshift/snapshots/2018-05-13_00-00-03/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2018-05-13_00-00-03/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2018-05-13_00-00-03/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2018-05-13_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2018-05-13_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.config
/timeshift/snapshots/2018-05-13_00-00-03/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/timeshift/snapshots/2018-05-14_00-00-03/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2018-05-14_00-00-03/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2018-05-14_00-00-03/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2018-05-14_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2018-05-14_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.config
/timeshift/snapshots/2018-05-14_00-00-03/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/timeshift/snapshots/2018-05-15_11-00-03/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2018-05-15_11-00-03/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2018-05-15_11-00-03/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2018-05-15_11-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2018-05-15_11-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.config
/timeshift/snapshots/2018-05-15_11-00-03/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/timeshift/snapshots/2018-05-16_13-00-02/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2018-05-16_13-00-02/localhost/usr/local/etc/freshclam.conf.sample
/timeshift/snapshots/2018-05-16_13-00-02/localhost/usr/local/share/man/man5/freshclam.conf.5
/timeshift/snapshots/2018-05-16_13-00-02/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2018-05-16_13-00-02/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2018-05-16_13-00-02/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2018-05-16_13-00-02/localhost/var/lib/dpkg/info/clamav-freshclam.config
/timeshift/snapshots/2018-05-16_13-00-02/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/usr/local/etc/freshclam.conf.sample
/usr/local/share/man/man5/freshclam.conf.5
/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/usr/share/man/man5/freshclam.conf.5.gz
/var/lib/dpkg/info/clamav-freshclam.conffiles
/var/lib/dpkg/info/clamav-freshclam.config
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
user@user ~ $

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Wed May 16, 2018 3:47 pm

I'd take a look in /usr/local/etc/freshclam.conf.sample and see whats there and possibly rename it to freshclam.conf.
EDIT: and probably move it to /etc/
Image

User avatar
Pjotr
Level 20
Level 20
Posts: 10214
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: How can I install ClamAV's newest version?

Post by Pjotr » Wed May 16, 2018 4:19 pm

Wiser to stop trying to make your system less secure by having antivirus on it:
https://sites.google.com/site/easylinux ... t/security
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

Re: How can I install ClamAV's newest version?

Post by whois1230 » Sun May 20, 2018 12:40 pm

greerd wrote:
Wed May 16, 2018 3:47 pm
I'd take a look in /usr/local/etc/freshclam.conf.sample and see whats there and possibly rename it to freshclam.conf.
EDIT: and probably move it to /etc/
It doesn't allow me to rename it, how could I do this?

##
## Example config file for freshclam
## Please read the freshclam.conf(5) manual before editing this file.
##


# Comment or remove the line below.
Example

# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# Default: hardcoded (depends on installation options)
#DatabaseDirectory /var/lib/clamav

# Path to the log file (make sure it has proper permissions)
# Default: disabled
#UpdateLogFile /var/log/freshclam.log

# Maximum size of the log file.
# Value of 0 disables the limit.
# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes).
# in bytes just don't use modifiers. If LogFileMaxSize is enabled,
# log rotation (the LogRotate option) will always be enabled.
# Default: 1M
#LogFileMaxSize 2M

# Log time with each message.
# Default: no
#LogTime yes

# Enable verbose logging.
# Default: no
#LogVerbose yes

# Use system logger (can work together with UpdateLogFile).
# Default: no
#LogSyslog yes

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
# Default: LOG_LOCAL6
#LogFacility LOG_MAIL

# Enable log rotation. Always enabled when LogFileMaxSize is enabled.
# Default: no
#LogRotate yes

# This option allows you to save the process identifier of the daemon
# Default: disabled
#PidFile /var/run/freshclam.pid

# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
#DatabaseOwner clamav

# Use DNS to verify virus database version. Freshclam uses DNS TXT records
# to verify database and software versions. With this directive you can change
# the database verification domain.
# WARNING: Do not touch it unless you're configuring freshclam to use your
# own database verification domain.
# Default: current.cvd.clamav.net
#DNSDatabaseInfo current.cvd.clamav.net

# Uncomment the following line and replace XY with your country
# code. See https://www.iana.org/domains/root/db for the full list.
# You can use db.XY.ipv6.clamav.net for IPv6 connections.
#DatabaseMirror db.XY.clamav.net

# database.clamav.net is a round-robin record which points to our most
# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is
# not working. DO NOT TOUCH the following line unless you know what you
# are doing.
DatabaseMirror database.clamav.net

# How many attempts to make before giving up.
# Default: 3 (per mirror)
#MaxAttempts 5

# With this option you can control scripted updates. It's highly recommended
# to keep it enabled.
# Default: yes
#ScriptedUpdates yes

# By default freshclam will keep the local databases (.cld) uncompressed to
# make their handling faster. With this option you can enable the compression;
# the change will take effect with the next database update.
# Default: no
#CompressLocalDatabase no

# With this option you can provide custom sources (http:// or file://) for
# database files. This option can be used multiple times.
# Default: no custom URLs
#DatabaseCustomURL http://myserver.com/mysigs.ndb
#DatabaseCustomURL file:///mnt/nfs/local.hdb

# This option allows you to easily point freshclam to private mirrors.
# If PrivateMirror is set, freshclam does not attempt to use DNS
# to determine whether its databases are out-of-date, instead it will
# use the If-Modified-Since request or directly check the headers of the
# remote database files. For each database, freshclam first attempts
# to download the CLD file. If that fails, it tries to download the
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
# and ScriptedUpdates. It can be used multiple times to provide
# fall-back mirrors.
# Default: disabled
#PrivateMirror mirror1.mynetwork.com
#PrivateMirror mirror2.mynetwork.com

# Number of database checks per day.
# Default: 12 (every two hours)
#Checks 24

# Proxy settings
# Default: disabled
#HTTPProxyServer myproxy.com
#HTTPProxyPort 1234
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass

# If your servers are behind a firewall/proxy which applies User-Agent
# filtering you can use this option to force the use of a different
# User-Agent header.
# Default: clamav/version_number
#HTTPUserAgent SomeUserAgentIdString

# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for
# multi-homed systems.
# Default: Use OS'es default outgoing IP address.
#LocalIPAddress aaa.bbb.ccc.ddd

# Send the RELOAD command to clamd.
# Default: no
#NotifyClamd /path/to/clamd.conf

# Run command after successful database update.
# Default: disabled
#OnUpdateExecute command

# Run command when database update process fails.
# Default: disabled
#OnErrorExecute command

# Run command when freshclam reports outdated version.
# In the command string %v will be replaced by the new version number.
# Default: disabled
#OnOutdatedExecute command

# Don't fork into background.
# Default: no
#Foreground yes

# Enable debug messages in libclamav.
# Default: no
#Debug yes

# Timeout in seconds when connecting to database server.
# Default: 30
#ConnectTimeout 60

# Timeout in seconds when reading from database server.
# Default: 30
#ReceiveTimeout 60

# With this option enabled, freshclam will attempt to load new
# databases into memory to make sure they are properly handled
# by libclamav before replacing the old ones.
# Default: yes
#TestDatabases yes

# This option enables support for Google Safe Browsing. When activated for
# the first time, freshclam will download a new database file
# (safebrowsing.cvd) which will be automatically loaded by clamd and
# clamscan during the next reload, provided that the heuristic phishing
# detection is turned on. This database includes information about websites
# that may be phishing sites or possible sources of malware. When using this
# option, it's mandatory to run freshclam at least every 30 minutes.
# Freshclam uses the ClamAV's mirror infrastructure to distribute the
# database and its updates but all the contents are provided under Google's
# terms of use. See https://www.google.com/transparencyreport/safebrowsing
# and https://www.clamav.net/documents/safebrowsing
# for more information.
# Default: disabled
#SafeBrowsing yes

# This option enables downloading of bytecode.cvd, which includes additional
# detection mechanisms and improvements to the ClamAV engine.
# Default: enabled
#Bytecode yes

# Download an additional 3rd party signature database distributed through
# the ClamAV mirrors.
# This option can be used multiple times.
#ExtraDatabase dbname1
#ExtraDatabase dbname2

P.S. user@user ~ $ clamscan -r /
LibClamAV Error: cl_load(): No such file or directory: /usr/local/share/clamav
ERROR: Can't get file status

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.100.0
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.066 sec (0 m 0 s)

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Sun May 20, 2018 1:51 pm

It looks to me like it didn't get installed correctly or completely.
user@user ~ $ clamscan -r /
LibClamAV Error: cl_load(): No such file or directory: /usr/local/share/clamav
ERROR: Can't get file status
I would suggest that you timeshift back to just before you tried installing from source. Even if the clamav engine isn't the latest, freshclam will update you virus definitions to the latest, just go with that. Maybe Mint 19 will have the newest.
Image

whois1230
Level 3
Level 3
Posts: 107
Joined: Mon Aug 28, 2017 5:35 am

Re: How can I install ClamAV's newest version?

Post by whois1230 » Sun May 20, 2018 5:52 pm

greerd wrote:
Sun May 20, 2018 1:51 pm
It looks to me like it didn't get installed correctly or completely.
user@user ~ $ clamscan -r /
LibClamAV Error: cl_load(): No such file or directory: /usr/local/share/clamav
ERROR: Can't get file status
I would suggest that you timeshift back to just before you tried installing from source. Even if the clamav engine isn't the latest, freshclam will update you virus definitions to the latest, just go with that. Maybe Mint 19 will have the newest.
Unfortunately I don't have Timeshift, and now I can't delete ClamAV:

user@user ~ $ clamscan -V
ClamAV 0.100.0
user@user ~ $ sudo freshclam
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
user@user ~ $ sudo apt-get remove purge clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package purge
user@user ~ $ sudo apt-get autoremove clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
clamav clamav-base clamav-freshclam libclamav7 libllvm3.6v5
0 to upgrade, 0 to newly install, 5 to remove and 0 not to upgrade.
After this operation, 36.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 613011 files and directories currently installed.)
Removing clamav (0.99.4+addedllvm-0ubuntu0.16.04.1) ...
Removing clamav-freshclam (0.99.4+addedllvm-0ubuntu0.16.04.1) ...
Removing clamav-base (0.99.4+addedllvm-0ubuntu0.16.04.1) ...
Removing libclamav7 (0.99.4+addedllvm-0ubuntu0.16.04.1) ...
Removing libllvm3.6v5:amd64 (1:3.6.2-3ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
user@user ~ $ clamscan -V
ClamAV 0.100.0

User avatar
greerd
Level 5
Level 5
Posts: 940
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How can I install ClamAV's newest version?

Post by greerd » Sun May 20, 2018 8:24 pm

Looks like you do have timeshift.
whois1230 wrote:
Wed May 16, 2018 3:19 pm
...snip
/timeshift/snapshots/2017-12-24_09-07-10/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/timeshift/snapshots/2018-05-13_00-00-03/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2018-05-13_00-00-03/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2018-05-13_00-00-03/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2018-05-13_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2018-05-13_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.config
/timeshift/snapshots/2018-05-13_00-00-03/localhost/var/lib/ucf/cache/:etc:clamav:freshclam.conf
/timeshift/snapshots/2018-05-14_00-00-03/localhost/etc/clamav/freshclam.conf
/timeshift/snapshots/2018-05-14_00-00-03/localhost/usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample
/timeshift/snapshots/2018-05-14_00-00-03/localhost/usr/share/man/man5/freshclam.conf.5.gz
/timeshift/snapshots/2018-05-14_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.conffiles
/timeshift/snapshots/2018-05-14_00-00-03/localhost/var/lib/dpkg/info/clamav-freshclam.config
...snip
I think the best course of action is to timeshift back to before you installed clamav 0.100.

Your last post says that you did remove clamav, but it was clamav 0.99.4 not 0.100. You can't remove a package built from source by using apt-get since it isn't a Debian package. From https://www.clamav.net/documents/uninstalling-clamav you have to cd into the directory you built it from, then run the commands one line at a time:

Code: Select all

./configure
sudo make uninstall
But like I mentioned previously, I think it would be best to timeshift back to before all this happened.
Image

Post Reply

Return to “Software & Applications”