Ubuntu软件更新的时候报错
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 229-4ubuntu21.22) but 229-4ubuntu21.4 is installed
systemd : Depends: libsystemd0 (= 229-4ubuntu21.4) but 229-4ubuntu21.22 is installed
解决方法:
1 可通过删除systemd-sysv来解决
dpkg --force-all -P systemd-sysv
--force-all 选项用于忽略依赖
2 pt-get -f install
3 apt-get update
本文解决Ubuntu更新时遇到的依赖问题,如libpam-systemd与systemd版本不匹配导致的错误。提供三种解决方法:删除systemd-sysv,强制删除,或使用apt-get尝试修复安装。
1371

被折叠的 条评论
为什么被折叠?



