升级到Ubuntu 14.10后无法运行g ++

罗曼

我昨天做了从Ubuntu 14.04到Ubuntu 14.10的更新。今天,我尝试像往常一样运行g ++-4.8,但是出现以下错误:

make: g++-4.8: Command not found

我对g ++-4.9g ++有相同的错误我尝试再次安装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-upgrade

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和build-essential。但是,当我尝试重新安装build-essential时,我遇到了相同的错误:

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.
罗曼

好的,我修复了它:

我从valgrind开始删除了导致错误的软件包:

sudo apt-get remove valgrind

然后是其他3个 之后,再也没有错误。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

升级到IntelliJ 14后,Java和Scala ClassNotFoundException

来自分类Dev

从 Wildfly 10 升级到 Wildfly 14 Infinispan 问题

来自分类Dev

从14升级到Ubuntu 16后卡在fsck“ / dev / sda1:clean xxx / xxx files [...]”

来自分类Dev

从14升级到Ubuntu 16后卡在fsck“ / dev / sda1:清洁xxx / xxx文件[...]”

来自分类Dev

无法解析的主机/通过浏览器将12升级到14 Ubuntu / Net Connection正常

来自分类Dev

升级到Ubuntu 17.10后〜/ .profile无法运行

来自分类Dev

从13升级到14后无法执行su或sudo

来自分类Dev

升级到 NDK 14 后无法在 C++ 代码中找到声明

来自分类Dev

升级到Ubuntu 18.04后的Bootloop

来自分类Dev

无法升级到Ubuntu 14.04

来自分类Dev

升级到最新的Ubuntu无法启动

来自分类Dev

VirtualBox 从 Ubuntu 16.04 升级到 18.04 后不运行

来自分类Dev

升级到Ubuntu 13.10后KDevelop无法正常工作

来自分类Dev

升级到13.04后无法调整Ubuntu亮度

来自分类Dev

升级到Ubuntu 13.10后KDevelop无法正常工作

来自分类Dev

升级到Ubuntu 14.04后Rhythmbox无法启动

来自分类Dev

升级到Ubuntu 14.10后无法安装Skype

来自分类Dev

升级到Ubuntu 15.10后Unity无法正常工作

来自分类Dev

升级到ubuntu 14.04后,Eclipse无法自动完成

来自分类Dev

升级到16.04失败后,Ubuntu 14.04无法启动

来自分类Dev

升级到Ubuntu 15.10后无法通过ppsh SSH

来自分类Dev

升级到VirtualBox 5.2.6后无法登录Ubuntu来宾

来自分类Dev

升级到Ubuntu 16.04后,MariaDB无法启动

来自分类Dev

升级到ubuntu 16后无法管理设备

来自分类Dev

升级到ubuntu 16.04后无法打开VMware

来自分类Dev

升级到Ubuntu 17.10后无法读取系统字体

来自分类Dev

升级到18.04后无法启动ubuntu-desktop

来自分类Dev

升级到18.04后无法使用Ubuntu Dock

来自分类Dev

升级到 ubuntu 16.04 后无法解析 .htaccess 文件

Related 相关文章

  1. 1

    升级到IntelliJ 14后,Java和Scala ClassNotFoundException

  2. 2

    从 Wildfly 10 升级到 Wildfly 14 Infinispan 问题

  3. 3

    从14升级到Ubuntu 16后卡在fsck“ / dev / sda1:clean xxx / xxx files [...]”

  4. 4

    从14升级到Ubuntu 16后卡在fsck“ / dev / sda1:清洁xxx / xxx文件[...]”

  5. 5

    无法解析的主机/通过浏览器将12升级到14 Ubuntu / Net Connection正常

  6. 6

    升级到Ubuntu 17.10后〜/ .profile无法运行

  7. 7

    从13升级到14后无法执行su或sudo

  8. 8

    升级到 NDK 14 后无法在 C++ 代码中找到声明

  9. 9

    升级到Ubuntu 18.04后的Bootloop

  10. 10

    无法升级到Ubuntu 14.04

  11. 11

    升级到最新的Ubuntu无法启动

  12. 12

    VirtualBox 从 Ubuntu 16.04 升级到 18.04 后不运行

  13. 13

    升级到Ubuntu 13.10后KDevelop无法正常工作

  14. 14

    升级到13.04后无法调整Ubuntu亮度

  15. 15

    升级到Ubuntu 13.10后KDevelop无法正常工作

  16. 16

    升级到Ubuntu 14.04后Rhythmbox无法启动

  17. 17

    升级到Ubuntu 14.10后无法安装Skype

  18. 18

    升级到Ubuntu 15.10后Unity无法正常工作

  19. 19

    升级到ubuntu 14.04后,Eclipse无法自动完成

  20. 20

    升级到16.04失败后,Ubuntu 14.04无法启动

  21. 21

    升级到Ubuntu 15.10后无法通过ppsh SSH

  22. 22

    升级到VirtualBox 5.2.6后无法登录Ubuntu来宾

  23. 23

    升级到Ubuntu 16.04后,MariaDB无法启动

  24. 24

    升级到ubuntu 16后无法管理设备

  25. 25

    升级到ubuntu 16.04后无法打开VMware

  26. 26

    升级到Ubuntu 17.10后无法读取系统字体

  27. 27

    升级到18.04后无法启动ubuntu-desktop

  28. 28

    升级到18.04后无法使用Ubuntu Dock

  29. 29

    升级到 ubuntu 16.04 后无法解析 .htaccess 文件

热门标签

归档