安装 build-essential 时出现“软件包‘build-essential’没有安装候选项”

安装 build-essential 时出现“软件包‘build-essential’没有安装候选项”

我尝试了以下命令但显示错误:

sudo apt-get install build-essential

结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'build-essential' has no installation candidate

相关内容