What is APT-Pinnig and how to ajust pin-priority?

Post your update and upgrade related errors here
Forum rules
Before you post please read this

What is APT-Pinnig and how to ajust pin-priority?

Postby Ralle on Sun Feb 19, 2012 5:09 am

Hi,
I have problems to get the actual version of IceWeasel.
Not with apt-get dist-udate,
not with apt-get dist-upgrade.
apt-show-versions -a iceweasel
shows me always
Code: Select all
    iceweasel 8.0-3~bpo60+1 install ok installed
    No stable version
    iceweasel 5.0-6            testing           debian.linuxmint.com
    iceweasel 10.0.1-1~bpo60+1 squeeze-backports mozilla.debian.net
    iceweasel/squeeze-backports upgradeable from 8.0-3~bpo60+1 to 10.0.1-1~bpo60+1


A member of the german linusmintuser-community recommended to ajust the pin-priority: 101
How can I do that?

Bests Ralle
Ralle
Level 1
Level 1
 
Posts: 18
Joined: Wed Jun 11, 2008 10:42 am

Linux Mint is funded by ads and donations.
 

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby Brian49 on Sun Feb 19, 2012 1:04 pm

Iceweasel 10 is in the Debian Unstable repository, so you can easily install it by temporarily enabling that repository.

Pin-priority is adjusted by editing the file /etc/apt/preferences as root. But unless there is something wrong, you shouldn't need to do that if you have the relevant repository enabled. Most repositories are by default assigned a relatively high pin-priority of 500 in that file.

APT-pinning is most easily done via Lock Version on the Package menu in Synaptic, although it can also be done by assigning a package a low priority in the above file.
Brian49
Level 5
Level 5
 
Posts: 610
Joined: Thu Oct 29, 2009 2:27 pm

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby Ralle on Sun Feb 19, 2012 2:04 pm

Hi,
Brian49 wrote:Iceweasel 10 is in the Debian Unstable repository, so you can easily install it by temporarily enabling that repository.
Thanks for help.
One more question please: How can I temporarily enabling the correct repository?
I have to modify the sources.lst right?

Bests
Ralle
Ralle
Level 1
Level 1
 
Posts: 18
Joined: Wed Jun 11, 2008 10:42 am

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby DrHu on Sun Feb 19, 2012 2:05 pm

Apt pinning and howto..
https://help.ubuntu.com/community/PinningHowto
    The next file involved is:
    /etc/apt/preferences
    The 'preferences' file is where the actual pinning takes place. To pin a package, set its Pin-Priority to higher number. Here's an example:

https://help.ubuntu.com/8.04/serverguide/C/apt-get.html
apt help..
It is also likely that whichever package manager you use can enable pinning in some manner, selecting specific repositories or enabling particular software packages to stick at one version (that is pinning)
--since the package managers are in general only a front end to apt package management


Just add the repository you want to use into /etc/apt/sources.list file, then
Code: Select all
sudo apt-get update
sudo apt-get install package name
--or use the gui package manager of your choice

When finished with that install, and assuming that it installs correctly: remove the temporary
/etc/apt/sources.list change, and then
Code: Select all
sudo apt-get update
--to resync the repository data (with your changes, now removed)
User avatar
DrHu
Level 16
Level 16
 
Posts: 6630
Joined: Wed Jun 17, 2009 8:20 pm

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby Ralle on Sun Feb 19, 2012 2:56 pm

Hi DrHu,

thanks for your encouragement
but I don't understand this all.
So I think I have two possibilities
first to wait until Mint starts to bring new updates for LMDE.
Second is to download IceWeasel separately and install it over
the existing version.

Bests
Ralle
Ralle
Level 1
Level 1
 
Posts: 18
Joined: Wed Jun 11, 2008 10:42 am

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby craigevil on Sun Feb 19, 2012 3:03 pm

Either add the debian unstable repo or uncomment it if it is already in your sources.list.

apt-get update
apt-get install iceweasel

That should install iceweasel from sid. No need to mess with pinning unless you want to leave the unstable repo uncommented.

Instead of using the unstable repo you could also just add the mozilla.debian.net repo, which is maintained by the same Debian dev that maintains the 'official' iceweasel.

# Apt-Pinning for Beginners - http://jaqque.sbih.org/kplug/apt-pinning.html


$ apt-cache policy iceweasel
iceweasel:
Installed: 10.0.2-1
Candidate: 10.0.2-1
Debian Sid KDE4.8.4 Kernel 3.4 Thinkpad R40 CPU Pentium M 1.3MHz RAM 2GB ATI Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
craigevil
Level 5
Level 5
 
Posts: 559
Joined: Wed Sep 15, 2010 6:10 am
Location: down the rabbit hole

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby Brian49 on Sun Feb 19, 2012 3:03 pm

To enable the Unstable repository, add this line to the sources.list file:

Code: Select all
deb http://ftp.debian.org/debian/ unstable main contrib non-free


To disable it, add the hash symbol (#) at the start of the line. Of course you can just delete the line, but you might want to use that repository again some time.
Brian49
Level 5
Level 5
 
Posts: 610
Joined: Thu Oct 29, 2009 2:27 pm

Re: What is APT-Pinnig and how to ajust pin-priority?

Postby Ralle on Mon Feb 20, 2012 12:24 pm

Hi Brian49,
I did what you recommended.
Set your code into the sources.lst.
Then sudo apt-get update,
next sudo apt-get dist-upgrade,
all questions with Y/N I answered with 'Y',
then I turned my notebook completly (not only restart)
off and and then on again.
Now I'm running on my old Pentium III notebook
with kernel 3.2.0.1-amd64 and Gnome 3.2.
It's running fast and stable without any errors.
Thanks a lot for help.

Bests
Ralle

PS: My IceWeasel is actual too now :D
Ralle
Level 1
Level 1
 
Posts: 18
Joined: Wed Jun 11, 2008 10:42 am

Linux Mint is funded by ads and donations.
 

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 2 guests