Could not calculate the upgrade
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ubuntu-release-upgrader (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
When I perform do-release-upgrade I face the "Could not calculate the upgrade" error. There are multiple broken packages in apt.log which I think are the cause, but I don't know if it's safe to remove them.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.4.0-137-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 30 11:15:56 2023
InstallationDate: Installed on 2018-10-11 (1572 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to focal on 2023-01-30 (0 days ago)

Reviewing the files from your upgrade attempt, you have installed pipewire packages from the pipewire- debian/ pipewire- upstream PPA. Some of the packages installed are newer than those in the official archive, which is keeping some pipewire-related packages installed which then prevents the upgrade from being calculated. Please try using the ppa-purge tool to remove packages installed from ppa:pipewire- debian/ pipewire- upstream by running ppa-purge -s ppa.launchpad.net -o pipewire-debian -p pipewire-upstream. After that you can try upgrading again and if it still fails open a new bug report. Thanks and good luck!