【发布时间】:2019-09-28 18:55:59
【问题描述】:
我想使用“sudo apt install g++”在 linux mint 19 上安装 g++。或者通过软件管理器下载但有“不可用”。当我使用命令时,会出现此消息。你能告诉我我怎样才能得到它。或者如何使用其他编译器编译 cpp 文件。我必须编译 .asm 和 .cpp 文件。
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:
g++ : Depends: g++-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-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade.
标签: linux g++ installation apt linux-mint