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

Bug#812827: marked as done (apt: Package pinning by origin broken)



Your message dated Wed, 27 Jan 2016 08:35:48 +0100
with message-id <20160127083106.GA593@debian.org>
and subject line Re: Bug#812827: apt: Package pinning by origin broken
has caused the Debian Bug report #812827,
regarding apt: Package pinning by origin broken
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.)


-- 
812827: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812827
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Upgraded from apt version 1.1.10 to 1.2.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

It was just recently working in version 1.1 (if I remember right). Then broke
again in 1.2. Building from git source (HEAD=a133f79) has the same problem. But
reverting commit f6459e64 fixes things. Note the Canidate version below.

   * What was the outcome of this action?

$ apt policy ffmpeg
ffmpeg:
  Installed: 7:2.8.4-1+b1
  Candidate: 10:2.8.5-dmo1
  Version table:
     10:2.8.5-dmo1 990
        990 http://www.deb-multimedia.org testing/main amd64 Packages
     7:2.8.5-1+b1 800
        800 http://ftp.us.debian.org/debian unstable/main amd64 Packages
 *** 7:2.8.4-1+b1 990
        990 http://ftp.us.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status

   * What outcome did you expect instead?

$ apt policy ffmpeg
ffmpeg:
  Installed: 7:2.8.4-1+b1
  Candidate: 7:2.8.4-1+b1
  Version table:
     10:2.8.5-dmo1 600
        990 http://www.deb-multimedia.org testing/main amd64 Packages
     7:2.8.5-1+b1 800
        800 http://ftp.us.debian.org/debian unstable/main amd64 Packages
 *** 7:2.8.4-1+b1 990
        990 http://ftp.us.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status



-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "false";
APT::Install-Suggests "0";
APT::Sandbox "";
APT::Sandbox::User "_apt";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^linux-image-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^linux-headers-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^linux-headers-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^linux-image-extra-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^linux-image-extra-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^linux-signed-image-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^linux-signed-image-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^kfreebsd-image-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^kfreebsd-image-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^kfreebsd-headers-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^kfreebsd-headers-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^gnumach-image-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^gnumach-image-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^.*-modules-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^.*-modules-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^.*-kernel-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^.*-kernel-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-4\.4\.0-00001-g1448f50$";
APT::NeverAutoRemove:: "^linux-tools-4\.3\.3-00001-g4c13c39$";
APT::NeverAutoRemove:: "^linux-tools-4\.4\.0-00001-g1448f50$";
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:: "contrib/metapackages";
APT::Never-MarkAuto-Sections:: "non-free/metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Move-Autobit-Sections "";
APT::Move-Autobit-Sections:: "oldlibs";
APT::Move-Autobit-Sections:: "contrib/oldlibs";
APT::Move-Autobit-Sections:: "non-free/oldlibs";
APT::Move-Autobit-Sections:: "restricted/oldlibs";
APT::Move-Autobit-Sections:: "universe/oldlibs";
APT::Move-Autobit-Sections:: "multiverse/oldlibs";
APT::Update "";
APT::Update::Post-Invoke "";
APT::Update::Post-Invoke:: "[ ! -x /usr/bin/debtags ] || debtags update || true";
APT::Default-Release "testing";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "0";
APT::Compressor::lz4 "";
APT::Compressor::lz4::Name "lz4";
APT::Compressor::lz4::Extension ".lz4";
APT::Compressor::lz4::Binary "false";
APT::Compressor::lz4::Cost "50";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "100";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-6n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "200";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "300";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-6";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "400";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-6";
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::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::lz4 "/usr/bin/lz4";
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::AllowInsecureRepositories "1";
Acquire::AllowDowngradeToInsecureRepositories "0";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::IndexTargets "";
Acquire::IndexTargets::deb "";
Acquire::IndexTargets::deb::Packages "";
Acquire::IndexTargets::deb::Packages::MetaKey "$(COMPONENT)/binary-$(ARCHITECTURE)/Packages";
Acquire::IndexTargets::deb::Packages::flatMetaKey "Packages";
Acquire::IndexTargets::deb::Packages::ShortDescription "Packages";
Acquire::IndexTargets::deb::Packages::Description "$(RELEASE)/$(COMPONENT) $(ARCHITECTURE) Packages";
Acquire::IndexTargets::deb::Packages::flatDescription "$(RELEASE) Packages";
Acquire::IndexTargets::deb::Packages::Optional "0";
Acquire::IndexTargets::deb::Translations "";
Acquire::IndexTargets::deb::Translations::MetaKey "$(COMPONENT)/i18n/Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::flatMetaKey "$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::ShortDescription "Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::Description "$(RELEASE)/$(COMPONENT) Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::flatDescription "$(RELEASE) Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb-src "";
Acquire::IndexTargets::deb-src::Sources "";
Acquire::IndexTargets::deb-src::Sources::MetaKey "$(COMPONENT)/source/Sources";
Acquire::IndexTargets::deb-src::Sources::flatMetaKey "Sources";
Acquire::IndexTargets::deb-src::Sources::ShortDescription "Sources";
Acquire::IndexTargets::deb-src::Sources::Description "$(RELEASE)/$(COMPONENT) Sources";
Acquire::IndexTargets::deb-src::Sources::flatDescription "$(RELEASE) Sources";
Acquire::IndexTargets::deb-src::Sources::Optional "0";
Acquire::Changelogs "";
Acquire::Changelogs::URI "";
Acquire::Changelogs::URI::Origin "";
Acquire::Changelogs::URI::Origin::Debian "http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog";;
Acquire::Changelogs::URI::Origin::Tanglu "http://metadata.tanglu.org/changelogs/@CHANGEPATH@_changelog";;
Acquire::Changelogs::URI::Origin::Ubuntu "http://changelogs.ubuntu.com/changelogs/pool/@CHANGEPATH@/changelog";;
Acquire::Changelogs::URI::Origin::Ultimedia "http://packages.ultimediaos.com/changelogs/pool/@CHANGEPATH@/changelog.txt";;
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
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:: "adequate --help >/dev/null 2>&1 || exit 0; exec adequate --debconf --user nobody --pending";
DPkg::Post-Invoke:: "[ -x /usr/lib/libdvd-pkg/b-i_libdvdcss.sh ] && /usr/lib/libdvd-pkg/b-i_libdvdcss.sh || true";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p $PPID | egrep -c '(remove|purge)') != 1 ]; then /usr/sbin/localepurge; else exit 0; fi";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "adequate --help >/dev/null 2>&1 || exit 0; exec adequate --user nobody --apt-preinst";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::adequate "";
DPkg::Tools::Options::adequate::Version "2";
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";
Adequate "";
Adequate::Enabled "false";
Binary "apt-config";
Binary::apt "";
Binary::apt::APT "";
Binary::apt::APT::Color "1";
Binary::apt::APT::Cache "";
Binary::apt::APT::Cache::Show "";
Binary::apt::APT::Cache::Show::Version "2";
Binary::apt::APT::Cache::AllVersions "0";
Binary::apt::APT::Cache::ShowVirtuals "1";
Binary::apt::APT::Cache::Search "";
Binary::apt::APT::Cache::Search::Version "2";
Binary::apt::APT::Cache::ShowDependencyType "1";
Binary::apt::APT::Cache::ShowVersion "1";
Binary::apt::APT::Get "";
Binary::apt::APT::Get::Upgrade-Allow-New "1";
Binary::apt::APT::Cmd "";
Binary::apt::APT::Cmd::Show-Update-Stats "1";
Binary::apt::APT::Keep-Downloaded-Packages "0";
Binary::apt::DPkg "";
Binary::apt::DPkg::Progress-Fancy "1";
Binary::apt::Acquire "";
Binary::apt::Acquire::AllowInsecureRepositories "0";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- /etc/apt/preferences --

# To show priorities, do 'apt-cache policy'.
#
Package: *
Pin: origin "security.debian.org"
Pin-Priority: 999

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 990

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 800

Package: *
Pin: release l=Google
Origin: dl.google.com
Pin-Priority: 400

Package: *
#Pin: release a=testing,l="Unofficial Multimedia Packages"
Pin: origin "www.deb-multimedia.org"
Pin-Priority: 600

