Ubuntu16.04安装Python3.8.5:
安装编译之后出现apt-get错误You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libxml-parser-perl : Depends: libwww-perl but it is not going to be installed
printer-driver-gutenprint : Depends: cups (>= 1.3.0) but it is not going to be installed
printer-driver-splix : Depends: cups (>= 1.5.0-3~) but it is not going to be installed
python-httplib2 : Depends: ca-certificates but it is not going to be installed
python-pip : Depends: ca-certificates but it is not going to be installed
Recommends: python-dev-all (>= 2.6) but it is not installable
Recommends: python-wheel but it is not going to be installed
python-requests : Depends: ca-certificates but it is not going to be installed
python-requests-whl : Depends: ca-certificates but it is not going to be installed
python3-httplib2 : Depends: ca-certificates but it is not going to be installed
python3-requests : Depends: ca-certificates but it is not going to be installed
ruby1.9.1 : Depends: libruby1.9.1 (= 1.9.3.484-2ubuntu1.2) but it is not going to be installed
ssh-import-id : Depends: ca-certificates but it is not going to be installed
vim-gtk : Depends: libruby1.9.1 (>= 1.9.2.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
造成这种问题的原因是因为在Ubuntu下,例如Ubuntu 14.04或者16.04一般是不会出现broken dependencies,或者出现unmet dependencies, 但是如果我们使用dpkg强制安装了某些deb包,或者在build-dep的是否手动更改了某些Packages的文件和版本时, 那么在再次使用apt-get install或者build-dep来安装packages的时就很可能出现上面出现过的问题。
我们可以根据提示执行下命令,如果问题照旧,那我们尝试执行一下命令
解决办法如下:
first stepsudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
second step
sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove
third step
sudo apt --fix-broken install
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get install -f
连接地址:
最后解决:
ImportError: No module named _ssl问题
转载本文请联系原作者获取授权,同时请注明本文来自陈超科学网博客。
链接地址:http://blog.sciencenet.cn/blog-858128-1246854.html
上一篇:北斗物联
下一篇:pip3 install --user pipenv出现Traceback (most recent call last