The following packages have unmet dependencies错误

当出现类似这类错误:

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原生的源就可以安装了,因为阿里源的包太新。

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

时间: 2024-08-02 05:53:41

The following packages have unmet dependencies错误的相关文章

Unmet dependencies. Try 'apt-get -f install' with no packages

在ubuntu14.04上用sudo apt-get install percona-xtrabackup安装xtrabackup时提示 [email protected]:~$ sudo apt-get install percona-xtrabackup [sudo] password for zhj: Reading package lists... Done Building dependency tree Reading state information... Done You mi

安装pip3遇到:E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

安装pip3遇到:E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 具体如下: 尝试了:sudo apt-get -f install 不行,最后试了一下,发现安装所有软件都会出现这个问题. 解决方法:sudo apt-get --fix-broken install安装之后就可以安装其他软件了. 安装pip3遇到:E: Unmet dependencies. Try

【Grails 代理Proxy设置】部署Grails遇到Error Resolve error obtaining dependencies:错误,及解决方法

最近在使用Grails,一开始使用3.0.2版本,一直包nullpointer错误,后来使用了2.5.0版本,可以创建工程,但是在进入到工程目录后,再执行grails程序,报错了,步骤如下: 1. grails create-app helloworld // 成功 2. cd helloworld 3. grails        // 出错,信息如下 | Configuring classpath | Error Resolve error obtaining dependencies: C

E: Unable to correct problems, you have held broken packages 解决方法

在Ubuntu中安装软件的时候经常碰到E: Unable to correct problems, you have held broken packages.的错误,顾名思义是因为某些软件包冲突导致,幸运的话sudo apt-get update && sudo apt-get upgrade 可以解决,但这种情况属于可遇不可求,更多的适合这么做不济于事.这样一来如何彻底解决就成了一个问题,经过多次摸索之后,将可行的解决方法记录如下: 以安装libxml2-dev时错误为例,安装时提示如

python-dev 安装错误

/******************************************************************** * python-dev 安装错误 * 说明: * 今天在安装python相关开发工具的时候出现了这个错误. * * 2016-8-15 深圳 南山平山村 曾剑锋 *******************************************************************/ 一. 参考文档: 1. Can't install pyt

执行 apt-get -f install 提示错误

执行 apt-get -f install 提示错误 分类: Linux 2015-01-24 21:26 554人阅读 评论(0) 收藏 举报 1. 问题: usloft1359:~# rvm install 2.2.0 Searching for binary rubies, this might take some time. No binary rubies available for: debian/6/x86_64/ruby-2.2.0. Continuing with compil

Ubuntu重装mysql错误解决

新搭建的服务器,先在Ubuntu上安装mariadb,后来由于很多权限问题,决定安装Mysql,在卸载过程中由于未卸载干净,导致mysql重装过程中出现了很多问题. Reading package lists...Done Building dependency tree Reading state information ... Done mysql-server is already the newest version(5.7.21-0ubuntu0.16.04.1). You might

ubuntu 16.04下ssh访问提示错误

[email protected]:/etc/init.d$ sudo apt-get install openssh-server -yReading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situa

艰辛五天:Ubuntu14.04+显卡驱动+cuda+Theano环境安装过程

题记:从一开始不知道显卡就是GPU(虽然是学计算机的,但是我真的不知道-脑残如我也是醉了),到搞好所有这些环境前后弄了5天时间,前面的买显卡.装显卡和装双系统见另一篇博客装显卡.双系统,这篇主要记录我怎么配置后面的环境,虽然中间重装Ubuntu三次,后面安装过程也没差别. 基础平台:64-bit,Ubuntu14.04 1.安装NVIDIA驱动(参考技术文章,基本是复制啊,蟹蟹作者~) (1) 在官网下载NVIDIA驱动,根据自己买的型号选择下载,放到 /home/lvxia/ 目录下面,我下载