upgrading 20.04 to 22.04 failed on "ubuntu-desktop"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
console shows this:
Fetched 360 MB in 6s (0 B/s)
Checking package manager
Reading package lists... Done
Building dependency tree
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-
you want to investigate this yourself the log files in
'/var/log/
Specifically, look at 'main.log' and 'apt.log'.
I looked at the logs and saw it failed on dependencies of a key package: ubuntu-desktop
tailed the main.log:
```
2024-01-13 18:05:33,786 INFO installing linux metapackage: linux-generic
2024-01-13 18:05:33,786 DEBUG Installing 'linux-generic' (linux metapackage may have been accidentally uninstalled)
2024-01-13 18:05:33,813 DEBUG Marking 'ubuntu-desktop' for upgrade
2024-01-13 18:05:34,030 WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Unable to correct problems, you have held broken packages.)
2024-01-13 18:05:34,384 ERROR Dist-upgrade failed: 'Broken packages after upgrade: ubuntu-desktop'
2024-01-13 18:05:34,387 DEBUG abort called
2024-01-13 18:05:34,389 DEBUG openCache()
2024-01-13 18:05:36,696 DEBUG Comparing 5.15.0-89 with
2024-01-13 18:05:36,696 DEBUG Comparing 5.15.0-91 with 5.15.0-89
2024-01-13 18:05:36,818 DEBUG /openCache(), new cache size 94800
```
and in apt.log I found the errors about ubuntu-desktop dependencies as well as more desktop related packages "Broken":
Investigating (0) gnome-shell:amd64 < 3.36.9-
Broken gnome-shell:amd64 Depends on gstreamer1.
Considering gstreamer1.
MarkKeep gnome-shell:amd64 < 3.36.9-
Removing gnome-shell:amd64 rather than change gstreamer1.
MarkDelete gnome-shell:amd64 < 3.36.9-
same for gnome-sessions, settings, fuse3 and gdm3 appeared many times.
```
Investigating (0) ubuntu-
Broken ubuntu-
Considering gdm3:amd64 23 as a solution to ubuntu-
MarkKeep ubuntu-
Removing ubuntu-
```
finally:
```
roken ubuntu-
Considering ubuntu-
Considering ubuntu-
Try to Re-Instate (6) libinput10:amd64
MarkKeep libinput10:amd64 < 1.15.5-1ubuntu0.3 -> 1.20.0-1ubuntu0.3 @ii umU Ib > FU=0
Try to Re-Instate (6) xserver-
MarkKeep xserver-
Done
Log time: 2024-01-13 18:05:36.803904
```
that's it.
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-91-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Sat Jan 13 18:12:58 2024
InstallationDate: Installed on 2021-04-16 (1001 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to focal on 2024-01-13 (0 days ago)
seems that this work-around by-passes the problem: https:/ /askubuntu. com/questions/ 1478451/ cant-upgrade- from-ubuntu- 20-04-22- 04-broken- packages- after-upgrade- libg
and I am able to continue the process :)