||
Ubuntu16.04安装Python3.8.5:
https://blog.csdn.net/onebigday/article/details/104672350
https://www.jianshu.com/p/a1c965e954f8
https://www.jianshu.com/p/c82be5f22966
安装编译之后出现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 step
sudo 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
连接地址:
https://cloud.tencent.com/developer/article/1671540
最后解决:
ImportError: No module named _ssl问题
https://blog.csdn.net/onebigday/article/details/104672350
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-31 00:05
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社