Ubuntu14.04 не может установить g ++

Моя компьютерная среда: Ubuntu 14.04, ОС на 64 бита; версия gcc: версия 4.8.4 gcc (4.8.4-2ubuntu1~14.04 Ubuntu)

Я пытался установить g ++ путем выполнения:

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
задан 23 September 2015 в 14:24

1 ответ

Необходимо включить trusty-updates. Открытое программное обеспечение & Обновления и набор гуща для trusty-updates на вкладке

enter image description here

Обновлений После этого

sudo apt-get update
sudo apt-get install --reinstall g++
1
ответ дан 7 December 2019 в 16:09

Другие вопросы по тегам:

Похожие вопросы: