Comment 3 for bug 1166568

Revision history for this message
Daniel Hartwig (wigs) wrote : Re: [Bug 1166568] Re: [update-manager-core] do-release-upgrade removing pinned / locked version packages

On 31 May 2013 12:49, B Bobo <email address hidden> wrote:
> Versions locked using Synaptic per Ubuntu Pinning Howto https://help.ubuntu.com/community/PinningHowto#line-97
> and Ubuntu Apt Get Howto https://help.ubuntu.com/community/AptGet/Howto#line-67
>

[It seems the advise in those documents is outdated and inaccurate. I
will file some reports on that.]

Synaptic version locking is ineffective in other apt tools. See bug
#42178
. The same issue exists with aptitude holds.

The only solution is to use apt/dpkg holds, supported everywhere. The
PinningHowto says to do:
# echo libxfont1 hold | dpkg --set-selections

If your apt is recent enough, you can instead use:
# apt-mark hold harpia shogun-octave

After applying this hold, confirm the changes with e.g.:
$ dpkg -s harpia | grep Status
Status: hold ok installed