首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在安装libx11 11-dev E:无法纠正问题时,您已经保存了损坏的包。

在安装libx11 11-dev E:无法纠正问题时,您已经保存了损坏的包。
EN

Ask Ubuntu用户
提问于 2020-09-17 05:43:51
回答 1查看 987关注 0票数 0

我正在使用Ubuntu 18.04。当我运行sudo apt install libx11-dev时,我得到了以下输出:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libx11-dev : Depends: libx11-6 (= 2:1.6.4-3ubuntu0.1) but 2:1.6.4-3ubuntu0.2 is to be installed
              Depends: libxcb1-dev but it is not going to be installed
              Recommends: libx11-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该怎么解决这个问题?

提前谢谢。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-09-17 05:45:18

尝试使用aptitude

sudo aptitude install <package-name>

如果您没有在您的机器上安装aptitudesudo apt-get install aptitude

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1275725

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档