I stupidly ran the command sudo apt remove k*
to uninstall kde. This however also uninstalled parts of xorg/x server/x11. I don't know what it uninstalled, as I know nothing about linux. I have tried running multiple commands like sudo apt install ubuntu-desktop
and sudo apt install xorg
. It also gives a message about packages which should be removed, however these are nvidia ones and I'm worried to do so. I can only use Wayland, which is incovenient.
I couldn't find what I did, but this helped me at a later date, when I did something similar.
I followed the instructions from https://serverfault.com/a/703266, but I've posted them here:
awk '!/^Start|^Commandl|^End|^Upgrade:|^Error:/ { gsub( /\([^()]*\)/ ,"" );gsub(/ ,/," ");sub(/^Install:/,""); print}' /var/log/apt/history.log
. This command gets the latest remove, then removes any nonsense.apt install [The output]
of the above command.