新安装的 22.04 桌面版,“apt-get autoremove”损坏了某些东西,无法启动

新安装的 22.04 桌面版,“apt-get autoremove”损坏了某些东西,无法启动

我使用 22.04 LTS 重新安装了桌面(之前使用的是 20.04 LTS)。因此,从 USB 驱动器进行正常的全新安装。

我进行正常安装,完成后打开终端并执行以下操作:

  • apt-get 更新
  • apt-get dist-upgrade
  • 重启
  • (重启后一切正常)
  • apt-get dist-upgrade(查看是否缺少什么)
  • apt-get 自动删除

最后一次 dist-grade 的输出

$ sudo apt-get dist-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:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58 libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0
  libchromaprint1 libcodec2-1.0 libdav1d5 libdpkg-perl libfile-fcntllock-perl libflite1 libgme0 libgsm1 libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libmfx1 libmysofa1 libnorm1
  libnvidia-cfg1-515 libnvidia-common-515 libnvidia-decode-515 libnvidia-egl-wayland1 libnvidia-encode-515 libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-gl-515 libopenmpt0 libpgm-5.3-0 libpostproc55
  librabbitmq4 librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0 libva-drm2 libva-wayland2 libva-x11-2
  libva2 libvdpau1 libvidstab1.1 libx265-199 libxnvctrl0 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers nvidia-compute-utils-515 nvidia-kernel-source-515
  nvidia-settings nvidia-utils-515 pkg-config pocketsphinx-en-us screen-resolution-extra va-driver-all vdpau-driver-all xserver-xorg-video-nvidia-515
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  libpulse-mainloop-glib0 libpulse0 libpulsedsp pulseaudio pulseaudio-module-bluetooth pulseaudio-utils sudo
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

上次自动删除的输出

$ sudo apt-get autoremove 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58 libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0
  libchromaprint1 libcodec2-1.0 libdav1d5 libdpkg-perl libfile-fcntllock-perl libflite1 libgme0 libgsm1 libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libmfx1 libmysofa1 libnorm1
  libnvidia-cfg1-515 libnvidia-common-515 libnvidia-decode-515 libnvidia-egl-wayland1 libnvidia-encode-515 libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-gl-515 libopenmpt0 libpgm-5.3-0 libpostproc55
  librabbitmq4 librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0 libva-drm2 libva-wayland2 libva-x11-2
  libva2 libvdpau1 libvidstab1.1 libx265-199 libxnvctrl0 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers nvidia-compute-utils-515 nvidia-kernel-source-515
  nvidia-settings nvidia-utils-515 pkg-config pocketsphinx-en-us screen-resolution-extra va-driver-all vdpau-driver-all xserver-xorg-video-nvidia-515
0 upgraded, 0 newly installed, 76 to remove and 7 not upgraded.
After this operation, 656 MB disk space will be freed.
Do you want to continue? [Y/n] 

重新启动后,屏幕上显示以下内容

/dev/nvme0n1p2: clean, 217873/61022208 files, 7026862/244059136 blocks
[.     4.786323]

这就是我在屏幕上看到的全部内容,记录着变化。

我最初的安装是在安装过程中选择 LVM 和加密磁盘。当我这样做时,输入加密磁盘的密码后,我得到以下内容

Press ctrl+c to cancel all file system checks in progress

什么也没有发生。

“自动删除”会删除一些关键内容吗?我最近没有看到任何关于 ubuntu 22.04 出现此问题的消息

使用三星 980 1 TB,M.2 NVMe

我尝试了几次全新安装。自动删除后问题始终存在。

答案1

跑步:

sudo apt install ubuntu-restricted-addons

似乎选择“安装第三方”不包括 ubuntu-restricted-addons 包,该包将其依赖项设置为您上面提到的依赖项。

相关内容