Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1148131
  • 博文数量: 241
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2279
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-27 19:53
个人简介

JustForFun

文章分类

全部博文(241)

文章存档

2023年(8)

2022年(2)

2021年(3)

2020年(30)

2019年(11)

2018年(27)

2017年(54)

2016年(83)

2015年(23)

我的朋友

分类: LINUX

2020-08-22 10:56:15

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

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


解决办法aptitude命令代替apt-get命令
apt-get install aptitude
aptitude install  python-dev


The following packages have unmet dependencies:
Keep the following packages at their current version:                  
Accept this solution? [Y/n/q/?]
这个命令会正对冲突做解决依赖,会先询问冲突的包版本是否要保留,我们选n不保留,
然后会下一步问我们这些包依赖要安装是否接受,选Y.即可完美解决这个问题。
阅读(3894) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~