I finally tried to upgrade from Ubuntu 20.04 LTS to 22.04 LTS. Unfortunately, update manager fails to complete the process. When I run the update-manager manually I get the following error message:
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/pam.d/gdm-password’
When I check the above mentioned folder, there is a symlink gdm-password → gdm but there is no actual gdm -file. There is, however, a file named gdm-password.dpkg-new from the year 2020. This is probably from when I upgraded from 18.04 to 20.04. Is this just a naming problem or something else?
Can anyone help me with this error? My system seems to be working fine without this gdm-password -file. Only the upgrade fails.
To be complete, I have already done
sudo apt update && sudo apt upgrade
and there seems to be no package related problems. Only this gmd-password error remains.
GDM is 22.04 is really only to be used with GNOME Shell. It has well known issues with Budgie - it can and does break the lock screen and sometimes shortcut keys. It is strongly recommended NOT to have both gnome-shell and budgie both installed at the same time. If you don’t use gnome-shell anymore then removing the package gnome-shell-common is recommended.
I’m not sure if I need gnome-shell, but since I’m using Mate desktop I suppose I do. At one point I tried lightdm but there were some problems with Mate. I don’t remember the details anymore but I had to switch back. I guess I should play it safe and stay with 20.04 LTS. Fortunately it has a long support duration.
You can just do sudo apt remove gnome-shell-common but don’t press “y” to continue until you verify that all the associated packages it says that will be removed, you don’t need. N.B. gnome-shell-common is only used by GNOME Shell - no other desktop environments such as Mate and Budgie.
This is what I get. Does this look safe? Only things that I’m not sure about are gnome-session and ubuntu-session, what are these? I think it was gdm3 I tried years ago and it didn’t work. Maybe these are leftovers from there?
The following packages were automatically installed and are no longer required:
fprintd gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0
gir1.2-geoclue-2.0 gir1.2-gnomedesktop-3.0 gir1.2-graphene-1.0
gir1.2-gweather-3.0 gir1.2-handy-0.0 gir1.2-mutter-6 gir1.2-nma-1.0
gir1.2-rsvg-2.0 gir1.2-upowerglib-1.0 gjs libfprint-2-2 libgdm1 libgjs0g
libmozjs-68-0 libpam-fprintd switcheroo-control xwayland
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
chrome-gnome-shell gdm3 gnome-session gnome-shell gnome-shell-common
gnome-shell-extension-ubuntu-dock gnome-tweak-tool gnome-tweaks
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.