[From nobody Fri Dec  4 10:07:05 2026
Received: (at submit) by bugs.debian.org; 10 Oct 2016 16:54:28 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-14.0 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,MDO_CABLE_TV3,
 MURPHY_DRUGS_REL8, PGPSIGNATURE, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_CNKR,
 VERSION
 autolearn=ham autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 66; hammy, 150; neutral, 359; spammy,
 0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha256,
 0.000-+--systemd, 
 0.000-+--H*UA:45.0, 0.000-+--H*u:45.0, 0.000-+--H*c:pgp-signature
Return-path: &lt;tafthorne@googlemail.com&gt;
Received: from mail-yb0-x229.google.com ([2607:f8b0:4002:c09::229])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from &lt;tafthorne@googlemail.com&gt;)
 id 1btdqN-0004wN-HV
 for Submit@bugs.debian.org; Mon, 10 Oct 2016 16:54:28 +0000
Received: by mail-yb0-x229.google.com with SMTP id e2so40357368ybi.1
 for &lt;Submit@bugs.debian.org&gt;; Mon, 10 Oct 2016 09:54:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20120113;
 h=from:reply-to:to:subject:message-id:date:user-agent:mime-version;
 bh=++PbwhctiW4BcoT7c78efXErTzXovr5Aqt1fd8XxpIs=;
 b=lC6gFotDXdMpCeoGIwgCxnT0jVEEOuSbm3GZPqTZKwO8lTzMMgFHJnpXa2qicBJL1U
 jb/ZJu5jrSVkp7ZoFENCIZQEl506wBjigbWxz1K9wGkwC0TlI/pd5bcjhdCjhoNNC3Zg
 OGrxVNVfqO496nGGQJOkAKTZ4pOUzQP55LbRy7x4MLaqcHTPPmgXfvIJeRRGvo2/jgxX
 9lLRHBGFCIwd3Jtu53y5CXKBEDM4S6unSLSz8qvP00aaOHVEho+mfp4gvAz7vs48hmo/
 twbGYHuqsSN8HzFnCLmvljFqRnnP6BfZEEH7aHJrhj3oRJGvKdSXoKgHJ4iO/UHVQJZi
 VQ2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:reply-to:to:subject:message-id:date
 :user-agent:mime-version;
 bh=++PbwhctiW4BcoT7c78efXErTzXovr5Aqt1fd8XxpIs=;
 b=YD6f4UdfRAnWR60h6iK/Yh0WLUL5ShCcc1TJO5uJKl0psk1Y2wGyPdPhu5LexprT8W
 2obutyqnaz+fTZw2EQ4H1SMyHMefYMxI/s2BRhfMPlr1gVYQ/xm3gQlwaKDr+YdDxC4m
 UIqhWbUS8giJySFgyIHCSoDLnHMBXPQqRY3h6mHAzOXO0j/6JNKYUHPpmxpjDQsTdGL3
 pC30r3f9PpdPJnXZoCQJbsmVPRmfg9i4eDH8JBhdKsCXYArXy3QDXI6UsbdsKiYD4j+g
 IPfWGqxL3iF/1dE0UehLQRgqcHxs8Uawi5t5VNOQ6CwpKWQz6QXnuPEWA/Q1/Omm5SF3
 cQzQ==
X-Gm-Message-State: AA6/9RmzKJ3s3h/J6By8XZJt9CuZv737jSKy6NBkyhA2pHtKRCPOGVpiKp3SSAr44sWuWw==
X-Received: by 10.37.224.7 with SMTP id x7mr27536472ybg.11.1476118460652;
 Mon, 10 Oct 2016 09:54:20 -0700 (PDT)
