Your message dated Thu, 28 Aug 2014 16:27:58 +0200 with message-id <20140828142758.GC10129@crossbow> and subject line Re: Bug#759194: apt: wrong version selection with "-t stable" has caused the Debian Bug report #759194, regarding apt: wrong version selection with "-t stable" 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.) -- 759194: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759194 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt: wrong version selection with "-t stable"
- From: "Ph. Marek" <philipp.marek@linbit.com>
- Date: Mon, 25 Aug 2014 08:54:01 +0200
- Message-id: <[🔎] 20140825065359.GA7395@cacao.linbit>
Package: apt Version: 1.1~exp2 Severity: minor With apt 1.0.6 and 1.1~ I see some strange package selection behaviour. It started with this: $ LC_ALL=C apt-get dist-upgrade -s | grep upgraded, 233 upgraded, 21 newly installed, 1 to remove and 3 not upgraded. But if I choose the "older" release $ LC_ALL=C apt-get dist-upgrade -s -t stable | grep upgraded, 974 upgraded, 34 newly installed, 4 to remove and 3 not upgraded. Some more testing finally showed this: $ LC_ALL=C apt-cache policy grub-common grub-common: Installed: 2.00-22 Candidate: 2.00-22 Version table: 2.02~beta2-11 0 500 http://http.debian.net/debian/ unstable/main amd64 Packages *** 2.00-22 0 990 http://http.debian.net/debian/ testing/main amd64 Packages 100 /var/lib/dpkg/status 1.99-27+deb7u2 0 500 http://http.debian.net/debian/ stable/main amd64 Packages but $ LC_ALL=C apt-cache policy grub-common -t stable grub-common: Installed: 2.00-22 Candidate: 2.02~beta2-11 ... So it looks as if the wrong target release gets chosen with "-t stable"; maybe because "stable" is a substring of "unstable"? Perhaps this is the same bug as the (unanswered) #746412: apt: option -t does not always work -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "amd64"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Install-Recommends "true"; APT::Install-Suggests "0"; APT::Authentication ""; APT::Authentication::TrustCDROM "true"; APT::NeverAutoRemove ""; APT::NeverAutoRemove:: "^firmware-linux.*"; APT::NeverAutoRemove:: "^linux-firmware$"; APT::NeverAutoRemove:: "^linux-image-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^linux-image-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^linux-headers-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^linux-headers-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^linux-image-extra-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^linux-image-extra-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^linux-signed-image-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^linux-signed-image-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-image-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-image-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-headers-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-headers-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^gnumach-image-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^gnumach-image-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^.*-modules-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^.*-modules-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^.*-kernel-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^.*-kernel-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^linux-tools-3\.14-1-amd64$"; APT::NeverAutoRemove:: "^linux-tools-3\.14-2-amd64$"; APT::NeverAutoRemove:: "^postgresql-"; 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::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0"; APT::Update ""; APT::Update::Post-Invoke ""; APT::Update::Post-Invoke:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true"; APT::Update::Post-Invoke:: "[ ! -x /usr/bin/debtags ] || debtags update --local || true"; 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::Archives ""; APT::Archives::MaxAge "30"; APT::Archives::MinAge "2"; APT::Archives::MaxSize "500"; APT::Default-Release "testing"; APT::Architectures ""; APT::Architectures:: "amd64"; 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::Languages ""; Acquire::Languages:: "en"; Acquire::Languages:: "none"; Acquire::Languages:: "de"; 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"; DPkg::Post-Invoke ""; 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::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "; Unattended-Upgrade ""; Unattended-Upgrade::Origins-Pattern ""; Unattended-Upgrade::Origins-Pattern:: "origin=Debian,archive=${distro_codename},label=Debian-Security"; CommandLine ""; CommandLine::AsString "apt-config dump"; -- (no /etc/apt/preferences present) -- -- /etc/apt/sources.list -- deb http://http.debian.net/debian/ stable main non-free contrib deb http://http.debian.net/debian/ testing main non-free contrib deb http://http.debian.net/debian/ unstable main non-free contrib deb http://http.debian.net/debian/ experimental main contrib -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt depends on: ii debian-archive-keyring 2012.4 ii gnupg 1.4.18-2 ii libapt-pkg4.13 1.1~exp2 ii libc6 2.19-7 ii libgcc1 1:4.9.1-4 ii libstdc++6 4.9.1-4 apt recommends no packages. Versions of packages apt suggests: pn apt-doc <none> ii aptitude 0.6.11-1 ii dpkg-dev 1.17.10 ii python-apt 0.9.3.8 -- no debconf information -- : Ing. Philipp Marek : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com : DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
--- End Message ---
--- Begin Message ---
- To: "Ph. Marek" <philipp.marek@linbit.com>, 759194-done@bugs.debian.org
- Subject: Re: Bug#759194: apt: wrong version selection with "-t stable"
- From: David Kalnischkies <david@kalnischkies.de>
- Date: Thu, 28 Aug 2014 16:27:58 +0200
- Message-id: <20140828142758.GC10129@crossbow>
- In-reply-to: <[🔎] 20140825065359.GA7395@cacao.linbit>
- References: <[🔎] 20140825065359.GA7395@cacao.linbit>
Hi Philipp, On Mon, Aug 25, 2014 at 08:54:01AM +0200, Ph. Marek wrote: > With apt 1.0.6 and 1.1~ I see some strange package selection behaviour. > > It started with this: > $ LC_ALL=C apt-get dist-upgrade -s | grep upgraded, > 233 upgraded, 21 newly installed, 1 to remove and 3 not upgraded. > > But if I choose the "older" release > $ LC_ALL=C apt-get dist-upgrade -s -t stable | grep upgraded, > 974 upgraded, 34 newly installed, 4 to remove and 3 not upgraded. This is actually correct behaviour as I will explain further below, so I am closing this bugreport with this message. Birds-eye-view reason: APT doesn't do downgrades (at least not if you don't force it really hard) and (implicit) apt_preferences can be complicated. > Some more testing finally showed this: > $ LC_ALL=C apt-cache policy grub-common > grub-common: > Installed: 2.00-22 > Candidate: 2.00-22 > Version table: > 2.02~beta2-11 0 > 500 http://http.debian.net/debian/ unstable/main amd64 Packages > *** 2.00-22 0 > 990 http://http.debian.net/debian/ testing/main amd64 Packages > 100 /var/lib/dpkg/status > 1.99-27+deb7u2 0 > 500 http://http.debian.net/debian/ stable/main amd64 Packages > > but > $ LC_ALL=C apt-cache policy grub-common -t stable > grub-common: > Installed: 2.00-22 > Candidate: 2.02~beta2-11 > ... You actually snipped an important part, but I hope I will manage without still. First things first: You have apt configured to have as default release "testing", which is why in the first policy output the testing source has a priority of 990, which is higher than the 500 of unstable, so testing is the candidate. Now, by switching the default release to stable, testing looses its special perk and gets the default value of 500 as well and the stable source gets 990. APT Looking for the candidate will pick unstable now as it is the higher version among the equally pinned sources unstable and testing. stable isn't considered as the version is below the currently installed version (and the pin isn't above 1000). Please see 'man apt_preferences' and especially the section "APT's Default Priority Assignments" for further details. Best regards David KalnischkiesAttachment: signature.asc
Description: Digital signature
--- End Message ---