Bug#548714: apt-get/aptitude etc silently ignoring #include?
Package: apt
Version: 0.7.23.1
Severity: normal
I just noticed apt was ignoring my proxy settings. They're included
in a file that had been #included into apt.conf and had been working
relatively recently.
strace -f reveals that it just completely ignores the #include
statement:
12716 stat("/etc/apt/apt.conf", {st_mode=S_IFREG|0644, st_size=422, ...}) = 0
12716 open("/etc/apt/apt.conf", O_RDONLY) = 4
12716 read(4, "#include \"/etc/apt/apt.conf.inc\""..., 8191) = 422
12716 read(4, "", 8191) = 0
12716 close(4) = 0
I note that apt.conf(5) still says that #include is legal syntax.
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::APT "";
APT::APT::Clean-Installed "off";
APT::Cache-Limit "33554432";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/rkhunter ] && ( ! grep -q -E '^DISABLE_TESTS=.*(hashes.*attributes|attributes.*hashes|properties)' /etc/rkhunter.conf || grep -q -E '^ENABLE_TESTS=.*(hashes|attributes|properties)' /etc/rkhunter.conf); then /usr/bin/rkhunter --propupd --nolog; fi";
Acquire "";
Acquire::HTTP "";
Acquire::HTTP::Proxy "";
Acquire::HTTP::Proxy::bugs.debian.org "http://localhost:8080";
Acquire::HTTP::Pipeline-Depth "12345";
-- (no /etc/apt/preferences present) --
-- /etc/apt/sources.list --
#deb http://dict-common.alioth.debian.org testing/
#FIXME: one day, opera may get off their arses... Meanwhile, cron-apt complains every day, so lets shut it up
deb http://deb.opera.com/opera sid non-free
#deb http://deb.samad.com.au/multimedia unstable main
deb http://www.debian-multimedia.org sid main
deb-src http://www.debian-multimedia.org sid main
#deb http://kernel-archive.buildserver.net/debian-kernel trunk main
#deb http://kernel-archive.buildserver.net/debian-kernel sid main
#apt-cacher: 3142
#apt-proxy: 9999
###deb http://scuzzie:9999/debian stable main contrib non-free
###deb http://scuzzie:9999/debian testing main contrib non-free
###deb http://scuzzie:9999/debian unstable main contrib non-free
###deb http://scuzzie:9999/debian project/experimental/main/binary-$(ARCH)/
###deb http://scuzzie:9999/debian/ ../project/experimental main
###deb-src http://scuzzie:9999/debian stable main contrib non-free
###deb-src http://scuzzie:9999/debian testing main contrib non-free
###deb-src http://scuzzie:9999/debian unstable main contrib non-free
###disabled again: #renamed from mirror.internote.on.net to mirror.linux.org.au temporarily for swinburne since throttled to mirror.internode otherwise (20080422)
deb http://mirror.internode.on.net/pub/debian oldstable main contrib non-free
deb http://mirror.internode.on.net/pub/debian stable main contrib non-free
deb http://mirror.internode.on.net/pub/debian testing main contrib non-free
deb http://mirror.internode.on.net/pub/debian unstable main contrib non-free
deb http://mirror.internode.on.net/pub/debian experimental main contrib non-free
#deb http://mirror.internode.on.net/pub/debian project/experimental/main/binary-$(ARCH)/
#deb http://mirror.internode.on.net/pub/debian/ ../project/experimental main
# disabled 20090225:
#deb http://mirror.linux.org.au/debian experimental main non-free
#deb-src http://mirror.internode.on.net/pub/debian stable main contrib non-free
#deb-src http://mirror.internode.on.net/pub/debian testing main contrib non-free
#deb-src http://mirror.internode.on.net/pub/debian unstable main contrib non-free
#deb-src http://mirror.internode.on.net/pub/debian project/experimental/main/binary-$(ARCH)/
deb http://ftp.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian testing main contrib non-free
deb http://ftp.debian.org/debian unstable main contrib non-free
# disabled 20090225:
#deb http://ftp.debian.org/debian project/experimental/main/binary-$(ARCH)/
#deb http://ftp.au.debian.org/pub/debian/ ../project/experimental main
deb-src http://ftp.debian.org/debian stable main contrib non-free
deb-src http://ftp.debian.org/debian testing main contrib non-free
deb-src http://ftp.debian.org/debian unstable main contrib non-free
#deb-src http://ftp.debian.org/debian project/experimental/main/binary-$(ARCH)/
deb http://security.debian.org/ stable/updates main
deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ stable/updates main
#deb http://snapshot.debian.net/archive/2006/05/04/debian unstable main contrib non-free
#deb http://snapshot.debian.net/archive/2006/06/01/debian unstable main contrib non-free
#deb http://ftp.au.debian.org/pub/debian/ stable main non-free contrib
#deb http://ftp.au.debian.org/pub/debian/ testing main non-free contrib
#deb http://ftp.au.debian.org/pub/debian/ unstable main non-free contrib
#deb http://ftp.au.debian.org/debian project/experimental/main/binary-$(ARCH)/
#deb http://ftp.au.debian.org/pub/debian/ ../project/experimental main
#deb http://mirror.aarnet.edu.au/pub/debian/ stable main non-free contrib
#deb http://mirror.aarnet.edu.au/pub/debian/ testing main non-free contrib
#deb http://mirror.aarnet.edu.au/pub/debian/ unstable main non-free contrib
#deb http://mirror.aarnet.edu.au/debian project/experimental/main/binary-$(ARCH)/
#deb http://mirror.aarnet.edu.au/pub/debian/ ../project/experimental main
#deb http://ftp.wa.au.debian.org/debian stable main contrib non-free
#deb http://ftp.wa.au.debian.org/debian testing main contrib non-free
#deb http://ftp.wa.au.debian.org/debian unstable main contrib non-free
#deb http://ftp.wa.au.debian.org/debian project/experimental/main/binary-$(ARCH)/
#deb http://ftp.wa.au.debian.org/debian ../project/experimental main
#deb http://ftp.monash.edu.au/pub/linux/debian/ stable main contrib non-free
#deb http://ftp.monash.edu.au/pub/linux/debian/ testing main contrib non-free
#deb http://ftp.monash.edu.au/pub/linux/debian/ unstable main contrib non-free
#deb http://ftp.monash.edu.au/pub/linux/debian/ ../project/experimental main
#deb-src http://ftp.wa.au.debian.org/debian/ stable main non-free contrib
#deb-src http://ftp.wa.au.debian.org/debian/ testing main non-free contrib
#deb-src http://ftp.wa.au.debian.org/debian/ unstable main non-free contrib
#deb-src http://ftp.wa.au.debian.org/debian/ ../project/experimental main
#deb-src http://mirror.aarnet.edu.au/pub/debian/ stable main non-free contrib
#deb-src http://mirror.aarnet.edu.au/pub/debian/ testing main non-free contrib
#deb-src http://mirror.aarnet.edu.au/pub/debian/ unstable main non-free contrib
#deb-src http://mirror.aarnet.edu.au/pub/debian/ ../project/experimental main
#deb http://tonelli.sns.it/pub/mplayer/sarge/ ./
##deb ftp://ftp.nerim.net/debian-marillat/ stable main
##deb ftp://ftp.nerim.net/debian-marillat/ testing main
##deb ftp://ftp.nerim.net/debian-marillat/ unstable main
#deb http://marillat.free.fr/ stable main
#deb http://marillat.free.fr/ testing main
#deb http://marillat.free.fr/ unstable main
#http://debian.video.free.fr/
#deb http://mirror.aarnet.edu.au/pub/debian-non-US stable/non-US main contrib non-free
#deb http://mirror.aarnet.edu.au/pub/debian-non-US testing/non-US main contrib non-free
#deb http://mirror.aarnet.edu.au/pub/debian-non-US unstable/non-US main contrib non-free
#deb-src http://mirror.aarnet.edu.au/pub/debian-non-US stable/non-US main contrib non-free
#deb-src http://mirror.aarnet.edu.au/pub/debian-non-US testing/non-US main contrib non-free
#deb-src http://mirror.aarnet.edu.au/pub/debian-non-US unstable/non-US main contrib non-free
#deb http://security.debian.org/ testing/updates main
#deb http://ftp.debian.org/ stable main non-free contrib
#deb http://ftp.debian.org/ testing main non-free contrib
#deb http://ftp.debian.org/ unstable main non-free contrib
#deb http://ftp.debian.org/ ../project/experimental main
#temporary
#deb http://kanotix.com/files/debian/ ./
-- System Information:
Debian Release: squeeze/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2009.01.31 GnuPG archive keys of the Debian a
ii libc6 2.9-26 GNU C Library: Shared libraries
ii libgcc1 1:4.4.1-4 GCC support library
ii libstdc++6 4.4.1-4 The GNU Standard C++ Library v3
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none> (no description available)
ii aptitude 0.4.11.11-1+b2 terminal-based package manager
ii bzip2 1.0.5-3 high-quality block-sorting file co
ii dpkg-dev 1.15.4 Debian package development tools
ii lzma 4.43-14 Compression method of 7z format in
ii python-apt 0.7.13.2 Python interface to libapt-pkg
-- no debconf information
Reply to: