What does the following apt-get response mean?

NoOp glgxg at sbcglobal.net
Sat Dec 4 22:38:25 UTC 2010


On 12/02/2010 12:47 PM, Jim Byrnes wrote:
> NoOp wrote:
>> On 12/02/2010 09:28 AM, Jim Byrnes wrote:
>> ...
>>> In the context of this thread what does "pinned" mean?  I googled but
>>> never found an explanation.
>>
>> https://help.ubuntu.com/community/PinningHowto
...
> Thanks for the info.  I don't have a need to do it, I just wanted to 
> understand what it meant and I am just not a good googler.  The howto's 
> are always an interesting read.
> 
> Regards,  Jim
> 

Just as an added note: Locking a package in Synaptic will not lock/pin
the package in apt-get. For example; if I downgrade the udisks package
in Synaptic & lock it, using apt-get upgrade will still offer to upgrade
the package:

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  udisks
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 212kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?

So, in order to properly pin the package in apt-get, you need to:

$ sudo -s
# echo udisks hold | dpkg --set-selections
# exit
$ sudo apt-get update
$ sudo apt-get upgrade

and now we find the result of the last:
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  udisks
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Seems to me that using Synaptic to 'pin' a package should also result in
the package being 'pinned' in apt-get as well. If I find time I'll
rummage aound in launchpad to see if a bug has already been filed, if
not I'll file one.






More information about the ubuntu-users mailing list