python-six 错误

python-six 错误

我无法安装任何软件,安装程序甚至无法打开。我无法升级到 17.04,错误依旧。

Ubuntu 16.04 LTS 64 位
7.7 GiB
Intel® Core™ i7-3840QM CPU @ 2.80GHz × 8
Quadro K3000M/PCIe/SSE2
306.6 GB

这些是错误:

larry@Dad-Precision-M6700:~/.config$ sudo apt-get install synaptic
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:
 python-configobj : Depends: python-six but it is not going to be installed
 python-cryptography : Depends: python-six (>= 1.4.1) but it is not going to be installed
 python-html5lib : Depends: python-six but it is not going to be installed
 python-openssl : Depends: python-six but it is not going to be installed
 python-urllib3 : Depends: python-six but it is not going to be installed
 synaptic : Depends: libept1.5.0 but it is not going to be installed
            Recommends: libgtk2-perl (>= 1:1.130) but it is not going to be installed
            Recommends: rarian-compat but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

还有一些错误:

larry@Dad-Precision-M6700:~$ sudo apt-get install --reinstall python3-click
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:
 python-configobj : Depends: python-six but it is not going to be installed
 python-cryptography : Depends: python-six (>= 1.4.1) but it is not going to be installed
 python-html5lib : Depends: python-six but it is not going to be installed
 python-openssl : Depends: python-six but it is not going to be installed
 python-urllib3 : Depends: python-six but it is not going to be installed
 python3-click : Depends: python3-colorama but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

您可以尝试手动安装python-six(以及任何其他不会自动安装的依赖项),然后尝试再次安装 synaptic。

有时,apt 会做一些奇怪的事情,尤其是在删除 PPA 或类似的东西之后。

编辑:此外,也许可以sudo apt-get -f install先尝试(后面不带任何包名称),如评论和 apt 本身所建议的那样。

相关内容