Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 我能';t安装g&x2B+;_Linux_G++_Installation_Apt_Linux Mint - Fatal编程技术网

Linux 我能';t安装g&x2B+;

Linux 我能';t安装g&x2B+;,linux,g++,installation,apt,linux-mint,Linux,G++,Installation,Apt,Linux Mint,我想在LinuxMint19上安装带有“sudoAPTinstallG++”的g++。或通过软件管理器下载,但“不可用”。当我使用命令时,有这样一条消息。你能告诉我怎样才能得到它吗。或者如何使用其他编译器编译cpp文件。我必须编译.asm和.cpp文件 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be

我想在LinuxMint19上安装带有“sudoAPTinstallG++”的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++
试试这个:

sudo apt install aptitude -y && sudo aptitude install g++

sudo-apt-get-update&&sudo-apt-get-upgrade&&sudo-apt-get-dist-upgrade
sudo-apt-get-update&&sudo-apt-get-dist-upgrade