当前位置:首页 > Windows程序 > 正文

The following packages have unmet dependencies错误

2024-03-31 Windows程序

当出现类似这类错误:

The following packages have unmet dependencies: python-dev : Depends: python (= 2.7.5-5ubuntu3) but 2.7.12-1~16.04 is to be installed Depends: libpython-dev (= 2.7.5-5ubuntu3) but it is not going to be installed Depends: python2.7-dev (>= 2.7.5-1~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

这是由于安装包的版本太新,其依赖包和旧版本冲突导致。

网上常见解决方法:apt-get -f install,but it doesn‘t work for me,或者说使用aptitude的,试了下很慢。

后来我把阿里源换回Ubuntu原生的源就可以安装了,因为阿里源的包太新。

The following packages have unmet dependencies错误

标签:

原文地址:https://www.cnblogs.com/willaty/p/9522591.html

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/8718.html

Jm-杰米博客Jamie
草根站长的技术交流乐园!IT不会不要紧快来好好学习吧!
  • 20786文章总数
  • 7494583访问次数
  • 建站天数
  • 友情链接