Re: apt/pins: Why does apt try to downgrade?
Hi, apt preference is confusing.
Short answer: Use pin of 90 instead of 700 for mozilla-browser and
others in /etc/apt/preferences.
Read on !
On Sun, May 19, 2002 at 01:59:51PM +0200, Thomas Schoepf wrote:
> I'm using apt_preferences to follow testing and to use mozilla from
> unstable. That works just fine.
> Now I've downloaded the mozilla source tar and diff and changed a few
> things. I versioned this new package "2:1+rc2-2.1".
>
> Now "apt-get upgrade" wants to downgrade to "2:1+rc2-2". As far as I
> understand apt_preferences (5), only packages with a pin of > 1000 are
> marked downgradable. I have pin of 700 on version "2:1+rc2-2".
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
As I see, you have pin of 700 for all "mozilla-browser"s in "unstable".
Since "2:1+rc2-2.1" is not in "unstable", it is 100 since it is
installed. Thus your result. You can confirm my theory by:
# cd /etc/apt
# mv souces.list souces.list.keep
# touch souces.list
# apt-cache policy mozilla-browser
mozilla-browser:
Installed: 2:1+rc2-2.1
Candidate: 2:1+rc2-2.1
Version Table:
*** 2:1+rc2-2.1 0
100 /var/lib/dpkg/status
> Is this a bug or am I just missing something?
It is you :) But you are not alone. I spent time.
"apt-howto" and "debian reference" gives good starting point for novice.
http://www.debian.org/doc/
apt-howto is available as package too.
> Here's a log:
>
> asterix:~# apt-cache policy mozilla-browser
> mozilla-browser:
> Installed: 2:1+rc2-2.1
> Candidate: 2:1+rc2-2
> Package Pin: 2:1+rc2-2
> Version Table:
> *** 2:1+rc2-2.1 700
> 100 /var/lib/dpkg/status
> 2:1+rc2-2 700
> 80 http://ftp.de.debian.org unstable/main Packages
> 2:0.9.9-6 700
> 600 http://ftp.de.debian.org woody/main Packages
...
> asterix:~# cat /etc/apt/preferences
> Package: *
> Pin: release a=testing
> Pin-Priority: 600
>
> Package: *
> Pin: release a=unstable
> Pin-Priority: 80
>
Any package you do not want to install from unstable do not list and
remove.
> Package: libnss3
> Pin: release a=unstable
> Pin-Priority: 700
>
> Package: libnspr4
> Pin: release a=unstable
> Pin-Priority: 700
>
> Package: mozilla-browser
> Pin: release a=unstable
> Pin-Priority: 700
For this I would do:
Package: mozilla-browser
Pin: release a=testing
Pin-Priority: 90
Because unstable is 80 by above setting.
> Package: mozilla-dom-inspector
> Pin: release a=unstable
> Pin-Priority: 700
>
> Package: mozilla-mailnews
> Pin: release a=unstable
> Pin-Priority: 700
>
> Package: mozilla-psm
> Pin: release a=unstable
> Pin-Priority: 700
> asterix:~#
--
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
Osamu Aoki @ Cupertino CA USA
See "User's Guide": http://www.debian.org/doc/manuals/users-guide/
See "Debian reference": http://www.debian.org/doc/manuals/reference/
"Debian reference" Project at: http://qref.sf.net
I welcome your constructive criticisms and corrections.
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: