As the GUI Software Updater is not working, I have been doing via a terminal window within the MATE GUI sudo apt update
followed by sudo apt upgrade
. A new kernel and kernel "support" packages were installed. This time, when the upgrade requested to clean up a number of supposedly unneeded packages, my Xwindows system failed. From /var/log/apt/history.log
I found:
Commandline: apt autoremove
Requested-By: ykarant (1000)
Remove: libnvidia-common-390:amd64 (390.154-0ubuntu0.22.04.1), libnvidia-fbc1-3
90:amd64 (390.154-0ubuntu0.22.04.1), linux-image-5.15.0-48-generic:amd64 (5.15.
0-48.54), libnvidia-gl-390:amd64 (390.154-0ubuntu0.22.04.1), nvidia-compute-uti
ls-390:amd64 (390.154-0ubuntu0.22.04.1), libnvidia-encode-390:amd64 (390.154-0u
buntu0.22.04.1), nvidia-utils-390:amd64 (390.154-0ubuntu0.22.04.1), xserver-xor
g-video-nvidia-390:amd64 (390.154-0ubuntu0.22.04.1), libnvidia-ifr1-390:amd64 (
390.154-0ubuntu0.22.04.1), linux-signatures-nvidia-5.15.0-48-generic:amd64 (5.1
5.0-48.54), linux-modules-nvidia-390-5.15.0-48-generic:amd64 (5.15.0-48.54), li
nux-headers-5.15.0-48-generic:amd64 (5.15.0-48.54), libnvidia-decode-390:amd64
(390.154-0ubuntu0.22.04.1), linux-modules-5.15.0-48-generic:amd64 (5.15.0-48.54
), fonts-symbola:amd64 (2.60-1.1), task-desktop:amd64 (3.68ubuntu2), screen-res
olution-extra:amd64 (0.18.2), nvidia-settings:amd64 (510.47.03-0ubuntu1), linux
-modules-extra-5.15.0-48-generic:amd64 (5.15.0-48.54), gstreamer1.0-vaapi:amd64 (1.20.1-1ubuntu1), libnvidia-cfg1-390:amd64 (390.154-0ubuntu0.22.04.1), linux-headers-5.15.0-48:amd64 (5.15.0-48.54), linux-objects-nvidia-390-5.15.0-48-generic:amd64 (5.15.0-48.54)
End-Date: 2022-10-18 23:37:26
Is there a mechanism to "reinstall" the above other than hand entering each package into apt install
? I have read this question about undoing apt autoremove.