{"id":107,"date":"2012-04-26T11:31:02","date_gmt":"2012-04-25T22:31:02","guid":{"rendered":"http:\/\/www.templesoft.co.nz\/blog\/?p=107"},"modified":"2026-04-08T08:19:28","modified_gmt":"2026-04-07T20:19:28","slug":"updating-the-package-version-of-clamav-on-ubuntu","status":"publish","type":"post","link":"https:\/\/templesoft.co.nz\/journal\/?p=107","title":{"rendered":"Updating the package version of ClamAV on Ubuntu."},"content":{"rendered":"<h2>The freshest clams<\/h2>\n<p style=\"text-align: justify;\">Anti-virus programs are great&#8230; provided you keep them up to date! Sometimes keeping them up to date can be tricky if they are prepackaged from a repository &#8211; you have to wait until someone packages the updated version. This isn&#8217;t ideal, as I discovered one day after checking my ClamAV <strong>freshclam.log<\/strong><\/p>\n<p style=\"text-align: justify;\">I noticed that on reboot I would get the familiar message at startup that the ClamAV engine was out of date, but I thought to myself: &#8220;No problem, won&#8217;t be long before a new version is uploaded to the repository, and in the mean time, at least I&#8217;m getting the latest definitions.&#8221; &#8211; WRONG!<\/p>\n<p style=\"text-align: justify;\">A quick check of my <strong>freshclam.log<\/strong> (the log file written to each time ClamAv updates itself) revealed this:<\/p>\n<pre style=\"text-align: justify;\">sudo tail -f \/var\/log\/clamav\/freshclam.log\r\n\r\n<span style=\"color: #0000ff;\">-&gt; ClamAV update process started at Sun Feb 12 06:44:40 2012<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: Your ClamAV installation is <strong>OUTDATED<\/strong>!<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: Local version: 0.96.5 Recommended version: 0.97.3<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; DON'T PANIC! Read http:\/\/www.clamav.net\/support\/faq<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; main.cld is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: getpatch: Can't download daily-14129.cdiff from db.local.clamav.net<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: getpatch: Can't download daily-14129.cdiff from db.local.clamav.net<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: getpatch: Can't download daily-14129.cdiff from db.local.clamav.net<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: getpatch: Can't download daily-14129.cdiff from db.local.clamav.net<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: getpatch: Can't download daily-14129.cdiff from db.local.clamav.net<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: Incremental update failed, trying to download daily.cvd<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; WARNING: Can't download daily.cvd from db.local.clamav.net<\/span>\r\n<span style=\"color: #0000ff;\">-&gt; Trying again in 5 secs...<\/span><\/pre>\n<h2 style=\"text-align: justify;\">The work-around<\/h2>\n<p style=\"text-align: justify;\">There is a way to get the latest versions via the <a href=\"https:\/\/launchpad.net\/~ubuntu-clamav\/+archive\/ppa\" target=\"_blank\"><strong>PPA for Clamav Update Team<\/strong><\/a> &#8211; By adding their repository we can get a newer version of ClamAV for Ubuntu.<\/p>\n<blockquote>\n<p style=\"text-align: justify;\"><span style=\"color: #ff6600;\"><strong>WARNING<\/strong>!<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff6600;\">This &#8220;untrusted&#8221; PPA uses unsupported packages &#8211; Use at your own risk!! (sure, but try finding the updates any place else for Ubuntu&#8230;)<\/span><\/p>\n<\/blockquote>\n<p style=\"text-align: justify;\">First of all, visit the ClamAV website to <a href=\"http:\/\/www.clamav.net\/lang\/en\/download\/sources\/\" target=\"_blank\">determine the latest version<\/a> of the ClamAV engine.<\/p>\n<p style=\"text-align: justify;\">Next visit the <a href=\"https:\/\/launchpad.net\/~ubuntu-clamav\/+archive\/ppa\" target=\"_blank\">PPA for Clamav Update Team<\/a> and check the section titled &#8220;<a href=\"https:\/\/launchpad.net\/~ubuntu-clamav\/+archive\/ppa\/#packages\" target=\"_blank\">Overview of Published Packages<\/a>&#8220;, and filter by your version of Ubuntu.<\/p>\n<p style=\"text-align: justify;\">Check the section of the PPA titled &#8220;<a href=\"https:\/\/launchpad.net\/~ubuntu-clamav\/+archive\/ppa\/#ppa-install\" target=\"_blank\">Adding this PPA to your system<\/a>&#8220;, and expand the section &#8220;<em>Technical details about this PPA<\/em>&#8221; &#8211; it&#8217;s important to note the value detailed under &#8220;<strong>Fingerprint<\/strong>&#8220;<\/p>\n<p style=\"text-align: justify;\">To start installing and using software from a Personal Package Archive (<strong>PPA<\/strong>), you first need to tell Ubuntu where to find it. Add the repository to your apt sources file&#8230;<\/p>\n<pre style=\"text-align: justify;\">sudo vi \/etc\/apt\/sources.list\r\n\r\n<span style=\"color: #339966;\">deb http:\/\/ppa.launchpad.net\/ubuntu-clamav\/ppa\/ubuntu <em><strong>ubuntu_version<\/strong><\/em> main<\/span>\r\n<span style=\"color: #339966;\">deb-src http:\/\/ppa.launchpad.net\/ubuntu-clamav\/ppa\/ubuntu <em><strong>ubuntu_version<\/strong><\/em> main<\/span><\/pre>\n<p style=\"text-align: justify;\">Where <em><strong>ubuntu_version<\/strong><\/em> would be lucid, maverick, natty, oneiric, etc&#8230;<\/p>\n<p style=\"text-align: justify;\">This repository is signed by the PPA&#8217;s public key, which you can install so that you don&#8217;t get asked for confirmation all the time.<\/p>\n<pre style=\"text-align: justify;\">sudo apt-key advanced --keyserver <strong>keyserver.ubuntu.com<\/strong> --recv-keys <strong>F80220D0E695A455E651AC4D8AB767895ADC2037<\/strong><\/pre>\n<p style=\"text-align: justify;\">Note: That command is all on one line&#8230;<\/p>\n<p style=\"text-align: justify;\">Now update the repository listings and install the updates.<\/p>\n<pre style=\"text-align: justify;\">sudo aptitude update\r\nsudo aptitude safe-upgrade<\/pre>\n<p style=\"text-align: justify;\">If you&#8217;re worried you might pick up some &#8220;unproven&#8221; source next time you&#8217;re doing your updates, simply comment out the two lines above after you&#8217;ve got the newer version of ClamAV&#8230; Yay!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The freshest clams Anti-virus programs are great&#8230; provided you keep them up to date! Sometimes keeping them up to date can be tricky if they are prepackaged from a repository &#8211; you have to wait until someone packages the updated version. This isn&#8217;t ideal, as I discovered one day after checking my ClamAV freshclam.log I&#8230;  <a class=\"excerpt-read-more\" href=\"https:\/\/templesoft.co.nz\/journal\/?p=107\" title=\"Read Updating the package version of ClamAV on Ubuntu.\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[104,28,101,103,102,76],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-technical-resource","tag-apt","tag-clamav","tag-freshclam-log","tag-ppa","tag-repository","tag-sources-list"],"_links":{"self":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":5,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}