Ubuntu Server 14.04.3 LTS 安装C/C++开发环境时遇到的依赖关系问题
2015-12-19 19:10
951 查看
在配置GCC的过程中,通常我们会去安装build-seesential这个软件包,以前安装desktop版本时一直都很顺利,但是在安装server版本时却遇到很头疼的问题,重装了几次也没能解决,也尝试了很多方法问题依旧。报错如下:
最后尝试更换了源解决了问题,将默认的源列表替换为了中科大的
附链接:http://wiki.ubuntu.org.cn/Qref/Source
$ sudo apt-get install build-essential 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: 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 installed E: Unable to correct problems, you have held broken packages.
最后尝试更换了源解决了问题,将默认的源列表替换为了中科大的
deb http://debian.ustc.edu.cn/ubuntu/ vivid main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-security main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-security main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe
附链接:http://wiki.ubuntu.org.cn/Qref/Source
相关文章推荐
- C++ std命名空间详解
- 实战c++中的vector系列--C++11对vector成员函数的扩展(cbegin()、cend()、crbegin()、crend()、emplace()、data())
- 实战c++中的vector系列--C++11对vector成员函数的扩展(cbegin()、cend()、crbegin()、crend()、emplace()、data())
- 关于默认构造函数的一点总结
- C/C++ 常量指针,指针常量
- C/C++ 内存传递 指针
- C++中的“error:LNK2005 已经在*.obj中定义”异常问题
- 值得推荐的C/C++框架和库
- C++之学后感
- C++总的const使用说明
- 【LeetCode从零单刷】Bulb Switcher
- C语言编写静态链接库及其使用
- C语言实现标准正态分布函数和0-1均匀分布函数
- C语言实现常见的矩阵运算函数
- 黑马程序员-OC语言-关键字self与super
- C语言qsort库函数使用说明
- C语言运算符的优先级和结合性
- c++如何将一块内存拆分成两块内存
- C++ 红黑树增加、删除等操作
- C++ 贪心算法部分背包问题