[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673760: apt: Some apt-get update failures result in apt ignoring apt_preferences



Package: apt
Version: 0.9.3
Severity: normal

Dear Maintainer,

I expect this applies to network problem other than unreachable proxy
(easily simulated by editing /etc/hosts). After a successful apt-get
update:

    root@porty:/home/michael# cat /etc/apt/preferences.d/notunstable
    Package: *
    Pin: release a=unstable
    Pin-Priority: 470

    root@porty:/home/michael# apt-cache policy
    Package files:
     100 /var/lib/dpkg/status
         release a=now
     500 http://ppa.launchpad.net/jeremy-visser/python-iview/ubuntu/ natty/main i386 Packages
         release v=11.04,o=LP-PPA-jeremy-visser-python-iview,a=natty,n=natty,l=Python-iView,c=main
         origin ppa.launchpad.net
     500 http://ppa.launchpad.net/bartbes/love-unstable/ubuntu/ natty/main i386 Packages
         release v=11.04,o=LP-PPA-bartbes-love-unstable,a=natty,n=natty,l=love-unstable,c=main
         origin ppa.launchpad.net
     500 http://dl.google.com/linux/talkplugin/deb/ stable/main i386 Packages
         release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
         origin dl.google.com
     500 http://dl.google.com/linux/earth/deb/ stable/main i386 Packages
         release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
         origin dl.google.com
     500 http://ftp.iinet.net.au/debian/debian/ unstable/non-free Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ unstable/contrib Translation-en
     470 http://ftp.iinet.net.au/debian/debian/ unstable/contrib i386 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=contrib
         origin ftp.iinet.net.au
     470 http://ftp.iinet.net.au/debian/debian/ unstable/non-free i386 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=non-free
         origin ftp.iinet.net.au
     470 http://ftp.iinet.net.au/debian/debian/ unstable/main i386 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=main
         origin ftp.iinet.net.au
     500 http://mirror.waia.asn.au/debian/ unstable/non-free Translation-en
     500 http://mirror.waia.asn.au/debian/ unstable/main Translation-en
     500 http://mirror.waia.asn.au/debian/ unstable/contrib Translation-en
     470 http://mirror.waia.asn.au/debian/ unstable/contrib i386 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=contrib
         origin mirror.waia.asn.au
     470 http://mirror.waia.asn.au/debian/ unstable/non-free i386 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=non-free
         origin mirror.waia.asn.au
     470 http://mirror.waia.asn.au/debian/ unstable/main i386 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=main
         origin mirror.waia.asn.au
     500 http://security.debian.org/ wheezy/updates/non-free i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=non-free
         origin security.debian.org
     500 http://security.debian.org/ wheezy/updates/contrib i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=contrib
         origin security.debian.org
     500 http://security.debian.org/ wheezy/updates/main i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=main
         origin security.debian.org
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/non-free Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/contrib Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/contrib i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian,c=contrib
         origin ftp.iinet.net.au
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/non-free i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian,c=non-free
         origin ftp.iinet.net.au
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/main i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian,c=main
         origin ftp.iinet.net.au
     500 http://mirror.waia.asn.au/debian/ wheezy/non-free Translation-en
     500 http://mirror.waia.asn.au/debian/ wheezy/main Translation-en
     500 http://mirror.waia.asn.au/debian/ wheezy/contrib Translation-en
     500 http://mirror.waia.asn.au/debian/ wheezy/contrib i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian,c=contrib
         origin mirror.waia.asn.au
     500 http://mirror.waia.asn.au/debian/ wheezy/non-free i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian,c=non-free
         origin mirror.waia.asn.au
     500 http://mirror.waia.asn.au/debian/ wheezy/main i386 Packages
         release o=Debian,a=testing,n=wheezy,l=Debian,c=main
         origin mirror.waia.asn.au
    Pinned packages:

    root@porty:/home/michael# apt-cache policy cheese
    cheese:
      Installed: 3.4.0-2
      Candidate: 3.4.1-1+b1
      Version table:
         3.4.2-1 0
            470 http://mirror.waia.asn.au/debian/ unstable/main i386 Packages
            470 http://ftp.iinet.net.au/debian/debian/ unstable/main i386 Packages
         3.4.1-1+b1 0
            500 http://mirror.waia.asn.au/debian/ wheezy/main i386 Packages
            500 http://ftp.iinet.net.au/debian/debian/ wheezy/main i386 Packages
     *** 3.4.0-2 0
            100 /var/lib/dpkg/status

    root@porty:/home/michael#

After an unsuccessful apt-get update (eg. because of network trouble):

    root@porty:/home/michael# apt-get update
    Err http://dl.google.com stable InRelease

    Err http://dl.google.com stable InRelease

    Err http://dl.google.com stable Release.gpg
      Could not resolve 'yipyip'
    Err http://dl.google.com stable Release.gpg
      Could not resolve 'yipyip'
    Err http://ppa.launchpad.net natty InRelease

    Err http://ppa.launchpad.net natty InRelease

    Err http://ppa.launchpad.net natty Release.gpg
      Could not resolve 'yipyip'
    Err http://ppa.launchpad.net natty Release.gpg
      Could not resolve 'yipyip'
    Err http://security.debian.org wheezy/updates InRelease

    Err http://ftp.iinet.net.au wheezy InRelease

    Err http://ftp.iinet.net.au unstable InRelease

    Err http://security.debian.org wheezy/updates Release.gpg
      Could not resolve 'yipyip'
    Err http://ftp.iinet.net.au wheezy Release.gpg
      Could not resolve 'yipyip'
    Err http://ftp.iinet.net.au unstable Release.gpg
      Could not resolve 'yipyip'
    Err http://mirror.waia.asn.au wheezy InRelease

    Err http://mirror.waia.asn.au unstable InRelease

    Err http://mirror.waia.asn.au wheezy Release.gpg
      Could not resolve 'yipyip'
    Err http://mirror.waia.asn.au unstable Release.gpg
      Could not resolve 'yipyip'
    Reading package lists... Done
    W: Failed to fetch http://mirror.waia.asn.au/debian/dists/wheezy/InRelease

    W: Failed to fetch http://ftp.iinet.net.au/debian/debian/dists/wheezy/InRelease

    W: Failed to fetch http://security.debian.org/dists/wheezy/updates/InRelease

    W: Failed to fetch http://mirror.waia.asn.au/debian/dists/unstable/InRelease

    W: Failed to fetch http://ftp.iinet.net.au/debian/debian/dists/unstable/InRelease

    W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/InRelease

    W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/InRelease

    W: Failed to fetch http://ppa.launchpad.net/bartbes/love-unstable/ubuntu/dists/natty/InRelease

    W: Failed to fetch http://ppa.launchpad.net/jeremy-visser/python-iview/ubuntu/dists/natty/InRelease

    W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://ppa.launchpad.net/bartbes/love-unstable/ubuntu/dists/natty/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://ppa.launchpad.net/jeremy-visser/python-iview/ubuntu/dists/natty/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://security.debian.org/dists/wheezy/updates/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://ftp.iinet.net.au/debian/debian/dists/wheezy/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://ftp.iinet.net.au/debian/debian/dists/unstable/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://mirror.waia.asn.au/debian/dists/wheezy/Release.gpg  Could not resolve 'yipyip'

    W: Failed to fetch http://mirror.waia.asn.au/debian/dists/unstable/Release.gpg  Could not resolve 'yipyip'

    W: Some index files failed to download. They have been ignored, or old ones used instead.

    root@porty:/home/michael# apt-cache policy
    Package files:
     100 /var/lib/dpkg/status
         release a=now
     500 http://ppa.launchpad.net/jeremy-visser/python-iview/ubuntu/ natty/main i386 Packages
         release v=11.04,o=LP-PPA-jeremy-visser-python-iview,a=natty,n=natty,l=Python-iView,c=main
         origin ppa.launchpad.net
     500 http://ppa.launchpad.net/bartbes/love-unstable/ubuntu/ natty/main i386 Packages
         release v=11.04,o=LP-PPA-bartbes-love-unstable,a=natty,n=natty,l=love-unstable,c=main
         origin ppa.launchpad.net
     500 http://dl.google.com/linux/talkplugin/deb/ stable/main i386 Packages
         release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
         origin dl.google.com
     500 http://dl.google.com/linux/earth/deb/ stable/main i386 Packages
         release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
         origin dl.google.com
     500 http://ftp.iinet.net.au/debian/debian/ unstable/non-free Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ unstable/contrib Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ unstable/contrib i386 Packages
         origin ftp.iinet.net.au
     500 http://ftp.iinet.net.au/debian/debian/ unstable/non-free i386 Packages
         origin ftp.iinet.net.au
     500 http://ftp.iinet.net.au/debian/debian/ unstable/main i386 Packages
         origin ftp.iinet.net.au
     500 http://mirror.waia.asn.au/debian/ unstable/non-free Translation-en
     500 http://mirror.waia.asn.au/debian/ unstable/main Translation-en
     500 http://mirror.waia.asn.au/debian/ unstable/contrib Translation-en
     500 http://mirror.waia.asn.au/debian/ unstable/contrib i386 Packages
         origin mirror.waia.asn.au
     500 http://mirror.waia.asn.au/debian/ unstable/non-free i386 Packages
         origin mirror.waia.asn.au
     500 http://mirror.waia.asn.au/debian/ unstable/main i386 Packages
         origin mirror.waia.asn.au
     500 http://security.debian.org/ wheezy/updates/non-free i386 Packages
         origin security.debian.org
     500 http://security.debian.org/ wheezy/updates/contrib i386 Packages
         origin security.debian.org
     500 http://security.debian.org/ wheezy/updates/main i386 Packages
         origin security.debian.org
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/non-free Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/contrib Translation-en
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/contrib i386 Packages
         origin ftp.iinet.net.au
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/non-free i386 Packages
         origin ftp.iinet.net.au
     500 http://ftp.iinet.net.au/debian/debian/ wheezy/main i386 Packages
         origin ftp.iinet.net.au
     500 http://mirror.waia.asn.au/debian/ wheezy/non-free Translation-en
     500 http://mirror.waia.asn.au/debian/ wheezy/main Translation-en
     500 http://mirror.waia.asn.au/debian/ wheezy/contrib Translation-en
     500 http://mirror.waia.asn.au/debian/ wheezy/contrib i386 Packages
         origin mirror.waia.asn.au
     500 http://mirror.waia.asn.au/debian/ wheezy/non-free i386 Packages
         origin mirror.waia.asn.au
     500 http://mirror.waia.asn.au/debian/ wheezy/main i386 Packages
         origin mirror.waia.asn.au
    Pinned packages:

    root@porty:/home/michael# apt-cache policy cheese
    cheese:
      Installed: 3.4.0-2
      Candidate: 3.4.2-1
      Version table:
         3.4.2-1 0
            500 http://mirror.waia.asn.au/debian/ unstable/main i386 Packages
            500 http://ftp.iinet.net.au/debian/debian/ unstable/main i386 Packages
         3.4.1-1+b1 0
            500 http://mirror.waia.asn.au/debian/ wheezy/main i386 Packages
            500 http://ftp.iinet.net.au/debian/debian/ wheezy/main i386 Packages
     *** 3.4.0-2 0
            100 /var/lib/dpkg/status

    root@porty:/home/michael#

If the network is fixed in between update and upgrade, then it's possible to
accidentally (and undesirably) upgrade a bunch of packages to their unstable
versions.

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
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::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
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::Get "";
APT::Get::Purge "true";
APT::Periodic "";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Update-Package-Lists "1";
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";
APT::Compressor::::Name "";
APT::Compressor::::Extension ".";
APT::Compressor::::Binary "";
APT::Compressor::::Cost "100";
APT::Compressor::::CompressArg "";
APT::Compressor::::CompressArg:: "-9";
APT::Compressor::::UncompressArg "";
APT::Compressor::::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::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$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::http "";
Acquire::http::Proxy "http://yipyip:3142/";;
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
Unattended-Upgrade "";
Unattended-Upgrade::Origins-Pattern "";
Unattended-Upgrade::Origins-Pattern:: "origin=Debian,archive=stable,label=Debian-Security";
Unattended-Upgrade::Origins-Pattern:: "o=Debian,n=wheezy";
Unattended-Upgrade::Origins-Pattern:: "o=Debian,n=wheezy-updates";
Unattended-Upgrade::Origins-Pattern:: "o=Debian,n=wheezy-proposed-updates";
Unattended-Upgrade::Origins-Pattern:: "o=Debian,n=wheezy,l=Debian-Security";
Unattended-Upgrade::Mail "root@localhost";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p $PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit 0; fi";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

##deb http://mirrors.uwa.edu.au/debian squeeze main contrib non-free
#deb http://mirror.waia.asn.au/debian/ squeeze main non-free contrib
##deb-src http://mirror.waia.asn.au/debian/ squeeze main non-free contrib
#deb http://ftp.iinet.net.au/debian/debian squeeze main non-free contrib
##deb-src http://ftp.iinet.net.au/debian/debian squeeze main non-free contrib
#
#deb http://security.debian.org/ squeeze/updates main contrib non-free
##deb-src http://security.debian.org/ squeeze/updates main contrib non-free

#deb http://mirrors.uwa.edu.au/debian wheezy main contrib non-free
deb http://mirror.waia.asn.au/debian/ wheezy main non-free contrib
#deb-src http://mirror.waia.asn.au/debian/ wheezy main non-free contrib
deb http://ftp.iinet.net.au/debian/debian wheezy main non-free contrib
#deb-src http://ftp.iinet.net.au/debian/debian wheezy main non-free contrib

deb http://security.debian.org/ wheezy/updates main contrib non-free
#deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://mirror.waia.asn.au/debian/ unstable main non-free contrib
deb http://ftp.iinet.net.au/debian/debian unstable main non-free contrib

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (470, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (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/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28
ii  gnupg                   1.4.12-4
ii  libapt-pkg4.12          0.9.3
ii  libc6                   2.13-32
ii  libgcc1                 1:4.7.0-7
ii  libstdc++6              4.7.0-7

apt recommends no packages.

Versions of packages apt suggests:
ii  apt-doc     <none>
ii  aptitude    0.6.7-1
ii  dpkg-dev    1.16.3
ii  python-apt  0.8.4
ii  xz-utils    5.1.1alpha+20110809-3

-- no debconf information



Reply to: