[Bug 1245929] Re: apt pinning preferences are ignored
Michael Vogt
michaelvogt at imap.cc
Fri Nov 29 19:23:12 UTC 2013
The following works for me:
$ cat /etc/apt/preferences
Package: *
Pin: origin ppa.launchpad.net
Pin-Priority: 100
$ apt-cache policy|grep -A2 -B2 ppa
100 http://ppa.launchpad.net/appgrid/stable/ubuntu/ saucy/main i386 Packages
release v=13.10,o=LP-PPA-appgrid-stable,a=saucy,n=saucy,l=appgrid stable,c=main
origin ppa.launchpad.net
** Changed in: apt (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1245929
Title:
apt pinning preferences are ignored
Status in “apt” package in Ubuntu:
Incomplete
Bug description:
I've seen already the "possible related" but either they have been
fixed or doesn't apply.
I'm trying to set the PPA's with lower priority than normal releases
using:
Package: *
Pin: origin "ppa.launchpad.net"
Pin-Priority: 400
This works without problems in Debian, but in Ubuntu ppa.launchpad.net
keeps it's 500 priority:
apt-cache policy | grep ppa
500 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/saiarcot895/chromium-beta/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/saiarcot895/chromium-beta/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/phablet-team/tools/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/phablet-team/tools/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/libreoffice/libreoffice-4-0/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/libreoffice/libreoffice-4-0/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/kilian/f.lux/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/kilian/f.lux/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/juju/stable/ubuntu/ raring/main i386 Packages
origin ppa.launchpad.net
500 http://ppa.launchpad.net/juju/stable/ubuntu/ raring/main amd64 Packages
origin ppa.launchpad.net
This is not desirable. I've tried other combinations such:
Pin: release o=LP-PPA-saiarcot895-chromium-beta
(for each of the ppa's)
Pin: release v=13.04,o=LP-PPA-juju-stable,a=raring,n=raring,l=juju stable packages,c=main
(again, for each of the ppa's)
release l=juju stable packages
(also tried labels alone)
Etc. None of them works. strace shows that apt-cache is indeed reading
the preferences.d file, but what is done with it is unknown.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: apt 0.9.7.7ubuntu6
ProcVersionSignature: Ubuntu 3.8.0-32.47-generic 3.8.13.10
Uname: Linux 3.8.0-32-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.5
Architecture: amd64
Date: Tue Oct 29 11:19:09 2013
MarkForUpload: True
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1245929/+subscriptions
More information about the foundations-bugs
mailing list