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

Bug#317186: marked as done (apt: Pinning of individual packages does not work.)



Your message dated Tue, 19 Apr 2011 10:27:35 +0200
with message-id <20110419102548.GA4204@debian.org>
and subject line Re: Bug#317186: apt: Pinning of individual packages does not work.
has caused the Debian Bug report #317186,
regarding apt: Pinning of individual packages does not work.
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.)


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

Hi,

apt doesn't respect the pin priority specified in
/etc/apt/preferences. With the attached file, I get

| # apt-cache policy aptitude
| aptitude:
|   Installed: 0.2.15.9-3
|   Candidate: 0.2.15.9-3
|   Package pin: 0.2.15.9-3
|   Version table:
|  *** 0.2.15.9-3 700
|         550 http://ftp.de.debian.org unstable/main Packages
|         100 /var/lib/dpkg/status
|      0.2.15.9-2 700
|         600 http://ftp.de.debian.org sarge/main Packages
|         550 http://ftp.de.debian.org testing/main Packages

I would expect the priority of the unstable version to be 700, as specified in /etc/apt/preferences.

If replace the package name with a wildcard, things work like they should. So with "Package: *" instead of "Package: aptitude", I get

| # apt-cache policy aptitude
| aptitude:
|   Installed: 0.2.15.9-3
|   Candidate: 0.2.15.9-3
|   Version table:
|  *** 0.2.15.9-3 0
|         700 http://ftp.de.debian.org unstable/main Packages
|         100 /var/lib/dpkg/status
|      0.2.15.9-2 0
|         600 http://ftp.de.debian.org sarge/main Packages
|         550 http://ftp.de.debian.org testing/main Packages

What is going on here? Am I doing something wrong?


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Default-Release "sarge";
APT::Cache-Limit "8388608";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
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::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
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";
Acquire "";
Acquire::http "";
Acquire::http::Timeout "2";

-- /etc/apt/preferences --

Package: aptitude
Pin: release o=Debian,a=unstable
Pin-Priority: 700

Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 600

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

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

deb	http://ftp.de.debian.org/debian sarge main
#deb	http://ftp2.de.debian.org/debian sarge main
deb-src http://ftp.de.debian.org/debian sarge main
#deb-src http://ftp2.de.debian.org/debian sarge main
deb     http://security.debian.org/ sarge/updates main
deb-src http://security.debian.org/ sarge/updates main
 
# testing
deb     http://ftp.de.debian.org/debian testing main
#deb     http://ftp2.de.debian.org/debian unstable main
deb-src http://ftp.de.debian.org/debian testing main
#deb-src http://ftp2.de.debian.org/debian unstable main
 
# unstable
deb     http://ftp.de.debian.org/debian unstable main
#deb     http://ftp2.de.debian.org/debian unstable main
deb-src http://ftp.de.debian.org/debian unstable main
#deb-src http://ftp2.de.debian.org/debian unstable main

## experimental
#deb     http://ftp.de.debian.org/debian experimental main
##deb     http://ftp2.de.debian.org/debian experimental main
#deb-src http://ftp.de.debian.org/debian experimental main
##deb-src http://ftp2.de.debian.org/debian experimental main


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (550, 'unstable'), (550, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0.0-12   GCC support library
ii  libstdc++5                  1:3.3.5-13   The GNU Standard C++ Library v3

-- no debconf information

-- 
Philipp Weis    pweis@pweis.com    http://pweis.com/


--- End Message ---
--- Begin Message ---
On Wed, Jul 06, 2005 at 11:02:06PM +0200, Philipp Weis wrote:
> Package: apt
> Version: 0.6.38
> Severity: normal
> 
> Hi,
> 
> apt doesn't respect the pin priority specified in
> /etc/apt/preferences. With the attached file, I get
> 
> | # apt-cache policy aptitude
> | aptitude:
> |   Installed: 0.2.15.9-3
> |   Candidate: 0.2.15.9-3
> |   Package pin: 0.2.15.9-3
> |   Version table:
> |  *** 0.2.15.9-3 700
> |         550 http://ftp.de.debian.org unstable/main Packages
> |         100 /var/lib/dpkg/status
> |      0.2.15.9-2 700
> |         600 http://ftp.de.debian.org sarge/main Packages
> |         550 http://ftp.de.debian.org testing/main Packages
> 
> I would expect the priority of the unstable version to be 700, as specified in /etc/apt/preferences.

As you just proved yourself, the priority of the unstable version is 700, as
indicated by the Package pin and the 700 at the right side of the version.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

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

Attachment: pgpuwuJ6aOreV.pgp
Description: PGP signature


--- End Message ---

Reply to: