Ubuntu 12.10:程序包libc6-dev-i386不可用
我正在32位Ubuntu 12.10上构建32位增强线程库。 构建时我得到错误/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
我搜索了这个问题,从阅读这个问题看来我需要安装libc6-dev-i386。 但是,当我运行sudo apt-get install libc6-dev-i386
我得到:
Package libc6-dev-i386 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libc6-dev-i386' has no installation candidate
任何人都可以帮我找到这个包吗?
编辑,更多信息:
我不确定这是否相关,但是uname -m -p -i
给出了i686 i686 i686
。
ls /usr/include/gnu/
给libc-version.h lib-names.h option-groups.h stubs-64.h stubs.h
。
ls /usr/include/i386-linux-gnu/gnu
给出libc-version.h lib-names.h option-groups.h stubs-32.h stubs.h
。
我将/usr/include/i386-linux-gnu
到$PATH
但它没有帮助,我在尝试构建32位boost线程库时仍然遇到同样的错误。
更多信息:
我现在用Ubuntu 12.04尝试了这个,我得到了完全相同的行为。 有了这个安装uname -i
给了i386
。
这可能不是正确的解决方案,但它会为您下载包。
在dash
键入“软件源”,然后将服务器更改为"Main server"
。 这是因为某些(其中一个可能是您的)不在其服务器上维护包。 请参阅下图,显示源已更改为“主服务器”。 然后做一个sudo apt-get update
,然后sudo apt-get install libc6-dev-i386
。 重复,这不是正确的解决方案,但可能会为您下载包。