MY TALE OF TERRIBLE WOE UPGRADING MY DESKTOP FROM #UBUNTU 20.04 to 22.04
I held off the upgrade because when I tried it a couple of years ago I got unknown errors, and it refused to do the upgrade. But applications I use would no longer work, so the time came to finally upgrade.
It was an awful experience. I see people recommend that people should stop using Windows and switch to #Linux, but no. Few people could handle all the major issues I faced.
Here is my tale of woe:
The upgrade finished. But I couldn't log in. I entered the username and password, and it kept coming back to the prompt.
The cause is that the package manager was in a broken state. There were packages for both 20.04 and 22.04 on the system. The core authentication packages were also broken. I forced a reinstall of the core authentication packages and removed a bunch of 20.04 packages manually.
Many files in sources.list.d were still referencing 20.04 repositories. I had to clean them out and their dependencies and rerun the full upgrade.
I rebooted but then no longer had the GUI login screen. Only a text login screen. At least I could log in.
I had no desktop environment. It wasn't installed!! WTF? I had to install it myself.
Rebooted again and I had no network connectivity. The network interface was DOWN. The upgrade did not install netplan and so the network was not initialized! Another WTF? I had to manually assign an IP address and install and apply netplan.
I rebooted again but still couldn't log in. Turns out it never installed the desktop packages either!! I had to install ubuntu-desktop and gdm3.
I rebooted again and still couldn't log in. The configuration was set, for some reason, to only allow smart card login. Two configuration settings in the PAM configuration had been set up to only allow smart card logins. Why would it do this?? I fixed the configurations.
I rebooted and could finally get in.
I discovered the ufw firewall was no longer installed. Why did it remove ufw??
The sound was awful in so many ways. Turns out the upgrade never removed PulseAudio. The upgrade was supposed to replace PulseAudio with PipeWire. 20.04 PulseAudio was still running! I had to remove PulseAudio and install PipeWire manually and all the related things like the bluetooth support for it and wireplumber.
I don't know if anything else wasn't upgraded that should be. And I may have forgotten some of the issues I faced.
A number of applications also no longer worked and had to be reinstalled or fixed.
This weekend I will upgrade from 22.04 to 24.04. I hope it goes better.