Package: apt-cacher Version: 1.7.13+deb9u1 Severity: minor Tags: patch Dear Maintainer,
* What led up to the situation? Viewing the /report page and copying its suggested apt config. * What exactly did you do (or not do) that was effective (or ineffective)? apt update * What was the outcome of this action? "E: Syntax error /etc/apt/apt.conf.d/80nick:4: Extra junk at end of file" * What outcome did you expect instead? An apt update. Attached is a patch that worked for me, HTH. Thanks -- System Information: Debian Release: 9.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages apt-cacher depends on: ii debconf [debconf-2.0] 1.5.61 ii ed 1.10-2.1 ii libdpkg-perl 1.18.24 ii libfilesys-df-perl 0.92-6+b1 ii libio-interface-perl 1.09-1+b2 ii libipc-shareable-perl 0.61-1 ii libnetaddr-ip-perl 4.079+dfsg-1+b1 ii libsys-syscall-perl 0.25-6 ii libwww-curl-perl 4.17-4 ii libwww-perl 6.15-1 ii lsb-base 9.20161125 ii perl 5.24.1-3+deb9u2 ii ucf 3.0036 ii update-inetd 4.44 Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.55-1+b2 ii libio-compress-lzma-perl 2.069-2 Versions of packages apt-cacher suggests: pn libfreezethaw-perl <none> pn libio-socket-inet6-perl <none> -- Configuration Files: /etc/apt-cacher/apt-cacher.conf changed [not included] -- debconf information: * apt-cacher/mode: daemon -- Nick
--- apt-cacher 2017-04-24 19:38:26.000000000 +0100 +++ apt-cacher.nick 2018-01-30 18:40:16.983772750 +0000 @@ -1148,8 +1148,8 @@ <tr bgcolor="#cccccc"> <td> Usage: -<p>Edit /etc/apt/apt.conf to include the configuration -<blockquote>Acquire::http::proxy=http://$hosturl</blockquote> +<p>Add a configuration fragment under /etc/apt/apt.conf.d/ containing the following: +<blockquote>Acquire::http::proxy "http://$hosturl";</blockquote> Alternatively, edit /etc/apt/sources.list so all your HTTP sources are prepended with the address of your apt-cacher machine and the port, like this: <blockquote>deb http://example.debian.org/debian unstable main contrib non-free</blockquote>