[clamav-users] Cannot install Clam AV on Ubuntu 16.04

Scott Kitterman debian at kitterman.com
Thu Mar 26 19:05:04 EDT 2020


For Debian derived distributions like Ubuntu you are best off installing distribution packages using apt.  They are kept reasonably up to date and resolution of security issues in the packages us supported by the Ubuntu Security Team.

There are many Ubuntu and Debian specific resources on how to do this.

You, however, have bigger problems.

sudo: unable to resolve host <hostname>: Connection timed out

This is indicative of either a local misconfiguration or a failed network connection.

Your solution indicates something else has gone wrong since in a standard Ubuntu configuration you shouldn't have to do that.

>0 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.

This indicates a system that hasn't been upgraded in a long time and problem has missing security updates.  I'd fix that first.  It should be as easy as:

sudo apt upgrade

Once you've dealt with that, depending on exactly what you're after, you can install clamav.  To get, for example, clamd, you would do this:

sudo apt install clamav-daemon

That will install and start clamd and everything it needs, including freshclam.

If you really want to build from source, it's also easy to install all the package build dependencies:

sudo apt build-dep clamav

Scott K


On March 26, 2020 10:47:42 PM UTC, "Cheney, James via clamav-users" <clamav-users at lists.clamav.net> wrote:
>Good afternoon,
>
>We have been successfully installing Clam AV on Centos instances in our
>environment.
>
>We ran into a problem when we try to install on Ubuntu. We are using
>these<https://www.clamav.net/documents/installation-on-debian-and-ubuntu-linux-distributions>
>instructions and are able to get developer tools and library
>dependencies installed. When I try to install the unit testing
>dependencies, I get the following error
>
>sudo: unable to resolve host <hostname>: Connection timed out
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>E: Unable to locate package check-devel
>
>When I run ./configure –enable-check or sudo ./configure –enable-check
>after downloading and unzipping the Clam AV files I get this error
>
>ERROR!  Check was configured, but not found.  Get it from
>http://check.sf.net/
>
>Then we run sudo apt-get install check and get this error
>
>sudo: unable to resolve host <hostname>: Connection timed out
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>check is already the newest version (0.10.0-3).
>0 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.
>
>When I run sudo apt-get install check-devel I get this error
>
>sudo: unable to resolve host <hostname>: Connection timed out
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>E: Unable to locate package check-devel
>
>We were able to resolve the “sudo: unable to resolve host <hostname>:
>Connection timed out” error by adding the line 127.0.0.1 <hostname> in
>the /etc/hosts file
>
>Do you have any suggestions for us for troubleshooting?
>
>Thank you,
>
>James Cheney
>
>Solutions Analyst | Core Business Operations
>Deloitte Consulting LLP
>310 E. Rivulon Blvd, Gilbert, AZ
>85297<webextlink://310%20E.%20Rivulon%20Blvd,%20Gilbert,%20AZ%2085297>
>Tel/Direct: +1 480 770 7404
>jacheney at deloitte.com<mailto:jacheney at deloitte.com> |
>www.deloitte.com<http://www.deloitte.com>
>
>[signature_223323029]
><https://www.certmetrics.com/amazon/public/badge.aspx?i=3&t=c&d=2019-06-14&ci=AWS00910691>
>[AWS Certified Solutions Architect - Associate]
><https://secure-web.cisco.com/1aEYdNKjJzPIE8rcMORznNRYxEeao_n5u0ZRm04UqTnY1HxdrlJCRct5Ha5FtGXHIITQgKTZ4M923F-DHvSXlQVhjkKEb_qa3C5Dy9XoMtK5AiGWMxzgxuGuIecJ1yRtXFK70iNpggN6ywFBBFkkFRPsaeLMDPrJWOeVjyEh7Jik6n5CJtoTxTgB1iXuvakxFQfR0GsOE5YC7nfNaHoDXtddFPfKpce80XGhghDKEYfttJhtQQ4YgFk70JbDp6HQenC0Q8yry3iZSorg0Yucm92y0FIgr5DPDRyxjJfIoh3HImcmWzo_GMegFsXBprYwQWbPaKn7NdxV2pZlGrvK9N4-2x5g6beLrJV1CB4xG9GAePszBPRBEBbBqmvW9q-leQLGVhrb8EZTIAvdyVe8Lpo81v6jy2EYxNbvYSOfLxaMuMzcbdW2LyFbPp2pqKEJXBECeT9z8WUMMrrQ2cUk2VDIbl-BeMWeC2591cJbYwJP7jOx0guvAcpOQhtlD1K4mBqb0ThZNnLEZI9Z7geAM9A/https%3A%2F%2Fwww.certmetrics.com%2Famazon%2Fpublic%2Fbadge.aspx%3Ft%3Dc%26d%3D2019-05-24%26i%3D1%26ci%3DAWS00910691>
>[signature_744619222]
><https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2019-07-03&ci=AWS00910691>
>[A close up of a sign  Description automatically generated]
><https://www.youracclaim.com/badges/6cd8d708-2396-4ec2-bf83-8d9074edb64e>
>[A close up of a sign  Description automatically generated]
><https://www.youracclaim.com/badges/6cd8d708-2396-4ec2-bf83-8d9074edb64e>
>
>This message (including any attachments) contains confidential
>information intended for a specific individual and purpose, and is
>protected by law. If you are not the intended recipient, you should
>delete this message and any disclosure, copying, or distribution of
>this message, or the taking of any action based on it, by you is
>strictly prohibited.
>
>Deloitte refers to a Deloitte member firm, one of its related entities,
>or Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm
>is a separate legal entity and a member of DTTL. DTTL does not provide
>services to clients. Please see www.deloitte.com/about to learn more.
>
>v.E.1


More information about the clamav-users mailing list