sudo apt install gcc 不起作用

sudo apt install gcc 不起作用

我已经尝试过了无法安装 GCC,依赖 gcc-7

它不起作用。

这是我得到的

$ sudo apt install gcc

**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:
 gcc : Depends: gcc-7 (>= 7.3.0-12~) but it is not going to be installed
*E: Unable to correct problems, you have held broken packages.**

甚至sudo apt install build-essential不起作用。

我的 Ubuntu 版本是 18.04.4。

相关内容