I have a Asus laptop which I have installed Ubuntu-Mate 24.04 on. When I reboot, there is a grey screen with a darker border for a few seconds, then it flashes black, then the green Ubuntu-Mate logo appears; all is well with the world.
If I use sudo apt upgrade
, and then reboot, there is a grey screen with a darker border, then it flashes black, then it goes back to grey-with-border.
Fortunately, I can reinstall the OS from this point, and all is well again - but I would really like to keep my installation patched!
In an attempt to debug this, I installed aptitude
(because it allows upgrading just some packages). And upgraded all the packages matching lib*
(on the grounds this probably wouldn't cause the symptoms, and it was about half the upgrades). I also took note of what versions were originally installed (so I could go back to the originals). The upgrade sucked in five non-lib packages, (and also uninstalled dmsetup) but I went ahead anyway. It turns out that this broke the system too
The good news is that from this state, I can get to the grub recovery root shell (with a network), so I tried to return everything to my starting state. The strange thing is that aptitude reported something like:
cannot find version 1.0.5-1ubuntu1 for package gstreamer1.0-pipewire
(sorry, I didn't copy down the exact wording).
I commented out all the packages it couldn't find, and tried again. Sadly, that left me in the same state, so I just reinstalled the OS again. The complete list of packages I wanted to install was as follows (with the version I originally had installed):
acl=2.3.2-1build1
#gstreamer1.0-pipewire=1.0.5-1ubuntu1
ldap-utils=2.6.7+dfsg-1~exp1ubuntu8
libacl1=2.3.2-1build1
#libapparmor1=4.0.1really4.0.0-beta3-0ubuntu0.1
libaudit-common=1:3.1.2-2.1build1
libaudit1=1:3.1.2-2.1build1
libboost-iostreams1.83.0=1.83.0-2.1ubuntu3
libboost-locale1.83.0=1.83.0-2.1ubuntu3
libboost-thread1.83.0=1.83.0-2.1ubuntu3
libcryptsetup12=2:2.7.0-1ubuntu4
libdevmapper1.02.1=2:1.02.185-3ubuntu3
#libegl-mesa0=24.0.9-0ubuntu0.1
libfwupd2=1.9.16-1
libgail-3-0t64=3.24.41-4ubuntu1.1
#libgbm1=24.0.9-0ubuntu0.1
#libgl1-mesa-dri=24.0.9-0ubuntu0.1
#libglapi-mesa=24.0.9-0ubuntu0.1
#libglx-mesa0=24.0.9-0ubuntu0.1
libgssapi-krb5-2=1.20.1-6ubuntu2.1
libgtk-3-0t64=3.24.41-4ubuntu1.1
libgtk-3-bin=3.24.41-4ubuntu1.1
libgtk-3-common=3.24.41-4ubuntu1.1
libk5crypto3=1.20.1-6ubuntu2.1
libkrb5-3=1.20.1-6ubuntu2.1
libkrb5support0=1.20.1-6ubuntu2.1
libldap-common=2.6.7+dfsg-1~exp1ubuntu8
libldap2=2.6.7+dfsg-1~exp1ubuntu8
#libpipewire-0.3-0t64=1.0.5-1ubuntu1
#libpipewire-0.3-common=1.0.5-1ubuntu1
#libpipewire-0.3-modules=1.0.5-1ubuntu1
libproc2-0=2:4.0.4-4ubuntu3
#libspa-0.2-bluetooth=1.0.5-1ubuntu1
#libspa-0.2-jack=1.0.5-1ubuntu1
#libspa-0.2-modules=1.0.5-1ubuntu1
#libxatracker2=24.0.9-0ubuntu0.1
#pipewire-bin=1.0.5-1ubuntu1
#pipewire-pulse=1.0.5-1ubuntu1
#pipewire=1.0.5-1ubuntu1
The commented out ones are the ones it couldn't find versions for (so were left upgraded).
Note: In an ideal world, upgrading a package and then installing the old version should leave everything exactly the same. We do not live in an ideal world. So although my suspicions centre on the packages that are commented out, others might also be responsible.
What do I try next? In particular, how do I get apt/aptitude to install the old versions of these packages?