我正在使用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之间的区别是什么?
答案 0 :(得分:8)
libc6:i386是i386架构内核/系统的i386版libc。这适用于运行为i386系统构建的软件包,如果您尝试在amd64系统上使用i386软件包,则需要这些软件包。这称为multiarch。
libc6-i386是amd64系统的libc的32位开发包。这不是用于运行软件,而是用于编译和链接32位代码。