如何撤消 apt autoremove

如何撤消 apt autoremove

由于 GUI 软件更新程序无法正常工作,我通过 MATE GUI 中的终端窗口进行操作,sudo apt update然后进行sudo apt upgrade。安装了新内核和内核“支持”包。这次,当升级要求清理一些据称不需要的包时,我的 Xwindows 系统失败了。/var/log/apt/history.log 我发现:

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

除了手动输入每个包之外,还有其他机制可以“重新安装”上述内容吗apt install?我读过有关撤消 apt autoremove 的这个问题。

相关内容