我正在尝试通过命令行更新和升级我的机器。但当我尝试运行时,sudo apt upgrade
我收到以下错误:
The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 229-4ubuntu21.2)
systemd : Depends: libsystem0 (= 229-4ubuntu19) but 229-4ubuntu21.2 is installed
E: Unmet dependencies. Try using -f
因此我尝试了sudo apt -f install
一下但出现以下错误:
dpkg: error processing archive /var/cache/apt/archives/systemd_229-4ubuntu21.2_amd64.deb (--unpack):
too-long line or missing newline in '/var/lib/dpkg/info/systemd.triggers'
Errors were encountered while processing:
/var/cache/apt/archives/systemd_229-4ubuntu21.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我可以sudo reboot
毫无错误地。
是什么原因导致了该问题?我该如何解决?