0x01 介绍
某些服务商的默认软件包有问题,导致安装 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.
0x01 解决方法
1. 一条命令搞定:
sudo aptitude install build-essential
评论前必须登录!
立即登录 注册