[Bug 2073278] Re: Dist-upgrade failed: 'The package 'postgresql-12' is marked for removal but it is in the removal deny list.'

Ɓukasz Zemczak 2073278 at bugs.launchpad.net
Thu Aug 22 08:21:48 UTC 2024


Hello omid, or anyone else affected,

Accepted ubuntu-release-upgrader into noble-proposed. The package will
build now and be available at
https://launchpad.net/ubuntu/+source/ubuntu-release-upgrader/1:24.04.22
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Tags removed: verification-done verification-done-noble
** Tags added: verification-needed verification-needed-noble

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2073278

Title:
  Dist-upgrade failed: 'The package 'postgresql-12' is marked for
  removal but it is in the removal deny list.'

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Noble:
  Fix Committed

Bug description:
  [Impact]

  In general, when an upgrade fails because of a denied package removal
  (due to matching entry in the package removal denylist), the upgrade
  is aborted without a user-facing / friendly message.

  If a user installed a system with e.g. 20.04 and installed
  postgresql-12, then upgraded to jammy without removing postgresql-12,
  and then later attempts to upgrade to noble, the upgrade will fail
  because apt will calculate that postgresql-12 needs to be removed in
  order to satisfy all other deps.

  Hence, users in this situation will have a failed upgrade attempt and
  no helpful message.

  [Test Plan]

  Create a LXD container running Focal:

  $ lxc launch ubuntu:focal focal
  $ lxc shell focal bash

  Then, install postgresql, and upgrade to Jammy:

  $ apt install -y postgresql
  $ do-release-upgrade

  After upgrading to Jammy, attempt to upgrade to Noble:

  $ do-release-upgrade -d

  The upgrade will fail because the calculated upgrade requires removing
  postgresql-12. With the patch, a friendly message should be displayed
  explaining this.

  [Where problems could occur]

  This patch adds some extra logic when displaying a message after an
  upgrade aborts due to a problem with the calculated upgrade. Mistakes
  with this patch would probably affect the message displayed to the
  user in such cases.

  [Original Description]

  When running sudo do-release-upgrade -d
  I get follwing massage

  Checking package manager
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done

  Calculating the changes

  Calculating the changes

  Could not calculate the upgrade

  An unresolvable problem occurred while calculating the upgrade.

  This was likely caused by:
  * Unofficial software packages not provided by Ubuntu
  Please use the tool 'ppa-purge' from the ppa-purge
  package to remove software from a Launchpad PPA and
  try the upgrade again.

  If none of this applies, then please report this bug using the
  command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If
  you want to investigate this yourself the log files in
  '/var/log/dist-upgrade' will contain details about the upgrade.
  Specifically, look at 'main.log' and 'apt.log'.

  Restoring original system state

  Aborting
  Reading package lists... Done
  Building dependency tree... Done

  I think already tried removed the third party packages and it is still
  not working

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubuntu-release-upgrader-core 1:22.04.19
  ProcVersionSignature: Ubuntu 5.15.0-116.126-generic 5.15.158
  Uname: Linux 5.15.0-116-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Jul 16 18:10:23 2024
  InstallationDate: Installed on 2021-02-28 (1233 days ago)
  InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to jammy on 2024-07-16 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2073278/+subscriptions




More information about the foundations-bugs mailing list