【问题标题】:Error installing lib on Ubuntu在 Ubuntu 上安装 lib 时出错
【发布时间】:2014-01-05 00:24:02
【问题描述】:

当运行命令 sudo apt-get install libstdc++ 我在 Ubuntu 上得到以下输出:

libstdc++6 is already the newest version.
libstdc++6-4.6-dev is already the newest version.
libstdc++6-4.6-dev set to manually installed.
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:
     libstdc++6-4.5-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-1ubuntu2 is to be installed
     libstdc++6-4.5-dbg-armel-cross : Conflicts: libstdc++6-4.4-dbg-armel-cross but 4.4.7-1ubuntu2cross1.52 is to be installed
 libstdc++6-4.5-dbg-armhf-cross : Conflicts: libstdc++6-4.4-dbg-armhf-cross but 4.4.7-1ubuntu2cross1.52 is to be installed
 libstdc++6-4.5-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-1ubuntu2 is to be installed
 libstdc++6-4.6-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-1ubuntu2 is to be installed
                      Conflicts: libstdc++6-4.5-dbg but 4.5.3-12ubuntu2 is to be installed
 libstdc++6-4.6-dbg-armel-cross : Conflicts: libstdc++6-4.4-dbg-armel-cross but 4.4.7-1ubuntu2cross1.52 is to be installed
                                  Conflicts: libstdc++6-4.5-dbg-armel-cross but 4.5.3-12ubuntu2cross1.61 is to be installed
 libstdc++6-4.6-dbg-armhf-cross : Conflicts: libstdc++6-4.4-dbg-armhf-cross but 4.4.7-1ubuntu2cross1.52 is to be installed
                                  Conflicts: libstdc++6-4.5-dbg-armhf-cross but 4.5.3-12ubuntu2cross1.61 is to be installed
 libstdc++6-4.6-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-1ubuntu2 is to be installed
                      Conflicts: libstdc++6-4.5-doc but 4.5.3-12ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

我已经运行了 showhold 命令 (apt-mark showhold) - 没有任何保留。

我该如何解决像这些4.4.7-1ubuntu2要安装这样的冲突?

谢谢 托马斯

【问题讨论】:

  • 同时运行 apt-get install 4.4.7-1ubuntu2 导致找不到包

标签: ubuntu installation packages apt-get


【解决方案1】:

有问题的软件包恰好已经安装。

libstdc++6 is already the newest version.
libstdc++6-4.6-dev is already the newest version.
libstdc++6-4.6-dev set to manually installed.

只需键入 apt-get install libstdc++ 就会尝试在包管理器上安装 libstdc++ 的每个版本(6.4.5 docs/debug,而当前版本实际上是 6.4.6)所以你应该具体说明哪个您要安装的软件包:

# apt-get install libstdc++6

【讨论】:

  • 您好,感谢您的回答,但是为什么Ubuntu会抛出诸如此类的错误:但是要安装4.4.7-1ubuntu2?
猜你喜欢
  • 1970-01-01
  • 2011-04-30
  • 1970-01-01
  • 2014-03-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多