[I resend the mail to the bug tracker. I was in a hurry and failed to reply properly in my previous mail. Sorry!]
Hi Mark > This works for me with both 1.7.6 and 1.7.8 using both aptitude > changelog <package> and apt-get changelog <package> so I can't > immediately reproduce it here. I have the impression that this may be triggered by different server behavior. Sometimes the requests are answered directly, sometimes they are redirected (and end up with header lines in the output of apt-get changelog). Unfortunately I have no time to dig deeper into this at the moment, maybe at the weekend. > Could you post the rest of your config? In particular what is the > setting of installer_files_regexp? The default contains a portion which > matches changelog. You can get the config by running by pointing any > browser to http://<server-hostname>:<port> Yes, I've seen it (now) in installer_files_regexp. But it does not match in the case when the changelog file is delivered as packagename_changelog and not as packagename/changelog. My configuration is attached below (original and with my change). Also 2 examples of apt-cache changelog which to me look like different server behavior. Uwe
Apt-cacher version 1.7.6: Daemon mode Usage: Edit /etc/apt/apt.conf to include the configuration Acquire::http::proxy=http://c1:3142 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: deb http://example.debian.org/debian unstable main contrib non-free becomes deb http://c1:3142/example.debian.org/debian unstable main contrib non-free Configuration: /etc/apt-cacher/apt-cacher.conf Directive Value admin_email root@localhost allowed_hosts 172.18.1.0/24 allowed_ssl_locations allowed_ssl_ports 443 cache_dir /var/cache/apt-cacher clean_cache 1 concurrent_import_limit 2 curl_idle_timeout 120 curl_throttle 10 daemon_addr 172.18.1.1 daemon_port 3142 data_timeout 120 debug 0 denied_hosts distinct_namespaces 0 expire_hours 0 fork 1 generate_reports 1 group www-data http_proxy http-proxy:8080 http_proxy_auth libcurl_socket /var/cache/apt-cacher/libcurl.socket limit 0 limit_global 0 log_dir /var/log/apt-cacher ftp.debian.org mirror.switch.ch/ftp/mirror ftp.ch.debian.org ftp.debian.org; security.debian.org mirror.switch.ch/ftp/mirror/ debian-security ftp.ch.debian.org path_map security.debian.org; backports.debian.org mirror.switch.ch/ftp/mirror ftp.ch.debian.org backports.debian.org; volatile.debian.org mirror.switch.ch/ftp/mirror ftp.ch.debian.org volatile.debian.org pidfile /var/run/apt-cacher.pid request_empty_lines 5 request_timeout 30 retry 3 return_buffer_size 1048576 reverse_path_map 1 dapper, edgy, feisty, gutsy, hardy, intrepid, ubuntu_release_names jaunty, karmic, lucid, maverick, natty, oneiric, precise, quantal use_proxy 1 use_proxy_auth 0 user www-data checksum_files_regexp (?^:^(?:Packages(?:\.gz|\.bz2)?|Sources(?:\.gz| \.bz2)?|(?:In)?Release|Index(?:\.bz2)?)$) (?^:^(?:Index(?:\.bz2)?|Packages(?:\.gz|\.bz2)?| Release(?:\.gpg)?|InRelease|Sources(?:\.gz|\.bz2)?| index_files_regexp Contents-(?:[a-z]+-)?[a-zA-Z0-9]+\.gz|(?:srclist| pkglist)\.[a-z-]+\.bz2|release(?:\.gz|\.bz2)?| Translation-[a-z]{2,3}(?:_[A-Z]{2})?(?:\.gz|\.bz2| \.xz)?)$) (?^:^(?:vmlinuz|linux|initrd\.gz|changelog| NEWS.Debian|(?:dapper|edgy|feisty|gutsy|hardy| installer_files_regexp intrepid|jaunty|karmic|lucid|maverick|natty|oneiric| precise|quantal)\.tar\.gz(?:\.gpg)?|(?:Devel|EOL)? ReleaseAnnouncement(?:\.html)?|meta-release(?:-lts)? (?:-(?:development|proposed))?)$) (?^:(?:^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_ package_files_regexp [-a-z0-9]+\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz|\.bz2| \.xz)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo| \.template)$) pdiff_files_regexp (?^:^2\d{3}-\d{2}-\d{2}-\d{4}\.\d{2}\.gz$) skip_checksum_files_regexp (?^:^(?:(?:In)?Release|Release\.gpg)$) soap_url_regexp (?^:^(?:http://)?bugs\.debian\.org(?::80)?/cgi-bin/ soap.cgi$) License Apt-cacher is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Apt-cacher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. A copy of the GNU General Public License is available as /usr/share/ common-licenses/GPL in the Debian GNU/Linux distribution or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also obtain it by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Apt-cacher version 1.7.6: Daemon mode Usage: Edit /etc/apt/apt.conf to include the configuration Acquire::http::proxy=http://c1:3142 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: deb http://example.debian.org/debian unstable main contrib non-free becomes deb http://c1:3142/example.debian.org/debian unstable main contrib non-free Configuration: /etc/apt-cacher/apt-cacher.conf Directive Value admin_email root@localhost allowed_hosts 172.18.1.0/24 allowed_ssl_locations allowed_ssl_ports 443 cache_dir /var/cache/apt-cacher clean_cache 1 concurrent_import_limit 2 curl_idle_timeout 120 curl_throttle 10 daemon_addr 172.18.1.1 daemon_port 3142 data_timeout 120 debug 0 denied_hosts distinct_namespaces 0 expire_hours 0 fork 1 generate_reports 1 group www-data http_proxy http-proxy:8080 http_proxy_auth libcurl_socket /var/cache/apt-cacher/libcurl.socket limit 0 limit_global 0 log_dir /var/log/apt-cacher ftp.debian.org mirror.switch.ch/ftp/mirror ftp.ch.debian.org ftp.debian.org; security.debian.org mirror.switch.ch/ftp/mirror/ debian-security ftp.ch.debian.org path_map security.debian.org; backports.debian.org mirror.switch.ch/ftp/mirror ftp.ch.debian.org backports.debian.org; volatile.debian.org mirror.switch.ch/ftp/mirror ftp.ch.debian.org volatile.debian.org pidfile /var/run/apt-cacher.pid request_empty_lines 5 request_timeout 30 retry 3 return_buffer_size 1048576 reverse_path_map 1 dapper, edgy, feisty, gutsy, hardy, intrepid, ubuntu_release_names jaunty, karmic, lucid, maverick, natty, oneiric, precise, quantal use_proxy 1 use_proxy_auth 0 user www-data checksum_files_regexp (?^:^(?:Packages(?:\.gz|\.bz2)?|Sources(?:\.gz| \.bz2)?|(?:In)?Release|Index(?:\.bz2)?)$) (?^:^(?:Index(?:\.bz2)?|Packages(?:\.gz|\.bz2)?| Release(?:\.gpg)?|InRelease|Sources(?:\.gz|\.bz2)?| index_files_regexp Contents-(?:[a-z]+-)?[a-zA-Z0-9]+\.gz|(?:srclist| pkglist)\.[a-z-]+\.bz2|release(?:\.gz|\.bz2)?| Translation-[a-z]{2,3}(?:_[A-Z]{2})?(?:\.gz|\.bz2| \.xz)?)$) (?^:^(?:vmlinuz|linux|initrd\.gz|changelog| NEWS.Debian|(?:dapper|edgy|feisty|gutsy|hardy| installer_files_regexp intrepid|jaunty|karmic|lucid|maverick|natty|oneiric| precise|quantal)\.tar\.gz(?:\.gpg)?|(?:Devel|EOL)? ReleaseAnnouncement(?:\.html)?|meta-release(?:-lts)? (?:-(?:development|proposed))?)$) (?^:(?:^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_ package_files_regexp [-a-z0-9]+\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz|\.bz2| \.xz)|\.diff\.gz|_changelog)|\.rpm|index\.db-.+\.gz| \.jigdo|\.template)$) pdiff_files_regexp (?^:^2\d{3}-\d{2}-\d{2}-\d{4}\.\d{2}\.gz$) skip_checksum_files_regexp (?^:^(?:(?:In)?Release|Release\.gpg)$) soap_url_regexp (?^:^(?:http://)?bugs\.debian\.org(?::80)?/cgi-bin/ soap.cgi$) License Apt-cacher is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Apt-cacher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. A copy of the GNU General Public License is available as /usr/share/ common-licenses/GPL in the Debian GNU/Linux distribution or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also obtain it by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Get:1 Changelog for ed (http://packages.debian.org/changelogs/pool/main/e/ed/ed_1.10-2/changelog) [13.7 kB] HTTP/1.1 302 Found Date: Thu, 06 Mar 2014 17:37:23 GMT Server: Apache Location: http://ftp-master.metadata.debian.org/changelogs/main/e/ed/ed_1.10-2_changelog Vary: Accept-Encoding Connection: close Content-Type: text/html; charset=iso-8859-1 HTTP/1.0 301 Moved Permanently Location: http://metadata.ftp-master.debian.org/changelogs/main/e/ed/ed_1.10-2_changelog Content-Type: text/html; charset=iso-8859-1 Content-Length: 366 Accept-Ranges: bytes Date: Thu, 06 Mar 2014 17:37:24 GMT Via: 1.1 varnish Age: 0 X-Served-By: cache-fra1222-FRA X-Cache: MISS X-Cache-Hits: 0 X-Timer: S1394127444.246626377,VS0,VE39 Vary: Accept-Encoding X-Cache: MISS from c1.local.lan X-Cache-Lookup: MISS from c1.local.lan:8080 Connection: keep-alive Proxy-Connection: keep-alive HTTP/1.0 200 OK Last-Modified: Wed, 26 Feb 2014 03:12:14 GMT ETag: "460d78-305d-4f34692437f80" Content-Type: text/plain; charset=utf-8 Content-Length: 12381 Accept-Ranges: bytes Date: Wed, 05 Mar 2014 21:52:23 GMT Via: 1.1 varnish X-Served-By: cache-fra1235-FRA X-Cache: MISS X-Cache-Hits: 0 X-Timer: S1394056343.002041817,VS0,VE49 Age: 71101 X-Cache: HIT from c1.local.lan X-Cache-Lookup: HIT from c1.local.lan:8080 Connection: keep-alive Proxy-Connection: keep-alive tion: keep-alive ed (1.10-2) unstable; urgency=medium * enable DEB_BUILD_MAINT_OPTIONS = hardening=+all -- Martin Zobel-Helas <zo...@debian.org> Tue, 25 Feb 2014 21:58:25 +0100 ed (1.10-1) unstable; urgency=medium * New upstream version 1.10 * New Standards-Version 3.9.5 -- Martin Zobel-Helas <zo...@debian.org> Tue, 25 Feb 2014 10:46:53 +0100 ed (1.9-2) unstable; urgency=low * move ed and red back to /bin/ as FHS requires ed to exist in /bin (Closes: #714494, #714536) -- Martin Zobel-Helas <zo...@debian.org> Tue, 16 Jul 2013 17:46:00 +0200 ed (1.9-1) unstable; urgency=low * New upstream version 1.9 -- Martin Zobel-Helas <zo...@debian.org> Thu, 27 Jun 2013 20:37:40 +0200 ed (1.9~rc1-2) unstable; urgency=low * Since version 1.5 red is a 'ed --restricted' call, with a script for red. And we should ship that one. Thanks to Antonio Diaz Diaz for spotting this issue. -- Martin Zobel-Helas <zo...@debian.org> Mon, 03 Jun 2013 01:15:36 +0200 ed (1.9~rc1-1) unstable; urgency=low * New upstream version 1.9 RC1 This might fix our build failures, thus: (Closes: #640341, #680801) * Bump Standards-Version, no changes needed. -- Martin Zobel-Helas <zo...@debian.org> Sat, 01 Jun 2013 11:57:05 +0200 ed (1.8-1) unstable; urgency=low * New upstream version 1.7 * New upstream version 1.8 * Add multiarch metadata (Closes: #693824, #683045) -- Martin Zobel-Helas <zo...@debian.org> Sun, 05 May 2013 12:44:15 +0200 ed (1.6-2) unstable; urgency=low [..]
Get:1 Changelog for bash (http://packages.debian.org/changelogs/pool/main/b/bash/bash_4.2+dfsg-1/changelog) [93.8 kB] bash (4.2+dfsg-1) unstable; urgency=low * Apply upstream patches 038 - 045, fixes for - If a backslash-newline (which is removed) with no other input is given as input to `read', the shell tries to dereference a null pointer and segfaults. - Under certain circumstances, bash attempts to expand variables in arithmetic expressions even when evaluation is being suppressed. - Output redirection applied to builtin commands missed I/O errors if they happened when the file descriptor was closed, rather than on write (e.g., like with an out-of-space error on a remote NFS file system). - Process substitution incorrectly inherited a flag that inhibited using the (local) temporary environment for variable lookups if it was providing the filename to a redirection. The intent the flag is to enforce the Posix command expansion ordering rules. - Compilation failed after specifying the `--enable-minimal-config' option to configure (more specifically, specifying `--disable-alias'). - When SIGCHLD is trapped, and a SIGCHLD trap handler runs when a pending `read -t' invocation times out and generates SIGALRM, bash can crash with a segmentation fault. - When converting a multibyte string to a wide character string as part of pattern matching, bash does not handle the end of the string correctly, causing the search for the NUL to go beyond the end of the string and reference random memory. Depending on the contents of that memory, bash can produce errors or crash. - The <&n- and >&n- redirections, which move one file descriptor to another, leave the file descriptor closed when applied to builtins or compound commands. * Fix parallel build (Steven Chamberlain). Closes: #694659. * Fix german translations. Closes: #688571. * Fix typo in man page. Closes: #696706. -- Matthias Klose <d...@debian.org> Sat, 30 Mar 2013 14:56:51 +0100 bash (4.2+dfsg-0.1) unstable; urgency=low * Non-maintainer upload. * Remove unused and non DFSG-compliant bash-4.2/lib/readline/doc from source. (Closes: #695709) -- David Prévot <taf...@debian.org> Sat, 29 Dec 2012 21:19:34 -0400 bash (4.2-5.1) unstable; urgency=low * Non-maintainer upload. * debian/bash.preinst-lib.c: typo in fcntl argument (Closes: #679198). -- Nicolas Boulenguez <nico...@debian.org> Tue, 11 Dec 2012 22:02:44 +0100 bash (4.2-5) unstable; urgency=low * Apply upstream patch 037, fix for - Attempting to redo (using `.') the vi editing mode `cc', `dd', or `yy' commands leads to an infinite loop. -- Matthias Klose <d...@debian.org> Fri, 03 Aug 2012 01:21:14 +0200 bash (4.2-4) unstable; urgency=high * Apply upstream patches 030 - 036, fixes for - When attempting to glob strings in a multibyte locale, and those strings contain invalid multibyte characters that cause mbsnrtowcs to return 0, the globbing code loops infinitely. - A change between bash-4.1 and bash-4.2 to prevent the readline input hook from being called too frequently had the side effect of causing delays when reading pasted input on systems such as Mac OS X. This patch fixes those delays while retaining the bash-4.2 behavior. - Bash-4.2 has problems with DEL characters in the expanded value of variables used in the same quoted string as variables that expand to nothing. - Bash uses a static buffer when expanding the /dev/fd prefix for the test and conditional commands, among other uses, when it should use a dynamic buffer to avoid buffer overflow. - In bash-4.2, the history code would inappropriately add a semicolon to multi-line compound array assignments when adding them to the history. - When given a number of lines to read, `mapfile -n lines' reads one too many. - Bash-4.2 produces incorrect word splitting results when expanding double-quoted $@ in the same string as and adjacent to other variable expansions. The $@ should be split, the other expansions should not. -- Matthias Klose <d...@debian.org> Thu, 12 Jul 2012 23:58:51 +0200 bash (4.2-3) unstable; urgency=low * Apply upstream patches 025 - 029, fixes for - When used in a shell function, `declare -g -a array=(compound assignment)' creates a local variable instead of a global one. - The `lastpipe' option does not behave correctly on machines where the open file limit is less than 256. - When the `extglob' shell option is enabled, pattern substitution does not work correctly in the presence of multibyte characters. - When using a word expansion for which the right hand side is evaluated, certain expansions of quoted null strings include spurious ^? characters. - Bash-4.2 tries to leave completed directory names as the user typed them, without expanding them to a full pathname. One effect of this is that shell variables used in pathnames being completed (e.g., $HOME) are left unchanged, but the `$' is quoted by readline because it is a special character to the shell. This patch introduces two things: [..]