窓10のubuntuをg ++の問題が依存が発生し、インストールが付属しています:G ++ - 4.8(> = 4.8.2-5〜)が、それをインストールするつもりはありません

 窓10バージョンのUbuntuが付属しています 

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

 

sudo apt-get install g++
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++-4.8 (>= 4.8.2-5~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

私が遭遇したこの問題を解決するためのすべての以下の溶液を充填穴の背後に同じ問題が発生して人々を容易にリストされています。

 

1、GCCのインストールバージョン4.8をアンインストールし、再インストール5

 

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

これは、第三段階のエラーが動作しません。

The following packages have unmet dependencies:
 g++-5 : Depends: libstdc++-5-dev (= 5.5.0-12ubuntu1~16.04) but it is not going to be installed
         Depends: libisl15 (>= 0.15) but it is not installable
 gcc-5 : Depends: cpp-5 (= 5.5.0-12ubuntu1~16.04) but it is not going to be installed
         Depends: binutils (>= 2.26.1) but 2.24-5ubuntu14.2 is to be installed
         Depends: libisl15 (>= 0.15) but it is not installable
         Recommends: libc6-dev (>= 2.13-0ubuntu6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

apt-getのの原則を見て、彼は自動的にすべての依存関係を取得しますが、理由は、パッケージのバージョンにつながった問題の原因が自動的にインストールされません何のため、別のソースを試してみてください

清華大学の他のソースで

https://blog.csdn.net/paincupid/article/details/52895676

还是报错E:いくつかのアーカイブを取得できません、多分更新をapt-getのか--fix欠損してみてください実行しますか?

山東大学の他のソースで

またはエラー

以下のパッケージが満たされていない依存関係を持っている:
 ++ G - 5:依存:にlibstdc ++ - 5-devの(=〜16.04 5.5.0-12ubuntu1)が、それをインストールする予定がない
 のgcc-5:依存:binutilsのを(> = 2.26.1) 2.24-5ubuntu14.2インストールされるが、
         提案libc6-devを(> = 2.13-0ubuntu6)が、それをインストールするつもりはないされていますお勧めします
E:問題を修正することができません、あなたは壊れたパッケージを開催しています。

 

アリの変更ソース

E:http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/pool/main/g/gcc-5/cpp-5_5.5.0-12ubuntu1~16.04_amd64.debハッシュサム不一致の取得に失敗しました

E:いくつかのアーカイブを取得できません、多分更新をapt-getのか--fix欠損してみてください実行しますか?

 

外観を更新

apt-getの更新--fix、行方不明

上書きインストールするプロンプトを再インストールします

須藤はapt-getのインストールのgcc-5グラム++ - 5

sudo apt-get install gcc-5 g++-5
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-5 is already the newest version (5.5.0-12ubuntu1~16.04).
gcc-5 is already the newest version (5.5.0-12ubuntu1~16.04).
The following packages were automatically installed and are no longer required:
  gcc-4.8 libasan0 libgcc-4.8-dev libplymouth2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 260 not upgraded.

 

 

インストールノードjsが、まだグラムを見つけることができません思い出さ++

https://www.cnblogs.com/tianhei/p/7430050.html  チュートリアルnodejsインストール

make[1]: g++: Command not found
make[1]: *** [/root/node-v6.11.2/out/Release/obj.target/icuucx/deps/icu-small/source/common/appendable.o] Error 127
make[1]: Leaving directory `/root/node-v6.11.2/out'
make: *** [node] Error 2

 

そして、それはgccが再インストールインストールapt-getを実行します

また、再インストール++グラムをインストールapt-getを実行し、また成功を促した。Nodejsが、その後スタートを行うことができます

 

言い換えれば、問題の性質またはソース理由

 

 

 

 

 

 

おすすめ

転載: blog.csdn.net/gs80140/article/details/89541655