ubuntu upgrade from 20.04 to 22.04 is failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ubuntu upgrade from 20.04 to 22.04 is failing.
following are the error log from apt.log
dist-upgrade tail -f /var/log/
MarkKeep xserver-
Investigating (9) gnome-calendar:
Broken gnome-calendar:
Considering libgweather-
MarkKeep gnome-calendar:
Holding Back gnome-calendar:
Try to Re-Instate (9) mutter:amd64
MarkKeep mutter:amd64 < 3.36.9-
Done
Log time: 2023-10-20 03:19:45.886317
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-87-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 20 03:20:10 2023
InstallationDate: Installed on 2021-09-15 (764 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to focal on 2023-10-19 (0 days ago)
mtime.conffile.
There's a lot to unpack here. First, the apt.log tail is a red herring. There were a LOT of failures further before that in your apt.log. The /var/log/ dist-upgrade/ main.log was a lot more telling:
2023-10-20 03:19:43,098 WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Error, pkgProblemResol ver::Resolve generated breaks, this may be caused by held packages.) data-server, gnome-control- center, libgirepository -1.0-1, ubuntu-desktop'
2023-10-20 03:19:43,398 ERROR Dist-upgrade failed: 'Broken packages after upgrade: evolution-
Even further up, I noticed a lot of PPAs that got deactivated. PPAs sometimes have interfering packages which can cause this very situation. A good tool in the Ubuntu repositories is `ppa-purge` which can disable and remove packages that were installed by the addition of a PPA, and is highly recommended prior to trying a Release Upgrade. The command syntax is as easy as `sudo ppa-purge ppa:{ppa username/ppa name}`.
The removal of those and all third-party repositories are highly recommended before attempting a release upgrade to prevent problems like this from happening as ubuntu- release- upgrader cannot account for third party repositories or packages.
Furthermore, it appears as though your /etc/update- manager/ release- upgrades has been set to `Prompt=normal` when this would be expected to be `Prompt=lts` when moving from LTS to LTS. While this might not be a factor, it is slightly suspicious and not the default for this type of upgrade.
Unfortunately, this doesn't appear to be a bug in ubuntu- release- upgrader, but a package conflict with existing packages on the system.