![sudo apt install gcc 不起作用](https://linux22.com/image/924018/sudo%20apt%20install%20gcc%20%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我已经尝试过了无法安装 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。