Bug#614300: apt: "apt-get update" requests to insert DVDs listed in /etc/apt/sources.list
On Sun, Feb 20, 2011 at 10:55:21PM +0100, Hilmar Preusse wrote:
> Package: apt
> Version: 0.8.10.3
> Severity: important
Thanks for your bugreport.
> recently I upgraded my system from Debian lenny to Debian squeeze. Since
> then every "apt-get update" run requests me to insert all 8 DVDs listed in
> sources.list. This is very annoying, it would be nice if this could be fixed
> in a point release.
Could you please try the attached patch? That should fix the problem.
Cheers,
Michael
> Many thanks,
> Hilmar
> -- Package-specific info:
>
> -- apt-config dump --
>
> APT "";
> APT::Architecture "i386";
> APT::Build-Essential "";
> APT::Build-Essential:: "build-essential";
> APT::Install-Recommends "false";
> APT::Install-Suggests "0";
> APT::Acquire "";
> APT::Acquire::Translation "environment";
> APT::NeverAutoRemove "";
> APT::NeverAutoRemove:: "^firmware-linux.*";
> APT::NeverAutoRemove:: "^linux-firmware$";
> APT::NeverAutoRemove:: "^linux-image.*";
> APT::NeverAutoRemove:: "^kfreebsd-image.*";
> APT::NeverAutoRemove:: "^linux-restricted-modules.*";
> APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
> APT::Never-MarkAuto-Sections "";
> APT::Never-MarkAuto-Sections:: "metapackages";
> APT::Never-MarkAuto-Sections:: "restricted/metapackages";
> APT::Never-MarkAuto-Sections:: "universe/metapackages";
> APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
> APT::Never-MarkAuto-Sections:: "oldlibs";
> APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
> APT::Never-MarkAuto-Sections:: "universe/oldlibs";
> APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
> APT::Cache-Limit "25000000";
> APT::Clean-Installed "false";
> APT::Authentication "";
> APT::Authentication::TrustCDROM "true";
> Dir "/";
> Dir::State "var/lib/apt/";
> Dir::State::lists "lists/";
> Dir::State::cdroms "cdroms.list";
> Dir::State::mirrors "mirrors/";
> Dir::State::extended_states "extended_states";
> 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::netrc "auth.conf";
> Dir::Etc::parts "apt.conf.d";
> Dir::Etc::preferences "preferences";
> Dir::Etc::preferencesparts "preferences.d";
> Dir::Etc::trusted "trusted.gpg";
> Dir::Etc::trustedparts "trusted.gpg.d";
> Dir::Bin "";
> Dir::Bin::methods "/usr/lib/apt/methods";
> Dir::Bin::dpkg "/usr/bin/dpkg";
> Dir::Media "";
> Dir::Media::MountPath "/media/apt";
> Dir::Log "var/log/apt";
> Dir::Log::Terminal "term.log";
> Dir::Log::History "history.log";
> Dir::Ignore-Files-Silently "";
> Dir::Ignore-Files-Silently:: "~$";
> Dir::Ignore-Files-Silently:: "\.disabled$";
> Dir::Ignore-Files-Silently:: "\.bak$";
> Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
> DPkg "";
> DPkg::Pre-Install-Pkgs "";
> 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/bin/apt-listchanges "";
> DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
> CommandLine "";
> CommandLine::AsString "apt-config dump";
>
> -- /etc/apt/preferences --
>
> Package: mplayer
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: mplayer-doc
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libavcodec52
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libavformat52
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libpostproc51
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libswscale0
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libdrm-intel1
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libdrm-radeon1
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> Package: libdrm2
> Pin: release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> Pin-Priority: 700
>
> -- /etc/apt/sources.list --
>
> # See sources.list(5) for more information, especialy
> # Remember that you can only use http, ftp or file URIs
> # CDROMs are managed through the apt-cdrom tool.
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-8 20110205-17:27]/ squeeze main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-7 20110205-17:27]/ squeeze contrib main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-6 20110205-17:27]/ squeeze contrib main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-5 20110205-17:27]/ squeeze contrib main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-4 20110205-17:27]/ squeeze contrib main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-3 20110205-17:27]/ squeeze contrib main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-2 20110205-17:27]/ squeeze contrib main
> deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-1 20110205-17:27]/ squeeze contrib main
> #deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-5 20090214-16:54]/ lenny contrib main
> #deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-4 20090214-16:54]/ lenny contrib main
> #deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-3 20090214-16:54]/ lenny contrib main
> #deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-2 20090214-16:54]/ lenny contrib main
> #deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54]/ lenny contrib main
> #deb-src cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official DVD Source-4 20090214-18:18]/ lenny contrib main
> #deb-src cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official DVD Source-3 20090214-18:18]/ lenny contrib main
> #deb-src cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official DVD Source-2 20090214-18:18]/ lenny contrib main
> #deb-src cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official DVD Source-1 20090214-18:18]/ lenny contrib main
> #deb cdrom:[Debian GNU/Linux 5.0.8 Update DVD 20110123: i386 DVD 1]/ lenny contrib main non-free
> #deb-src cdrom:[Debian GNU/Linux 5.0.8 Update DVD 20110123: source DVD 1]/ lenny contrib main non-free
>
> # Debian Mirror
> deb http://ftp.de.debian.org/debian stable contrib non-free
> deb-src http://ftp.de.debian.org/debian stable contrib non-free
> deb http://security.debian.org stable/updates main contrib non-free
> deb-src http://security.debian.org/debian-security stable/updates main contrib non-free
>
> # Debian non-free
> #deb cdrom:[Debian unofficial]/ etch contrib main non-free
>
> # stuff from local repository
> #deb file:///usr/local/src/debian/repository/ lenny main non-free
> #deb-src file:///usr/local/src/debian/repository/ lenny main non-free
>
> # opensteuer on Berlios
> #deb ftp://ftp.berlios.de/pub/opensteuer woody main
> #deb-src ftp://ftp.berlios.de/pub/opensteuer woody main
>
> #deb http://ftp.de.debian.org/debian testing main contrib non-free
> #deb-src http://ftp.de.debian.org/debian testing main contrib non-free
> #deb http://ftp.de.debian.org/debian unstable main contrib non-free
> #deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
>
> # Christian Marillat
> deb http://ftp.uni-kl.de/debian-multimedia/ stable main non-free
> deb-src http://ftp.uni-kl.de/debian-multimedia/ stable main non-free
>
> # Debian volatile
> #deb http://ftp.de.debian.org/debian-volatile stable/volatile main contrib non-free
> #deb-src http://ftp.de.debian.org/debian-volatile stable/volatile main contrib non-free
> #deb http://ftp.de.debian.org/debian-volatile stable-proposed-updates/volatile main contrib non-free
> #deb-src http://ftp.de.debian.org/debian-volatile stable-proposed-updates/volatile main contrib non-free
>
> # Debian Backports
> #deb http://www.backports.org/debian squeeze-backports main contrib non-free
> #deb-src http://www.backports.org/debian squeeze-backports main contrib non-free
> #deb http://backports.debian.org/debian-backports squeeze-backports main contrib
> #deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib
>
> -- System Information:
> Debian Release: 6.0
> APT prefers stable
> APT policy: (500, 'stable')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages apt depends on:
> ii debian-archive-keyring 2010.08.28 GnuPG archive keys of the Debian a
> ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
> ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
> ii libgcc1 1:4.4.5-8 GCC support library
> ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3
> ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
>
> apt recommends no packages.
>
> Versions of packages apt suggests:
> pn apt-doc <none> (no description available)
> ii aptitude 0.6.3-3.2 terminal-based package manager (te
> ii bzip2 1.0.5-6 high-quality block-sorting file co
> ii dpkg-dev 1.15.8.10 Debian package development tools
> pn lzma <none> (no description available)
> ii python-apt 0.7.100.1 Python interface to libapt-pkg
>
> -- no debconf information
>
>
>
> --
> To UNSUBSCRIBE, email to deity-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20110220215521.17008.99281.reportbug@drachi.dresden.de
>
=== modified file 'apt-pkg/acquire-item.cc'
--- apt-pkg/acquire-item.cc 2010-09-09 20:23:31 +0000
+++ apt-pkg/acquire-item.cc 2011-03-11 10:51:08 +0000
@@ -861,8 +861,8 @@
struct stat Buf;
if (stat(Final.c_str(),&Buf) != 0)
- return "\nFail-Ignore: true";
- return "\nFail-Ignore: true\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);
+ return "\nFail-Ignore: true\nIndex-File: true";
+ return "\nFail-Ignore: true\nIndex-File: true\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);
}
/*}}}*/
// AcqIndexTrans::Failed - Silence failure messages for missing files /*{{{*/
Reply to: