Ubuntu 20.04 to 22.04 upgrade fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The upgrade to Ubuntu 22.04 fails with the message:
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.
But I understand third-party ppa were disabled during the upgrade, so it's unclear where the issue is coming from. apt.log complains about gcc instead:
Investigating (0) libgcc1:amd64 < 1:10.3.
Broken libgcc1:amd64 Depends on gcc-10-base:amd64 < 10.3.0-
Considering gcc-10-base:amd64 5 as a solution to libgcc1:amd64 75
Added gcc-10-base:amd64 to the remove list
Fixing libgcc1:amd64 via keep of gcc-10-base:amd64
MarkKeep gcc-10-base:amd64 < 10.3.0-
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-60-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 1 21:51:31 2023
InstallationDate: Installed on 2020-10-02 (880 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to focal on 2023-03-01 (0 days ago)
VarLogDistupgra
Reviewing the files from your upgrade attempt, you have installed nodejs from the nodesource PPA. This version of nodejs is greater than the one in the official archive and is keeping some packages installed which then prevents the upgrade from being calculated. Please remove nodejs along with any other packages from that archive and disable the archive. After that you can try upgrading again and if it still fails open a new bug report. Thanks and good luck!