我遇到了 libsystemd 冲突,无法修复,请帮忙!
sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
apport-gtk : Depends: apport (>= 0.41) but it is not installed
libnss-systemd : Depends: systemd (= 249.11-0ubuntu3.6)
libsystemd0 : Breaks: libsystemd0:i386 (!= 249.11-0ubuntu3.4) but 249.11-0ubuntu3.6 is installed
libsystemd0:i386 : Breaks: libsystemd0 (!= 249.11-0ubuntu3.6) but 249.11-0ubuntu3.4 is installed
libudev-dev : Depends: libudev1 (= 249.11-0ubuntu3.6) but 249.11-0ubuntu3.4 is installed
libudev1 : Breaks: libudev1:i386 (!= 249.11-0ubuntu3.4) but 249.11-0ubuntu3.6 is installed
libudev1:i386 : Breaks: libudev1 (!= 249.11-0ubuntu3.6) but 249.11-0ubuntu3.4 is installed
python3 : PreDepends: python3-minimal (= 3.10.6-1~22.04) but 3.10.4-0ubuntu2 is installed
Depends: python3.10 (>= 3.10.6-1~) but 3.10.4-3ubuntu0.1 is installed
Depends: libpython3-stdlib (= 3.10.6-1~22.04) but 3.10.4-0ubuntu2 is installed
python3-dev : Depends: python3 (= 3.10.4-0ubuntu2) but 3.10.6-1~22.04 is installed
systemd-timesyncd : Depends: systemd (= 249.11-0ubuntu3.6)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
编辑:
已尝试apt --fix-broken install
并清理,但没有成功。
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
apport-gtk : Depends: apport (>= 0.41) but it is not installed
libnss-systemd : Depends: systemd (= 249.11-0ubuntu3.6)
libsystemd0 : Breaks: libsystemd0:i386 (!= 249.11-0ubuntu3.4) but 249.11-0ubuntu3.6 is installed
libsystemd0:i386 : Breaks: libsystemd0 (!= 249.11-0ubuntu3.6) but 249.11-0ubuntu3.4 is installed
libudev-dev : Depends: libudev1 (= 249.11-0ubuntu3.6) but 249.11-0ubuntu3.4 is installed
libudev1 : Breaks: libudev1:i386 (!= 249.11-0ubuntu3.4) but 249.11-0ubuntu3.6 is installed
libudev1:i386 : Breaks: libudev1 (!= 249.11-0ubuntu3.6) but 249.11-0ubuntu3.4 is installed
python3 : PreDepends: python3-minimal (= 3.10.6-1~22.04) but 3.10.4-0ubuntu2 is installed
Depends: python3.10 (>= 3.10.6-1~) but 3.10.4-3ubuntu0.1 is installed
Depends: libpython3-stdlib (= 3.10.6-1~22.04) but 3.10.4-0ubuntu2 is installed
python3-dev : Depends: python3 (= 3.10.4-0ubuntu2) but 3.10.6-1~22.04 is installed
systemd-timesyncd : Depends: systemd (= 249.11-0ubuntu3.6)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies