[Bug 2073278] Re: Dist-upgrade failed: 'The package 'postgresql-12' is marked for removal but it is in the removal deny list.'
Nick Rosbrook
2073278 at bugs.launchpad.net
Tue Aug 6 20:55:11 UTC 2024
** Changed in: ubuntu-release-upgrader (Ubuntu)
Status: Confirmed => Fix Committed
** Changed in: ubuntu-release-upgrader (Ubuntu Noble)
Status: Confirmed => In Progress
--
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 Committed
Status in ubuntu-release-upgrader source package in Noble:
In Progress
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