从 20.04 升级到 22.04.1 会破坏 systemd

从 20.04 升级到 22.04.1 会破坏 systemd

一直等到 22.04.1 出来,今晚“升级”,安装程序通知我安装 systemd 时出错,我的系统可能处于不可用状态。它确实启动了,事实上,在大多数情况下系统运行良好,但无法通过软件更新程序或命令行更新任何东西。我希望不必诉诸全新安装;有什么建议吗?

sudo apt-get upgrade 返回:

Setting up systemd (249.11-0ubuntu3.4) ...
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-245.so: cannot open shared object file: No such file or directory
dpkg: error processing package systemd (--configure):
 installed systemd package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of systemd-sysv:
 systemd-sysv depends on systemd (= 249.11-0ubuntu3.4); however:
  Package systemd is not configured yet.
 systemd-sysv depends on systemd; however:
  Package systemd is not configured yet.

dpkg: error processing package systemd-sysv (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of snapd:
 snapd depends on systemd; however:
  Package systemd is not configured yet.

dpkg: error processing package snapd (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 systemd
 systemd-sysv
 snapd
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容