ubuntu 12.04 x86-64 安装支持32位的库

在64位的linux下搭建android环境时 ,需要安装支持32位的库。

执行以下几个步骤:

1. sudo apt-get update

2.sudo apt-cache search ia32

    显示信息:

lenovo@ubuntu:~$ sudo apt-cache search ia32
[sudo] password for lenovo:
grub-efi - GRand Unified Bootloader, version 2 (dummy package)
grub-efi-ia32 - GRand Unified Bootloader, version 2 (EFI-IA32 version)
grub-efi-ia32-bin - GRand Unified Bootloader, version 2 (EFI-IA32 binaries)
lsb-core - Linux Standard Base 4.0 core support package
lsb-cxx - Linux Standard Base 4.0 C++ support package
lsb-desktop - Linux Standard Base 4.0 Desktop support package
lsb-graphics - Linux Standard Base 4.0 graphics support package
lsb-printing - Linux Standard Base 4.0 Printing package
microcode.ctl - Intel IA32/IA64 CPU Microcode Utility
elilo - Bootloader for systems using EFI-based firmware
ia32-libs - ia32 shared libraries - transitional package
lsb-languages - Linux Standard Base 4.0 Runtime Languages package
lsb-multimedia - Linux Standard Base 4.0 Multimedia package
lsb-qt4 - Linux Standard Base 4.0 Qt4 support package
refit - graphical boot menu for ia32 and x64 EFI systems
ia32-libs-multiarch - Multi-arch versions of former ia32-libraries

3.sudo apt-get install ia32-libs-multiarch ......  (安装搜索到的包)

本人实验经过上述3步,就可以了。如果还是不行的话,可以先更新源后,再执行上述三个步骤。

我的源文件的内容:

deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse

deb http://tw.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse

添加源:deb http://archive.ubuntu.com/ubuntu/ precise restricted main multiverse universe
deb-src archive.ubuntu.com/ubuntu/ precise restricted main multiverse universe #Added by software-properties
deb security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse #Added by software-properties
deb archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse #Added by software-properties

添加源的更新操作本人没有实际执行。

参考:http://askubuntu.com/questions/151725/couldnt-find-package-ia32-libs

         http://askubuntu.com/questions/143904/how-to-install-ia32-libs-on-12-04-lts-32-bit

猜你喜欢

转载自zhuruenzhe2011-163-com.iteye.com/blog/1618235