首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从Jonathon的PPA安装gcc 7.3时的依赖问题

从Jonathon的PPA安装gcc 7.3时的依赖问题
EN

Ask Ubuntu用户
提问于 2018-02-24 21:13:52
回答 1查看 13.7K关注 0票数 7

我正在尝试从乔纳森·F的PPA安装最新的gcc-7软件包.看来现在终于有了一个成功的构建amd64 2018-02-23。

在运行sudo apt-get install gcc-7时,我遇到了以下依赖问题。

代码语言: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.
 gcc-7 : Depends: cpp-7 (= 7.3.0-5ubuntu1~16.04.york0) but it is not going to be installed
         Depends: gcc-7-base (= 7.3.0-5ubuntu1~16.04.york0) but 7.2.0-1ubuntu1~16.04 is to be installed
         Depends: libcc1-0 (>= 7.3.0-5ubuntu1~16.04.york0) but 7.2.0-1ubuntu1~16.04 is to be installed
         Depends: binutils (>= 2.28) but 2.26.1-1ubuntu1~16.04.6 is to be installed
         Depends: libgcc-7-dev (= 7.3.0-5ubuntu1~16.04.york0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

以前,我确实从Ubuntu的ppa安装了gcc-7,但这是针对7.2的。我把那个包裹拿走了。

运行Synaptic,以下是可疑包的列表:

对于如何解决这些依赖问题并安装gcc 7.3,有什么建议吗?

EN

回答 1

Ask Ubuntu用户

发布于 2019-05-13 09:28:03

当使用命令从jonathonf添加ppa时

代码语言:javascript
复制
sudo add-apt-repository ppa:jonathonf/gcc-7.3

消息显示在日志中。

这是针对ppa:jonathonf/gcc 构建的,并且需要更多信息:https://launchpad.net/~jonathonf/+archive/ubuntu/gcc-7.3

添加ppa解决了依赖关系问题。

代码语言:javascript
复制
sudo add-apt-repository ppa:jonathonf/gcc
sudo apt-get update
sudo apt-get install gcc-7                                                        

严重的问题是

以下软件包有未满足的依赖关系: libcc1-0 :libcc1-0 (>= 7.3.0-23ubuntu2~16.04.york 0),但5.4.0-6 ubuntu1~16.04.11取决于: libgcc-7-dev (= 7.3.0-23ubuntu2~16.04.york 0),但它不会被安装E:无法纠正问题,您持有坏包。

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

https://askubuntu.com/questions/1009433

复制
相关文章

相似问题

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