Received: from [172.16.20.67] ([81.128.174.58])
 by smtp.googlemail.com with ESMTPSA id p192sm787274ywe.7.2016.10.10.09.54.18
 for &lt;Submit@bugs.debian.org&gt;
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 10 Oct 2016 09:54:19 -0700 (PDT)
From: T A F Thorne &lt;tafthorne@googlemail.com&gt;
X-Google-Original-From: T A F Thorne &lt;TafThorne@GoogleMail.com&gt;
Reply-To: TafThorne@GoogleMail.com
To: Submit@Bugs.Debian.org
Subject: clamav autoconfiguring a Proxy based on Apt settings
Message-ID: &lt;37e4480e-dae5-7f1c-f7cb-80eacea80a44@GoogleMail.com&gt;
Date: Mon, 10 Oct 2016 17:54:12 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.3.0
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol=&quot;application/pgp-signature&quot;;
 boundary=&quot;aPjs13MqgnB2fSShWC8PI1qgUBRoC9E98&quot;
Delivered-To: submit@bugs.debian.org

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--aPjs13MqgnB2fSShWC8PI1qgUBRoC9E98
Content-Type: multipart/mixed; boundary=&quot;bmAtO2v8aqViPgqomREwclJFqjmhF8D66&quot;
From: T A F Thorne &lt;TafThorne@GoogleMail.com&gt;
Reply-To: TafThorne@GoogleMail.com
To: Submit@Bugs.Debian.org
Message-ID: &lt;37e4480e-dae5-7f1c-f7cb-80eacea80a44@GoogleMail.com&gt;
Subject: clamav autoconfiguring a Proxy based on Apt settings

--bmAtO2v8aqViPgqomREwclJFqjmhF8D66
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Package: clamav

Version: 0.99.2


I have been asked to file this bug report with Debian after some initial
diagnosis in the Ubuntu downstream repository.  See
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1631355 for the
thread as there.

What follows is a transcript of my initial report with the extra
information requested tact onto the end.=20


In my syslog I can see messages such as &quot;Update failed. Your network may
be down or none of the mirrors listed in /etc/clamav/freshclam.conf is
working. Check http://www.clamav.net/doc/mirrors-faq.html for possible
reasons.&quot; and &quot;WARNING: getpatch: Can't download daily-21693.cdiff from
db.local.clamav.net&quot;. The reason for this seems to be that a machine
named warden.pt.local is being used as general purpose http proxy.

If I check in /etc/clamav/freshclam.conf I can see:
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
# Proxy: http://warden.pt.local:3142/
HTTPProxyServer warden.pt.local
HTTPProxyPort 3142

Which does show that warden is being set up as an HTTP Proxy Server. I
did not do this manually though, as the start of said config file
suggests with it's message of:
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam packag=
e

I believe that the automatic configuration of this package is behaving
in the wrong way. It should not be selecting warden as a Proxy.

