Ubuntu Server 14.04.3 LTS 安装C/C++开发环境时遇到的依赖关系问题
来源:互联网 发布:apache 双向认证 编辑:程序博客网 时间:2024/06/05 22:57
在配置GCC的过程中,通常我们会去安装build-seesential这个软件包,以前安装desktop版本时一直都很顺利,但是在安装server版本时却遇到很头疼的问题,重装了几次也没能解决,也尝试了很多方法问题依旧。报错如下:
$ sudo apt-get install build-essential Reading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: build-essential : Depends: gcc (>= 4:4.4.3) but it is not going to be installed Depends: g++ (>= 4:4.4.3) but it is not going to be installedE: Unable to correct problems, you have held broken packages.
最后尝试更换了源解决了问题,将默认的源列表替换为了中科大的
deb http://debian.ustc.edu.cn/ubuntu/ vivid main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ vivid-backports main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ vivid-security main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ vivid-updates main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ vivid main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ vivid-backports main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ vivid-security main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe
附链接:http://wiki.ubuntu.org.cn/Qref/Source
0 0
- Ubuntu Server 14.04.3 LTS 安装C/C++开发环境时遇到的依赖关系问题
- Ubuntu Server 14.04 LTS(64bit)下安装 weblogic Server 12c(12.1.3) Zip Distribution
- ubuntu 安装ssh遇到的依赖问题
- ubuntu 16.06LTS 环境安装eclipse 太卡的问题
- UEFI模式安装win10和Ubuntu 16.04 LTS双系统时遇到的问题
- eclipse c语言开发环境遇到的问题与解决
- Ubuntu 14.04 LTS Server 安装 LAMP Server
- Ubuntu 14.04 LTS Server 安装 LAMP Server
- 1 ubuntu server 14.04 LTS环境配置
- ubuntu server 12.04 LTS的安装要点
- Ubuntu 安装 Eclipse C/C++开发环境
- 安装ubuntu后 配置C开发环境
- ubuntu安装c/c++开发环境
- Ubuntu 12.04 LTS server 编译 android-4.0.4_r2.1遇到的问题和解决方法
- ubuntu server 14.04 LTS 图形化安装
- Ubuntu 14.04 LTS Server安装配置Bugzilla
- Ubuntu Server 14.04.1 LTS安装JDK
- 安装samba实现共享文件夹时遇到的一些依赖关系问题(ubuntu1204)
- 基于UDP协议的”hello world“
- Java基础--集合框架(HashSet、TreeSet、泛型)
- UILable
- 字母表自定义控件的实现
- android动画 属性动画详解
- Ubuntu Server 14.04.3 LTS 安装C/C++开发环境时遇到的依赖关系问题
- 第十四周项目2----分块查找算法
- [树]二叉树的建立以及三种遍历
- 期末总结
- 触发器 triggers
- 黑马程序员——异常
- 魔王语言解释(数组实现栈和队列)
- 成员变量和局部变量
- Java中equals和==的区别