当前位置: > Linux发行版 > Debian >

Debian 解决安装 build-essential 循环依赖报错问题

时间:2016-12-08 19:17来源:linux.it.net.cn 作者:IT

某些服务商的默认软件包有问题,导致安装 build-essential 会出现问题。大概就是这样子:

root@localhost:~# sudo apt install build-essential -y
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: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.9.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

解决方法

1. 一条命令搞定:
sudo aptitude install build-essential




(责任编辑:IT)
------分隔线----------------------------