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

Bug#175121: marked as done (apt-get does not honour Default-Release or Pin-Priority)



Your message dated Sun, 05 Jan 2003 17:56:45 -0700 (MST)
with message-id <[🔎] Pine.LNX.3.96.1030105175120.513c-100000@wakko.debian.net>
and subject line Bug#175121: apt-get does not honour Default-Release or Pin-Priority
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Jan 2003 01:20:58 +0000
>From Steven.Homolya@spme.monash.edu.au Thu Jan 02 19:20:57 2003
Return-path: <Steven.Homolya@spme.monash.edu.au>
Received: from alpha9.cc.monash.edu.au [130.194.1.9] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18UGW8-0006fV-00; Thu, 02 Jan 2003 19:20:56 -0600
Received: from splat.its.monash.edu.au ([130.194.1.73])
 by vaxh.cc.monash.edu.au (PMDF V5.2-31 #39306)
 with ESMTP id <01KQSQQU3DKU95SB8J@vaxh.cc.monash.edu.au> for
 submit@bugs.debian.org; Fri, 3 Jan 2003 12:20:53 +1100
Received: from splat.its.monash.edu.au (localhost [127.0.0.1])
	by localhost (Postfix) with ESMTP id 960BB130087	for <submit@bugs.debian.org>;
 Fri, 03 Jan 2003 12:17:20 +1100 (EST)
Received: from there (ascend-2-19.its.monash.edu.au [130.194.10.132])
	by splat.its.monash.edu.au (Postfix) with SMTP id 4D41F13005F	for
 <submit@bugs.debian.org>; Fri, 03 Jan 2003 12:17:16 +1100 (EST)
Date: Fri, 03 Jan 2003 12:15:33 +1100
From: Steven Homolya <Steven.Homolya@spme.monash.edu.au>
Subject: apt-get does not honour Default-Release or Pin-Priority
To: submit@bugs.debian.org
Message-id: <[🔎] 20030103011716.4D41F13005F@splat.its.monash.edu.au>
Organization: Monash University
MIME-version: 1.0
X-Mailer: KMail [version 1.3.1]
Content-type: text/plain; charset=iso-8859-15
Content-transfer-encoding: 7BIT
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-4.8 required=5.0
	tests=NOSPAM_INC,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01
	version=2.41
X-Spam-Level: 

Package: apt
Version: 0.5.4

apt-get sometimes ignores:

APT::Default-Release "stable";

in /etc/apt/apt.conf and installs from testing or unstable.

After I broke things by trying to install kde3, I attempted to downgrade 
to stable (which is where 99+% of my installed packages are from). Following 
instructions on p. 62 of "Debian Reference" by O. Aoki, I created 
/etc/apt/preferences:

Package: *
Pin: release a=stable
Pin-Priority: 1001

then

# apt-get update
# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
Sorry, but the following packages have unmet dependencies:
  ark: Depends: kdelibs3 (>= 4:2.2.2-1) but it is not installed
  kab: Depends: kdelibs3 (>= 4:2.2.2-1) but it is not installed
  karm: Depends: kdelibs3 (>= 4:2.2.2-1) but it is not installed
.... 11 similar lines deleted ...
E: Unmet dependencies. Try using -f.

# apt-get -f upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following NEW packages will be installed:
  kdelibs3 
14 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
15 packages not fully installed or removed.
Need to get 19.6MB/26.2MB of archives. After unpacking 24.8MB will be used.
Do you want to continue? [Y/n] 
Get:1 ftp://ftp.monash.edu.au unstable/main libc6 2.3.1-8 [3190kB]
Get:2 ftp://ftp.monash.edu.au unstable/main coreutils 4.5.4-1 [2085kB]
CTRL-C

As you can see libc6 has been downloaded from _unstable_ despite the 
pin-priority of 1001 for stable in /etc/apt/preferences

-- 
Steven Homolya
School of Physics and Materials Engineering
Monash University VIC 3800
Australia
Tel: INT +61 3 9905 3694
Fax: INT +61 3 9905 3637

---------------------------------------
Received: (at 175121-done) by bugs.debian.org; 6 Jan 2003 00:56:46 +0000
>From jgg@debian.org Sun Jan 05 18:56:46 2003
Return-path: <jgg@debian.org>
Received: from shawidc-mo1.cg.shawcable.net (pd5mo1so.prod.shaw.ca) [24.71.223.10] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18VLZO-0007k4-00; Sun, 05 Jan 2003 18:56:46 -0600
Received: from pd5mr1so.prod.shaw.ca
 (pd5mr1so-qfe3.prod.shaw.ca [10.0.141.232]) by l-daemon
 (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002))
 with ESMTP id <0H8900J5VPALDS@l-daemon> for 175121-done@bugs.debian.org; Sun,
 05 Jan 2003 17:56:45 -0700 (MST)
Received: from pn2ml10so.prod.shaw.ca
 (pn2ml10so-qfe0.prod.shaw.ca [10.0.121.80])
 by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002))
 with ESMTP id <0H89002RBPALPW@l-daemon> for 175121-done@bugs.debian.org; Sun,
 05 Jan 2003 17:56:45 -0700 (MST)
Received: from wakko.debian.net ([24.86.195.248])
 by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002))
 with ESMTP id <0H8900LTRPALCX@l-daemon> for 175121-done@bugs.debian.org; Sun,
 05 Jan 2003 17:56:45 -0700 (MST)
Received: from localhost	([127.0.0.1] helo=wakko.debian.net ident=jgg)
	by wakko.debian.net with smtp (Exim 3.35 #1 (Debian))
	id 18VLZN-0002uB-00; Sun, 05 Jan 2003 17:56:45 -0700
Date: Sun, 05 Jan 2003 17:56:45 -0700 (MST)
From: Jason Gunthorpe <jgg@debian.org>
Subject: Re: Bug#175121: apt-get does not honour Default-Release or Pin-Priority
In-reply-to: <[🔎] 20030103011716.4D41F13005F@splat.its.monash.edu.au>
X-Sender: jgg@wakko.debian.net
To: Steven Homolya <Steven.Homolya@spme.monash.edu.au>,
 175121-done@bugs.debian.org
Cc: APT Development Team <deity@lists.debian.org>
Reply-to: Jason Gunthorpe <jgg@debian.org>
Message-id: <[🔎] Pine.LNX.3.96.1030105175120.513c-100000@wakko.debian.net>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT
Delivered-To: 175121-done@bugs.debian.org
X-Spam-Status: No, hits=-5.3 required=5.0
	tests=EMAIL_ATTRIBUTION,IN_REP_TO,SPAM_PHRASE_01_02,
	      USER_AGENT_PINE
	version=2.41
X-Spam-Level: 


On Fri, 3 Jan 2003, Steven Homolya wrote:

> apt-get sometimes ignores:
 
> APT::Default-Release "stable";
 
> in /etc/apt/apt.conf and installs from testing or unstable.

If you read the apt_preferences man page carefully you will find that this
is the documented behavior. If a particular package is already installed
with a version higher than the default-release then the latest version of
that package is always used, unless you further change things using the
preferences file..

> 14 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
> 15 packages not fully installed or removed.

The snippet you posted certainly works, but there are lots of factors that
can correctly ccause the output you quoted.

You need to investigate using the apt-cache policy feature and the -s
option to apt-get.

Jason



Reply to: