Because of bug #693758 I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package.
How can this be achieved?
|
Because of bug #693758 I'd like to prevent How can this be achieved? |
||||
|
Now go to Synaptic Package Manager (System > Administration > Synaptic Package Manager) Click search button and type package name. When you find package select it and go to Package (in menu) and click Lock Version.
and you are done, now that package will not show in update manager and it will not be updated. There are four ways of holding back packages, with dpkg, apt, aptitude or with dselect. Using dpkg Put a package on hold
Remove the hold
Displaying the status of your packages
Displaying the status of a single package
Using apt you can hold a package using
and remove the hold with
Using aptitude you can hold a package using
and remove the hold with
Using dselect With dselect, you just have to enter the [S]elect screen, find the package you wish to hold in its present state, and press = or H. The changes will go live immediately after you exit the [S]elect screen. |
|||||||||||||
|
|
I am even older school =) To put a package "foo" on hold
To remove hold
|
|||
|
|
|
Install Run using
From the package menu select Lock version:
And that is all, the version currently installed at the time of the lock will stay installed even during upgrades. |
|||||||||
|
|
Preventing a package from being installed is called "package holding" and it is very simple to do: echo package_name hold | dpkg --set-selections ...where *package_name* is the name of the package you want to prevent from installation. Note: the above command assumes root privileges. In other words, you will probably need to type |
||||
|
|
|
I synaptic you can freeze the version of a specific package I'm not a 100% sure as to whether this will amend apt-get but it will definately stop update manager. To freeze a package select it in synaptic then open the package menu and select freeze version. Hope this helps edit: This question 16668 deals with a similar situation |
|||
|
|
|
Everything you ever wanted to know about "holding" and "pinning" packages to specific versions: https://help.ubuntu.com/community/PinningHowto |
|||
|
|
|
If you have Synaptic installed you can select the package and use the menu Package -> Lock Version to prevent it being updated. You can install Synaptic with sudo apt-get install synaptic. I personally find it more useful than the Software Center... then again, I'm fairly old school. :) |
|||
|
|
|
After reading https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/75332 (see also bug 158981 -- I cannot post 3 links) and https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/72806 the summary is that hold at apt-get / aptitude level is not triggering hold status in dpkg (see bug 72806 especially) and update-manager reads status from dpkg. workaround is run as root echo "package hold" | dpkg --set-selections |
|||
|
|
disable packages from the auto-update– hhlp Oct 26 '11 at 18:41