Не мог выполнить g ++ после обновления до Ubuntu 14.10

Я сделал обновление от Ubuntu 14.04 до Ubuntu 14.10 вчера. Сегодня я пытался выполнить g ++-4.8, как я обычно делаю, но у меня есть следующая ошибка:

make: g++-4.8: Command not found

У меня есть та же ошибка с g ++-4.9 или g ++. Я пытался установить g ++ снова:

sudo apt-get install g++

Но у меня есть следующее сообщение об ошибке:

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.9 (>= 4.6.4-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Затем я попробовал dist-обновление:

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libc6 libc6:i386 libc6-dbg valgrind
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

И установка-f:

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

но это ничего не изменило. Я произвел чистку gcc и существенный для сборки. Но у меня есть та же ошибка при попытке переустановить существенный для сборки:

sudo apt-get install build-essential
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:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:4.4.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Править: Я посмотрел на этот ответ, но он привел удаление к сбою пакета libc6:

romain@romain-N56VZ:~$ sudo apt-get remove --dry-run libc6
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:
 hunspell-fr : Depends: hunspell-fr-classical but it is not going to be installed or
                        hunspell-fr-modern but it is not going to be installed or
                        hunspell-fr-revised but it is not going to be installed or
                        hunspell-fr-comprehensive but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
0
задан 13 April 2017 в 05:24

1 ответ

Хорошо я зафиксировал его:

я удалил пакеты, которые вызывали ошибки, начиная valgrind:

sudo apt-get remove valgrind

и затем 3 других. И больше ошибок после этого.

0
ответ дан 6 October 2019 в 07:11

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

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