~$ sudo apt-get install --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
console-setup : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed
console-setup-linux : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed
initramfs-tools-core : Depends: initramfs-tools-bin (= 0.122ubuntu8.17) but 0.136ubuntu6.3 is installed
libdpkg-perl : Depends: dpkg (>= 1.18.11)
python-lazr.restfulclient : Depends: python-httplib2 but it is not installed
python3 : PreDepends: python3-minimal (= 3.5.1-3) but 3.8.2-0ubuntu2 is installed
Depends: libpython3-stdlib (= 3.5.1-3) but 3.8.2-0ubuntu2 is installed
python3-cairo : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed
python3-distutils : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed
python3-gdbm : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed python3-lib2to3 : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed
python3-renderpm : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed python3-reportlab-accel : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
答案1
让我们看一下第一个错误消息...
console-setup : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed
...让我们看看这些版本号https://packages.ubuntu.com
- 1.108ubuntu15.5 = xenial-更新 (16.04)
- 1.194ubuntu3 = 焦点(20.04)
换句话说,您似乎试图将适用于 16.04 的软件包安装到您的 20.04 系统上。这是一个非常糟糕的想法,而且它破坏了您的系统也就不足为奇了。
无论您尝试安装什么,请将其卸载。
如果您添加了任何源来安装该不兼容的包,请将其删除。
答案2
嗯,确实如此。我没有注意到我运行的脚本是针对 20.04 的,而我运行的是 16.04。但我不知道如何卸载它 ))
脚本在这里:bash <(wget -qO-https://finnway.ru/downloads/sources)