我正在尝试安装 ia32-libs,我尝试了几乎所有命令来安装此包,但总是出现错误。以下是我迄今为止尝试过的方法;
sudo apt-get 安装 ia32libs
orkun@ubuntu:~$ sudo apt-get install ia32libs
[sudo] password for orkun:
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'ferramroberto-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ferramroberto-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ferramroberto-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package ia32libs
。
sudo apt-get 安装软件包名称:i386
orkun@ubuntu:~$ sudo apt-get install package-name:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'ferramroberto-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ferramroberto-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package package-name
。
下载这打包并尝试这些命令;
sudo dpkg -i «软件包名称>
orkun@ubuntu:~/İndirilenler$ sudo dpkg -i ia32-libs_20090808ubuntu36_amd64.deb
(Reading database ... 151309 files and directories currently installed.)
Preparing to replace ia32-libs 20090808ubuntu36 (using ia32-libs_20090808ubuntu36_amd64.deb) ...
Unpacking replacement ia32-libs ...
dpkg: dependency problems prevent configuration of ia32-libs:
ia32-libs depends on ia32-libs-multiarch; however:
Package ia32-libs-multiarch is not installed.
dpkg: error processing ia32-libs (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ia32-libs
答案1
听起来你的 APT 没有 i386 外部架构。我不知道为什么人们会遇到这种情况……
尝试:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs
答案2
完全是新手,所以我怀疑这有不是被忽视了,但看起来你的第一行代码中缺少一个“-”。
sudo apt-get install ia32-libs
我刚刚在 Ubuntu 12.10 x86 上安装了“ia32-libs”,如上所述,用于 JDK7u9 和 NetBeans IDE 7.2.1 安装(显然没有 64 位捆绑包)。
答案3
我一开始也遇到了同样的问题。然后我尝试了几种方法来解决它。有效的方法如下:
- 确保您在“软件源”中选择的服务器是“主服务器”。
- 使用 搜索所有以“lib32”开头的软件包
apt-cache search lib32
。 - 安装列表中的每个软件包,且不带任何“-dbg”或“-dev”后缀。
- 然后您可以尝试再次安装“ia32-libs”。
这对我有用。希望它能有所帮助。
答案4
下载并安装https://packages.debian.org/wheezy/amd64/libc6-i386/download
sudo apt-get -f 安装
然后执行以下命令:
sudo dpkg --add-architecture i386
sudo apt-get 更新
sudo apt-get 安装 ia32-libs