我正在跑步sudo apt update ; sudo apt upgrade -y,在安装过程中,我的电脑没电了,突然关机了。旁注 - 我在 Windows 10 上使用适用于 Linux 的 Windows 子系统。
现在,当我运行时,我遇到了sudo apt upgrade无法解决的错误。这是我得到的:
~$ sudo apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 229-4ubuntu21.6) but 229-4ubuntu21.4 is installed
systemd : Depends: libsystemd0 (= 229-4ubuntu21.4) but 229-4ubuntu21.6 is installed
E: Unmet dependencies. …Run Code Online (Sandbox Code Playgroud) upgrade updates package-management apt windows-subsystem-for-linux