apt-get install build-essential 抛出 libc-dev 依赖错误

apt-get install build-essential 抛出 libc-dev 依赖错误

我无法在 Ubuntu Server 14.04 上安装 build-essential。我收到以下错误:

sudo apt-get install build-essential make curl -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl 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:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   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.

相关内容