Package: *
Pin: release o=Debian
Pin-Priority: -10

# Locally installed packages
Package: *
Pin: origin ""
Pin-Priority: 1001

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

## VirtualBox
#deb http://download.virtualbox.org/virtualbox/debian/ wheezy contrib non-free

## Cross compilation tools
#deb http://www.emdebian.org/debian/ unstable main

## Main archive.
#deb ftp://ftp.us.debian.org/debian/ testing main non-free contrib
#deb-src ftp://ftp.us.debian.org/debian/ testing main non-free contrib
deb http://ftp.us.debian.org/debian/ testing main non-free contrib
deb-src http://ftp.us.debian.org/debian/ testing main non-free contrib

#deb ftp://ftp.debian.org/debian/ unstable main non-free contrib
#deb http://ftp.us.debian.org/debian/ unstable main non-free contrib
deb http://ftp.us.debian.org/debian/ unstable main non-free contrib
deb-src http://ftp.us.debian.org/debian/ unstable main non-free contrib

#deb http://ftp.us.debian.org/debian/ experimental main non-free contrib
#deb-src http://ftp.us.debian.org/debian/ experimental main non-free contrib

#deb ftp://security.debian.org/debian-security/ testing/updates main non-free contrib
deb http://security.debian.org/ testing/updates main non-free contrib

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-00001-g1448f50 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt depends on:
ii  adduser                 3.113+nmu3
ii  debian-archive-keyring  2014.3
ii  gnupg                   1.4.20-1
ii  gnupg2                  2.0.28-3
ii  gpgv                    1.4.20-1
ii  libapt-pkg5.0           1.2
ii  libc6                   2.21-6
ii  libgcc1                 1:5.3.1-5
ii  libstdc++6              5.3.1-5

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     <none>
ii  aptitude    0.7.5-3
ii  dpkg-dev    1.18.4
pn  python-apt  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
On Tue, Jan 26, 2016 at 06:58:17PM -0500, Ben Kibbey wrote:
> Package: apt
> Version: 1.2
> Severity: normal
> 
> Dear Maintainer,
> 
>    * What led up to the situation?
> 
> Upgraded from apt version 1.1.10 to 1.2.
> 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> 
> It was just recently working in version 1.1 (if I remember right). Then broke
> again in 1.2. Building from git source (HEAD=a133f79) has the same problem. But
> reverting commit f6459e64 fixes things. Note the Canidate version below.

APT 1.2 works correctly, 1.1.10 works in a wrong way.

> 
>    * What was the outcome of this action?
> 
> $ apt policy ffmpeg
> ffmpeg:
>   Installed: 7:2.8.4-1+b1
>   Candidate: 10:2.8.5-dmo1
>   Version table:
>      10:2.8.5-dmo1 990
>         990 http://www.deb-multimedia.org testing/main amd64 Packages

That's correct. You have APT::Default-Release set to testing which overrides
the  pins in your preferences files.

>      7:2.8.5-1+b1 800
>         800 http://ftp.us.debian.org/debian unstable/main amd64 Packages
>  *** 7:2.8.4-1+b1 990
>         990 http://ftp.us.debian.org/debian testing/main amd64 Packages
>         100 /var/lib/dpkg/status
> 
>    * What outcome did you expect instead?
> 
> $ apt policy ffmpeg
> ffmpeg:
>   Installed: 7:2.8.4-1+b1
>   Candidate: 7:2.8.4-1+b1
>   Version table:
>      10:2.8.5-dmo1 600
>         990 http://www.deb-multimedia.org testing/main amd64 Packages

Actually, this is wrong. It's applying a package-specific pin for a *
pattern, although those should be applied to Packages files.


> Package: *
> #Pin: release a=testing,l="Unofficial Multimedia Packages"
> Pin: origin "www.deb-multimedia.org"
> Pin-Priority: 600

That won't do anything, as the APT::Default-Release=testing already
matched that archive.

I suspect that APT 1.1 wrongly parsed this as:

Package: * #Pin: ...

and thus disabled the special casing for *.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.

--- End Message ---

Reply to: