I was trying to install a package from source and it asked me to install cmake.
I did so, but the install had other errors so I gave up and did a snap remove cmake.
Now when I run apt (or muon), it says it wants to uninstall KDE-desktop and xorg. These are metapackages and it looks like uninstalling them will delete a lot of my system.
I just did a reboot for other reasons and my system still appears to be intact.
Is there some way I can undo this without starting a fresh install? I do a lot of user level customization and I don't want to have to start over.
How can I undo this?
System is Kubuntu 22.04 on an HP notebook with an Intel(R) Celeron(R) CPU N3150 @ 1.60GHz.
This is my backup notebook. The screen on my main one is dying and I don't have the funds to replace that notebook right now. This one is a little slow, but it has been working fine for me.
Edit ----
shelelia@blue:~/pq$ sudo apt install -f
[sudo] password for shelelia:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
shelelia@blue:~/pq$ sudo apt-get full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
x11-apps x11-session-utils xinit
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
kubuntu-desktop xorg
The following packages have been kept back:
base-files distro-info language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base libegl-mesa0 libgbm1 libgl1-amber-dri
libgl1-mesa-dri libglapi-mesa libglx-mesa0 python-apt-common python3-apt python3-distro-info python3-distupgrade ubuntu-release-upgrader-core
ubuntu-release-upgrader-qt
0 upgraded, 0 newly installed, 2 to remove and 18 not upgraded.
After this operation, 100 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
Edit ----
This is in /var/log/apt/history.log.
It shows the packages getting removed and subsequently reinstalled, but doesn't include anything about why any actions occurred.
Start-Date: 2023-08-04 09:20:00
Upgrade: libpoppler-qt5-1:amd64 (22.02.0-2ubuntu0.1, 22.02.0-2ubuntu0.2), libgpgmepp6:amd64 (1.16.0-1.2ubuntu4, 1.16.0-1.2ubuntu4.1), libgtk-4-common:amd64 (4.6.6+ds-0ubuntu1, 4.6.9+ds-0ubuntu0.22.04.1), libpoppler-cpp0v5:amd64 (22.02.0-2ubuntu0.1, 22.02.0-2ubuntu0.2), libxatracker2:amd64 (22.2.5-0ubuntu0.1~22.04.3, 23.0.4-0ubuntu1~22.04.1), libegl1-mesa:amd64 (22.2.5-0ubuntu0.1~22.04.3, 23.0.4-0ubuntu1~22.04.1), libgpgme11:amd64 (1.16.0-1.2ubuntu4, 1.16.0-1.2ubuntu4.1), mesa-va-drivers:amd64 (22.2.5-0ubuntu0.1~22.04.3, 23.0.4-0ubuntu1~22.04.1), poppler-utils:amd64 (22.02.0-2ubuntu0.1, 22.02.0-2ubuntu0.2), libgl1-mesa-glx:amd64 (22.2.5-0ubuntu0.1~22.04.3, 23.0.4-0ubuntu1~22.04.1), libpoppler-glib8:amd64 (22.02.0-2ubuntu0.1, 22.02.0-2ubuntu0.2), libpoppler118:amd64 (22.02.0-2ubuntu0.1, 22.02.0-2ubuntu0.2), mesa-vulkan-drivers:amd64 (22.2.5-0ubuntu0.1~22.04.3, 23.0.4-0ubuntu1~22.04.1), python3-gpg:amd64 (1.16.0-1.2ubuntu4, 1.16.0-1.2ubuntu4.1), libqgpgme7:amd64 (1.16.0-1.2ubuntu4, 1.16.0-1.2ubuntu4.1), brave-browser:amd64 (1.56.14, 1.56.20), libgtk-4-1:amd64 (4.6.6+ds-0ubuntu1, 4.6.9+ds-0ubuntu0.22.04.1), libgtk-4-bin:amd64 (4.6.6+ds-0ubuntu1, 4.6.9+ds-0ubuntu0.22.04.1), mesa-vdpau-drivers:amd64 (22.2.5-0ubuntu0.1~22.04.3, 23.0.4-0ubuntu1~22.04.1)
Remove: kubuntu-desktop:amd64 (1.418.1), xorg:amd64 (1:7.7+23ubuntu2)
End-Date: 2023-08-04 09:21:17
Start-Date: 2023-08-04 09:31:26
Install: kubuntu-desktop:amd64 (1.418.1), xorg:amd64 (1:7.7+23ubuntu2, automatic)
End-Date: 2023-08-04 09:31:29
term.log has the same information in a different format.
I don't see anything else interesting there.
Phased updates explains why some packages were held back, but does not explain why the two essential packages were removed.
Maybe that was caused by a getting an early phased update that had problems, but I'd like to see some evidence that this was the case so I can identify a similar situation if it occurs again in the future.