ubuntu - libc6 :i386 and libc6-i386有什么区别

标签 ubuntu libc

我正在使用 Ubuntu 14.04.2 LTS\n\l

这是我安装的libc

$ dpkg --list | grep libc6
ii  libc6:amd64                                           2.19-0ubuntu6.7                                     amd64        Embedded GNU C Library: Shared libraries
ii  libc6-dbg:amd64                                       2.19-0ubuntu6.7                                     amd64        Embedded GNU C Library: detached debugging symbols
ii  libc6-dev:amd64                                       2.19-0ubuntu6.7                                     amd64        Embedded GNU C Library: Development Libraries and Header Files
ii  libc6-i386                                            2.19-0ubuntu6.7                                     amd64        Embedded GNU C Library: 32-bit shared libraries for AMD64
rc  libc6-x32                                             2.19-0ubuntu6.7                                     amd64        Embedded GNU C Library: X32 ABI Shared libraries for AMD64

但是当我执行 $ sudo apt-get install libdbus-1-3:i386

出现以下错误

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:
 libdbus-1-3:i386 : Depends: libc6:i386 (>= 2.10) but it is not going to be installed
 unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
                        Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我想知道 libc6:i386 和 libc6-i386 之间有什么区别?

最佳答案

libc6:i386 是 i386 架构内核/系统的 libc 的 i386 版本。这是为了运行为 i386 系统构建的包,如果您尝试在 amd64 系统上使用 i386 包,则需要这样做。这称为多架构。

libc6-i386是libc为amd64系统开发的32位开发包。这不是用于运行软件,而是用于编译和链接 32 位代码。

关于ubuntu - libc6 :i386 and libc6-i386有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37313639/

相关文章:

ubuntu - Ubuntu系统中链接动态库时 undefined reference

eclipse 不适用于 ubuntu 16.04

c - 如何获取操作系统提供的 dlopen()/dlsym() 地址

c++ - 乌类图 E : Sub-process/usr/bin/dpkg returned an error code (1)

linux - 重写编译对象的共享库undef符号版本

python - 使用 python ctypes 和 libc 将 void 指针写入二进制文件

node.js - 如何在启动时启动 node.js+supervisor?

ubuntu - 无法在 Docker 镜像中配置语言环境

从崩溃的服务器中恢复 MySQL 表

c - 如何在 linux 上查看 wordsize