syklon 发表于 2013-10-10 09:50:43

Ubuntu Server 13.04安装失败,checking for C compiler ... not found

Ubuntu Server 13.04安装失败,大体看了下日志,找到这句,checking for C compiler ... not found,但是机器上gcc是有的,奇怪,运行如下命令apt-get install gcc libc6-dev
结果如下:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
gcc is already the newest version.
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:
libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.4) but 2.17-0ubuntu5 is to be installed
             Depends: libc-dev-bin (= 2.15-0ubuntu10.4)
E: Unable to correct problems, you have held broken packages.

licess 发表于 2013-10-10 20:15:41

依赖库有问题
aptitude install libc6=2.15-0ubuntu10.4 试试
页: [1]
查看完整版本: Ubuntu Server 13.04安装失败,checking for C compiler ... not found