我想使用“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 install aptitude -y && sudo aptitude install g++
关于linux - 我无法安装 g++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56084814/