[Bug 2073278] Re: Dist-upgrade failed: 'The package 'postgresql-12' is marked for removal but it is in the removal deny list.'
Launchpad Bug Tracker
2073278 at bugs.launchpad.net
Tue Aug 27 10:40:13 UTC 2024
This bug was fixed in the package ubuntu-release-upgrader - 1:24.04.22
---------------
ubuntu-release-upgrader (1:24.04.22) noble; urgency=medium
[ Tobias Heider ]
* Fix typo in force_obsoletes. (LP: #2076913)
[ Nick Rosbrook ]
* DistUpgrade: handle cache key error when removing obsolete packages
(LP: #2077358)
* deb2snap: switch snap-store and firmware-updater tracks
(LP: #2077344)
* Run pre-build.sh: updating mirrors, demotions, and translations.
ubuntu-release-upgrader (1:24.04.21) noble; urgency=medium
* DistUpgradeQuirks: disable stub resolver on upgrades from jammy
(LP: #2043820)
* DistUpgrade: show a message about denied package removals
(LP: #2073278)
* data: add cryptsetup-initramfs to removal_denylist.cfg
(LP: #2067622)
* DistUpgradeQuirks: abort if system is not /usr-merged
(LP: #2058648)
* DistUpgradeQuirks: disable cloud-init on upgrade
(LP: #2075968)
* DistUpgradeQuirks: abort if rabbitmq-server installed
(LP: #2074309)
* Run pre-build.sh: updating mirrors, demotions, and translations.
ubuntu-release-upgrader (1:24.04.20) noble; urgency=medium
[ Mate Kukri ]
* DistUpgradeQuirks: make sure GRUB "cloud_style_installation" is set in cloud images (LP: #2054103)
[ Julian Andres Klode ]
* Move the actiongroup out of the obsoletes loop
* Reimplement obsolete removal with resolve_by_keep (LP: #1874272)
[ Nick Rosbrook ]
* Run pre-build.sh: updating mirrors, demotions, and translations.
-- Nick Rosbrook <enr0n at ubuntu.com> Wed, 21 Aug 2024 12:55:15 -0400
** Changed in: ubuntu-release-upgrader (Ubuntu Noble)
Status: Fix Committed => Fix Released
--
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 Released
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