Warden is set as a proxy for APT on my system. It has Apt-Cacher NG
installed for this purpose. In my /etc area, warden is only mentioned in
the /etc/apt/apt.conf.d/02proxy file and in the automatically generated
/etc/clamav/freshclam.conf file.
$ sudo rgrep warden.pt.local /etc/
/etc/clamav/freshclam.conf:# Proxy: http://warden.pt.local:3142/
/etc/clamav/freshclam.conf:HTTPProxyServer warden.pt.local
/etc/apt/apt.conf.d/02proxy:Acquire::http { Proxy
&quot;http://warden.pt.local:3142&quot;; };

When I check other machines on my network that have a similar setting
for apt, they also express this error messages about clamav in their
syslogs. As far as I can see both 14.04 and 16.04 machines exhibit the
same behaviour.

Syslog sample:
Oct 7 12:34:53 thorne-ul-dt freshclam[25718]: Received signal: wake up
Oct 7 12:34:53 thorne-ul-dt freshclam[25718]: ClamAV update process
started at Fri Oct 7 12:34:53 2016
Oct 7 12:34:53 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:34:53 thorne-ul-dt freshclam[25718]: main.cvd is up to date
(version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Oct 7 12:34:53 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:34:58 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:34:58 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:01 thorne-ul-dt CRON[7552]: (munin) CMD (if [ -x
/usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
Oct 7 12:35:01 thorne-ul-dt CRON[7557]: (root) CMD (if [ -x
/etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update
7200 12 &gt;/dev/null; elif [ -x /etc/munin/plugins/apt ]; then
/etc/munin/plugins/apt update 7200 12 &gt;/dev/null; fi)
Oct 7 12:35:04 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:04 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:06 thorne-ul-dt systemd[1]: Started CUPS Scheduler.
Oct 7 12:35:06 thorne-ul-dt colord[1420]: (colord:1420): Cd-WARNING **:
failed to get session [pid 8204]: No such device or address
Oct 7 12:35:06 thorne-ul-dt colord[1420]: message repeated 3 times: [
(colord:1420): Cd-WARNING **: failed to get session [pid 8204]: No such
device or address]
Oct 7 12:35:09 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:09 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:14 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:14 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:20 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:20 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:20 thorne-ul-dt freshclam[25718]: WARNING: Incremental
update failed, trying to download daily.cvd
Oct 7 12:35:25 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:25 thorne-ul-dt freshclam[25718]: WARNING: Can't download
daily.cvd from db.local.clamav.net
Oct 7 12:35:25 thorne-ul-dt freshclam[25718]: Trying again in 5 secs...
Oct 7 12:35:30 thorne-ul-dt freshclam[25718]: ClamAV update process
started at Fri Oct 7 12:35:30 2016
Oct 7 12:35:30 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:35:30 thorne-ul-dt freshclam[25718]: main.cvd is up to date
(version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Oct 7 12:35:30 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:35:35 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:35 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:41 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:41 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:46 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:46 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:51 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:51 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:56 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:35:56 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:35:57 thorne-ul-dt freshclam[25718]: WARNING: Incremental
update failed, trying to download daily.cvd
Oct 7 12:36:02 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:36:02 thorne-ul-dt freshclam[25718]: WARNING: Can't download
daily.cvd from db.local.clamav.net
Oct 7 12:36:02 thorne-ul-dt freshclam[25718]: Trying again in 5 secs...
Oct 7 12:36:07 thorne-ul-dt freshclam[25718]: ClamAV update process
started at Fri Oct 7 12:36:07 2016
Oct 7 12:36:07 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:37:17 thorne-ul-dt freshclam[25718]: Trying again in 5 secs...
Oct 7 12:37:22 thorne-ul-dt freshclam[25718]: ClamAV update process
started at Fri Oct 7 12:37:22 2016
Oct 7 12:37:22 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:37:22 thorne-ul-dt freshclam[25718]: main.cvd is up to date
(version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Oct 7 12:37:22 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:37:27 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:37:27 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:37:33 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:37:33 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:37:38 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:37:38 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:37:43 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:37:43 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:37:49 thorne-ul-dt freshclam[25718]: ERROR: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:37:49 thorne-ul-dt freshclam[25718]: ERROR: getpatch: Can't
download daily-21693.cdiff from db.local.clamav.net
Oct 7 12:37:49 thorne-ul-dt freshclam[25718]: WARNING: Incremental
update failed, trying to download daily.cvd
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: ERROR: getfile: Unknown
response from db.local.clamav.net
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: ERROR: Can't download
daily.cvd from db.local.clamav.net
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: Giving up on
db.local.clamav.net...
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: ClamAV update process
started at Fri Oct 7 12:37:54 2016
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: main.cvd is up to date
(version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Oct 7 12:37:54 thorne-ul-dt freshclam[25718]: Connecting via warden.pt.lo=
cal
Oct 7 12:37:59 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from database.clamav.net
Oct 7 12:37:59 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from database.clamav.net
Oct 7 12:38:04 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from database.clamav.net
Oct 7 12:38:04 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from database.clamav.net
Oct 7 12:38:10 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from database.clamav.net
Oct 7 12:38:10 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from database.clamav.net
Oct 7 12:38:15 thorne-ul-dt freshclam[25718]: WARNING: getfile: Unknown
response from database.clamav.net
Oct 7 12:38:15 thorne-ul-dt freshclam[25718]: WARNING: getpatch: Can't
download daily-21693.cdiff from database.clamav.net
Oct 7 12:38:20 thorne-ul-dt freshclam[25718]: ERROR: getfile: Unknown
response from database.clamav.net
Oct 7 12:38:20 thorne-ul-dt freshclam[25718]: ERROR: getpatch: Can't
download daily-21693.cdiff from database.clamav.net
Oct 7 12:38:21 thorne-ul-dt freshclam[25718]: WARNING: Incremental
update failed, trying to download daily.cvd
Oct 7 12:38:26 thorne-ul-dt freshclam[25718]: ERROR: getfile: Unknown
response from database.clamav.net
Oct 7 12:38:26 thorne-ul-dt freshclam[25718]: ERROR: Can't download
daily.cvd from database.clamav.net
Oct 7 12:38:26 thorne-ul-dt freshclam[25718]: Giving up on
database.clamav.net...
Oct 7 12:38:26 thorne-ul-dt freshclam[25718]: Update failed. Your
network may be down or none of the mirrors listed in
/etc/clamav/freshclam.conf is working. Check
http://www.clamav.net/doc/mirrors-faq.html for possible reasons.

I am willing to accept that I have mis-configured apt in some way to
cause this. If that is likely, how should I setup an apt only http
cache? I have not noticed any other program attempt to automatically use
apt for all HTTP traffic.

Would this bug be a security vulnerability? If a large number of
machines do not get av definition updates for months or years at a time
I could see how that could compromise a system in some small way. I will
avoid marking it as such for now as I am not sure it really is one.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: clamav 0.99.2+dfsg-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Oct 7 13:16:58 2016
InstallationDate: Installed on 2015-03-12 (574 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS &quot;Trusty Tahr&quot; - Release amd64
(20150218.1)
SourcePackage: clamav
UpgradeStatus: No upgrade log present (probably fresh install)


ChristianEhrhardt (paelzer) requested I check for the $http_proxy and
$HTTPProxyServer environment variables.  My testing showed that these
were not set:
Certainly, here is what I can find on my system:
thomasthorne@thorne-ul-dt:~$ echo $http_proxy

thomasthorne@thorne-ul-dt:~$ echo $HTTPProxyServer

So nothing set for either variable there is seems:
thomasthorne@thorne-ul-dt:~$ env | grep -i http
NVM_NODEJS_ORG_MIRROR=3Dhttp://nodejs.org/dist
That does not look like it would be applicable either.

It was Christian Ehrhardt who suggested that I should submit a bug
report to Debian.=20

--=20
TafT



--bmAtO2v8aqViPgqomREwclJFqjmhF8D66--

--aPjs13MqgnB2fSShWC8PI1qgUBRoC9E98
Content-Type: application/pgp-signature; name=&quot;signature.asc&quot;
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename=&quot;signature.asc&quot;

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJX+8e0AAoJEPXLKKkUazGAH7MH/Rl2y0xMR86MAgOSQjS2e+w8
6948HqC54ZLBQurLTlV63OZZ6VrLUH24Ys/lWg5lQGYqyhzWcYijTDXvwRfW71c4
hbljpzy12KtjGX6CETaKZseHUt8DQNiRMssJLU/Tdy3I1C5N2kYE2N5S6x5yJgyi
ZqEKrC4RwkUilqWlOw38pWdj0wEY1QLtF3SkmNgpjrWK6JYZ8Q20vthQoFxPLeGw
o68bdaDYQ47rn+kOjiECRqRZIUCpbDexTcqchF4IKUIMac/Aw5kwhd1V+3tEyre8
V87e3/LDoB6ZjFYp57a4QFja3TxulU9HaDC8FT7mZLDmngMNggQ9BTe9SztDp3Q=
=St1/
-----END PGP SIGNATURE-----

--aPjs13MqgnB2fSShWC8PI1qgUBRoC9E98--
]