[Bug 1166568] Re: [update-manager-core] do-release-upgrade removing pinned / locked version packages

Daniel Hartwig mandyke at gmail.com
Fri May 31 05:15:21 UTC 2013


On 31 May 2013 12:49, B Bobo <1166568 at bugs.launchpad.net> 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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager-core in Ubuntu.
https://bugs.launchpad.net/bugs/1166568

Title:
  [update-manager-core] do-release-upgrade removing pinned / locked
  version packages

Status in “apt” package in Ubuntu:
  New
Status in “update-manager-core” package in Ubuntu:
  New

Bug description:
  I want to upgrade Ubuntu, but do-release-upgrade removes even locked-
  version packages. The problem is certain packages, e.g. harpia and
  shogun-octave, no longer exist in recent Ubuntu versions. I need those
  packages. This makes upgrading impossible.

  $ lsb_release -d
  Ubuntu 12.04.2 LTS

  $ do-release-upgrade -d
  raring.tar.gz

  Packages to be removed: [...] harpia shogun-octave

  Packages to be installed: [... harpia and shogun-octave not listed
  ...]

  Packages to be upgraded: [... harpia and shogun-octave not listed ...]

  I think packages with locked versions and their dependencies should be
  left alone during an upgrade.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1166568/+subscriptions




More information about the foundations-bugs mailing list