Your message dated Wed, 28 Oct 2015 19:04:50 +0100 with message-id <20151028180449.GA29001@crossbow> and subject line Re: Bug#803217: apt-get update while network is down throws away all the old data has caused the Debian Bug report #803217, regarding apt-get update while network is down throws away all the old data to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 803217: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803217 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt-get update while network is down throws away all the old data
- From: Stefan Monnier <monnier@IRO.UMontreal.CA>
- Date: Tue, 27 Oct 2015 20:37:38 -0400
- Message-id: <[🔎] 144599265889.15305.7856873860158387440.reportbug@alfajor.home>
Package: apt Version: 1.0.10.2 Severity: normal Dear Maintainer, If I run "apt-get update" (or "aptitude update") when the network is down (or the proxy is unavailable), APT forgets everything instead of keeping using the old data. E.g. if I "Disconnect" the netowrk and run the following command: (export LANG=C; aptitude show emacs; apt-get update; aptitude show emacs) I get something like: Package: emacs New: yes State: not installed Version: 46.1 Priority: optional Section: editors Maintainer: Rob Browning <rlb@defaultvalue.org> Architecture: all Uncompressed Size: 25.6 k Depends: emacs24 | emacs24-lucid | emacs24-nox Description: GNU Emacs editor (metapackage) GNU Emacs is the extensible self-documenting text editor. This is a metapackage that will always depend on the latest recommended Emacs release. Tags: devel::editor, role::dummy, role::metapackage, suite::emacs, suite::gnu, use::editing Ign http://ftp.ca.debian.org stable InRelease [...] Err http://security.debian.org stable/updates Release.gpg Something wicked happened resolving 'server:8123' (-5 - No address associated with hostname) [...] Err http://ftp.ca.debian.org unstable/contrib i386 Packages Something wicked happened resolving 'server:8123' (-5 - No address associated with hostname) W: Failed to fetch http://ftp.ca.debian.org/debian/dists/stable/Release.gpg Something wicked happened resolving 'server:8123' (-5 - No address associated with hostname) [...] W: Failed to fetch http://ftp.ca.debian.org/debian/dists/unstable/contrib/binary-i386/Packages Something wicked happened resolving 'server:8123' (-5 - No address associated with hostname) E: Some index files failed to download. They have been ignored, or old ones used instead. E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources Notice how the first "aptitude show" happily described the "emacs" package before the update and couldn't do it any more after the update. Instead I get some bogus complaint about "testing" being an invalid setting for APT::Default- Release. -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "i386"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Install-Recommends "1"; APT::Install-Suggests "0"; APT::NeverAutoRemove ""; APT::NeverAutoRemove:: "^firmware-linux.*"; APT::NeverAutoRemove:: "^linux-firmware$"; APT::NeverAutoRemove:: "^linux-image-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^linux-headers-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^linux-image-extra-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^linux-signed-image-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-image-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-headers-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^gnumach-image-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^.*-modules-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^.*-kernel-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.16\.0-4-amd64$"; APT::NeverAutoRemove:: "^linux-tools-3\.16\.0-4-amd64$"; APT::VersionedKernelPackages ""; APT::VersionedKernelPackages:: "linux-image"; APT::VersionedKernelPackages:: "linux-headers"; APT::VersionedKernelPackages:: "linux-image-extra"; APT::VersionedKernelPackages:: "linux-signed-image"; APT::VersionedKernelPackages:: "kfreebsd-image"; APT::VersionedKernelPackages:: "kfreebsd-headers"; APT::VersionedKernelPackages:: "gnumach-image"; APT::VersionedKernelPackages:: ".*-modules"; APT::VersionedKernelPackages:: ".*-kernel"; APT::VersionedKernelPackages:: "linux-backports-modules-.*"; APT::VersionedKernelPackages:: "linux-tools"; 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::Periodic ""; APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::AutocleanInterval "7"; APT::Update ""; APT::Update::Post-Invoke-Success ""; APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true"; APT::Update::Post-Invoke-Success:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null"; APT::Default-Release "testing"; APT::Cache-Limit "40000000"; APT::Architectures ""; APT::Architectures:: "i386"; APT::Compressor ""; APT::Compressor::. ""; APT::Compressor::.::Name "."; APT::Compressor::.::Extension ""; APT::Compressor::.::Binary ""; APT::Compressor::.::Cost "1"; APT::Compressor::gzip ""; APT::Compressor::gzip::Name "gzip"; APT::Compressor::gzip::Extension ".gz"; APT::Compressor::gzip::Binary "gzip"; APT::Compressor::gzip::Cost "2"; APT::Compressor::gzip::CompressArg ""; APT::Compressor::gzip::CompressArg:: "-9n"; APT::Compressor::gzip::UncompressArg ""; APT::Compressor::gzip::UncompressArg:: "-d"; APT::Compressor::bzip2 ""; APT::Compressor::bzip2::Name "bzip2"; APT::Compressor::bzip2::Extension ".bz2"; APT::Compressor::bzip2::Binary "bzip2"; APT::Compressor::bzip2::Cost "3"; APT::Compressor::bzip2::CompressArg ""; APT::Compressor::bzip2::CompressArg:: "-9"; APT::Compressor::bzip2::UncompressArg ""; APT::Compressor::bzip2::UncompressArg:: "-d"; APT::Compressor::xz ""; APT::Compressor::xz::Name "xz"; APT::Compressor::xz::Extension ".xz"; APT::Compressor::xz::Binary "xz"; APT::Compressor::xz::Cost "4"; APT::Compressor::xz::CompressArg ""; APT::Compressor::xz::CompressArg:: "-6"; APT::Compressor::xz::UncompressArg ""; APT::Compressor::xz::UncompressArg:: "-d"; APT::Compressor::lzma ""; APT::Compressor::lzma::Name "lzma"; APT::Compressor::lzma::Extension ".lzma"; APT::Compressor::lzma::Binary "xz"; APT::Compressor::lzma::Cost "5"; APT::Compressor::lzma::CompressArg ""; APT::Compressor::lzma::CompressArg:: "--format=lzma"; APT::Compressor::lzma::CompressArg:: "-9"; APT::Compressor::lzma::UncompressArg ""; APT::Compressor::lzma::UncompressArg:: "--format=lzma"; APT::Compressor::lzma::UncompressArg:: "-d"; 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::solvers ""; Dir::Bin::solvers:: "/usr/lib/apt/solvers"; Dir::Bin::dpkg "/usr/bin/dpkg"; Dir::Bin::bzip2 "/bin/bzip2"; Dir::Bin::xz "/usr/bin/xz"; Dir::Bin::lzma "/usr/bin/xz"; 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]+$"; Dir::Ignore-Files-Silently:: "\.save$"; Dir::Ignore-Files-Silently:: "\.orig$"; Dir::Ignore-Files-Silently:: "\.distUpgrade$"; Acquire ""; Acquire::cdrom ""; Acquire::cdrom::mount "/media/cdrom/"; Acquire::http ""; Acquire::http::Proxy "http://server:8123"; Acquire::http::No-Store "false"; Acquire::Languages ""; Acquire::Languages:: "en"; Acquire::Languages:: "none"; Acquire::Languages:: "fr"; DPkg ""; DPkg::Pre-Invoke ""; DPkg::Pre-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper pre-install; fi"; DPkg::Post-Invoke ""; DPkg::Post-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper post-install; fi"; DPkg::Post-Invoke:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null"; DPkg::Pre-Install-Pkgs ""; DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true"; RPM ""; RPM::Pre-Invoke ""; RPM::Pre-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper pre-install; fi"; RPM::Post-Invoke ""; RPM::Post-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper post-install; fi"; Unattended-Upgrade ""; Unattended-Upgrade::Origins-Pattern ""; Unattended-Upgrade::Origins-Pattern:: "origin=Debian,archive=stable,label=Debian-Security"; Aptitude ""; Aptitude::Recommends-Important "false"; Aptitude::CmdLine ""; Aptitude::CmdLine::Show-Deps "true"; CommandLine ""; CommandLine::AsString "apt-config dump"; -- /etc/apt/preferences -- Package: * Pin: release a=testing Pin-Priority: 900 Package: * Pin: release a=unstable Pin-Priority: 10 Package: * Pin: release a=stable Pin-Priority: 100 -- /etc/apt/sources.list -- #deb file:///cdrom/ sarge main # security stuff deb http://security.debian.org/ stable/updates main contrib non-free #deb http://security.debian.org/ testing/updates main contrib non-free #deb http://security.debian.org/ unstable/updates main contrib non-free #deb http://gulus.usherbrooke.ca/debian/ stable main non-free contrib #deb http://gulus.usherbrooke.ca/debian/ testing main non-free contrib #deb http://gulus.usherbrooke.ca/debian/ unstable main non-free contrib #deb http://gulus.usherbrooke.ca/debian/ experimental main non-free contrib #deb-src http://gulus.usherbrooke.ca/debian/ stable main non-free contrib #deb-src http://gulus.usherbrooke.ca/debian/ testing main non-free contrib #deb-src http://gulus.usherbrooke.ca/debian/ unstable main non-free contrib #deb-src http://gulus.usherbrooke.ca/debian/ experimental main non-free contrib #deb http://ftp.rediris.es/debian/ stable main non-free contrib #deb http://ftp.rediris.es/debian/ testing main non-free contrib #deb http://ftp.rediris.es/debian/ unstable main non-free contrib #deb http://ftp.rediris.es/debian/ experimental main non-free contrib #deb http://debian.yorku.ca/debian/ stable main non-free contrib #deb http://debian.yorku.ca/debian/ testing main non-free contrib #deb http://debian.yorku.ca/debian/ stable main contrib #deb http://debian.yorku.ca/debian/ testing main contrib non-free #deb http://debian.yorku.ca/debian/ unstable main non-free contrib #deb http://debian.yorku.ca/debian/ experimental main non-free contrib #deb-src http://debian.yorku.ca/debian/ stable main non-free contrib #deb-src http://debian.yorku.ca/debian/ testing main non-free contrib #deb-src http://debian.yorku.ca/debian/ unstable main non-free contrib deb http://ftp.ca.debian.org/debian/ stable main non-free contrib deb http://ftp.ca.debian.org/debian/ testing main non-free contrib deb http://ftp.ca.debian.org/debian/ unstable main non-free contrib #deb http://ftp.ca.debian.org/debian/ experimental main non-free contrib # the non-US stuff #deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free #deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free #deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free #deb-src http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free #deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free #deb-src http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free # For FAAD and other packages #deb http://pkg-gnome.alioth.debian.org/debian unstable main #deb http://www.debian-multimedia.org/ testing main # Various thingies for when we track stable #deb http://backports.debian.org/debian-backports squeeze-backports main -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (100, 'stable'), (10, 'unstable') Architecture: i386 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages apt depends on: ii debian-archive-keyring 2014.3 ii gnupg 1.4.19-5 ii libapt-pkg4.16 1.0.10.2 ii libc6 2.19-22 ii libgcc1 1:5.2.1-22 ii libstdc++6 5.2.1-22 apt recommends no packages. Versions of packages apt suggests: pn apt-doc <none> ii aptitude 0.7.2-1 ii dpkg-dev 1.18.3 ii python-apt 1.0.1 ii synaptic 0.82 -- no debconf information
--- End Message ---
--- Begin Message ---
- To: Stefan Monnier <monnier@IRO.UMontreal.CA>, 803217-done@bugs.debian.org
- Subject: Re: Bug#803217: apt-get update while network is down throws away all the old data
- From: David Kalnischkies <david@kalnischkies.de>
- Date: Wed, 28 Oct 2015 19:04:50 +0100
- Message-id: <20151028180449.GA29001@crossbow>
- In-reply-to: <[🔎] 144599265889.15305.7856873860158387440.reportbug@alfajor.home>
- References: <[🔎] 144599265889.15305.7856873860158387440.reportbug@alfajor.home>
Version: 1.1~exp13 On Tue, Oct 27, 2015 at 08:37:38PM -0400, Stefan Monnier wrote: > If I run "apt-get update" (or "aptitude update") when the network is down (or > the proxy is unavailable), APT forgets everything instead of keeping using the > old data. Fixing this was an involved process happening over multiple months resulting in a rewrite of the acquire system. If you feel like it you can watch the DebConf15 talk "This APT has Super Cow Powers" where I showed off some of the new features and explained some bits which are otherwise likely to be missed as it just works. Otherwise, you can also try to play with it yourself, its in experimental still for unrelated reasons, but will be out of there 'shortly'. With that aptitude and co will be fixed, too, automatically (they just have to be rebuilt, which is one reason this takes some time, as we need a slot for this to happen). It depends a bit on the exact problem when it was fixed, but it its between ~exp1 and ~exp13 – I pick the latest just because. So closing as done. Best regards David KalnischkiesAttachment: signature.asc
Description: PGP signature
--- End Message ---