Ubuntu20.04 安装build-essential问题
#sudo apt-get install build-essential
问题
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:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
解决方案
安装 aptitude,参考给出的solution选一个合适的。给出的第一个方案如果没有安装build-essential,继续输入no直到出现安装build-essential的方案
sudo apt-get install aptitude
sudo aptitude install build-essential