Ubuntu 12.04 64bit 无法安装ia32-libs 解决方法

时间:2021-10-04 16:14:19

错误信息:

Html代码  Ubuntu 12.04 64bit 无法安装ia32-libs 解决方法
  1. junior@mediacenter:~$ sudo apt-get install ia32-libs  
  2. Reading package lists... Done  
  3. Building dependency tree         
  4. Reading state information... Done  
  5. Some packages could not be installed. This may mean that you have  
  6. requested an impossible situation or if you are using the unstable  
  7. distribution that some required packages have not yet been created  
  8. or been moved out of Incoming.  
  9. The following information may help to resolve the situation:  
  10.   
  11. The following packages have unmet dependencies:  
  12.  ia32-libs : Depends: ia32-libs-multiarch  
  13. E: Unable to correct problems, you have held broken packages.  
  14.   
  15.   
  16. junior@mediacenter:~$ sudo apt-get install ia32-libs-multiarch  
  17. Reading package lists... Done  
  18. Building dependency tree         
  19. Reading state information... Done  
  20. Some packages could not be installed. This may mean that you have  
  21. requested an impossible situation or if you are using the unstable  
  22. distribution that some required packages have not yet been created  
  23. or been moved out of Incoming.  
  24. The following information may help to resolve the situation:  
  25.   
  26. The following packages have unmet dependencies:  
  27.  ia32-libs-multiarch:i386 : Depends: gstreamer0.10-plugins-good:i386 but it is not going to be installed  
  28.                             Depends: gtk2-engines:i386 but it is not going to be installed  
  29.                             Depends: gtk2-engines-murrine:i386 but it is not going to be installed  
  30.                             Depends: gtk2-engines-pixbuf:i386 but it is not going to be installed  
  31.                             Depends: gtk2-engines-oxygen:i386 but it is not going to be installed  
  32.                             Depends: ibus-gtk:i386 but it is not going to be installed  
  33.                             Depends: libcanberra-gtk-module:i386 but it is not going to be installed  
  34.                             Depends: libcurl3:i386 but it is not going to be installed  
  35.                             Depends: libgail-common:i386 but it is not going to be installed  
  36.                             Depends: libglapi-mesa:i386 but it is not going to be installed  
  37.                             Depends: libglu1-mesa:i386 but it is not going to be installed  
  38.                             Depends: libgtk2.0-0:i386 but it is not going to be installed  
  39.                             Depends: libqt4-opengl:i386 but it is not going to be installed  
  40.                             Depends: librsvg2-common:i386 but it is not going to be installed  
  41.                             Recommends: libgl1-mesa-glx:i386 but it is not going to be installed  
  42.                             Recommends: libgl1-mesa-dri:i386 but it is not going to be installed  
  43. E: Unable to correct problems, you have held broken packages.  

 

解决方法:

Since ia32-libs is now a transitional wrapper package around the set of multiarch-enabled libraries that were previously shipped bundled in ia32-libs, all of these library packages must be installable. In a released version of Ubuntu (such as in the precise and precise-updates pockets), packages will always be individually installable; however, multiarch imposes an additional restriction on installability: the library package must be at the exact same version across all architectures that you are installing it for.

In one of the examples given here, the libcairo-gobject2 package is implicated. This package has recently been updated for 12.04 as an SRU; which means that trying to install ia32-libs requires the amd64 version of libcairo-gobject2 on your system to match the i386 version that will be downloaded.

To ensure you're getting the correct versions of all library packages, do the following:

  1. Launch Update Manager
  2. Choose Settings at the bottom of the window
  3. Under Updates, make sure that Recommended Updates (precise-updates) is selected.
  4. Click Check to scan for any new software updates
  5. Click Install Updates to ensure your existing packages are all up to date

If you currently have a broken package installed which depends on ia32-libs, this may ask to remove it. You should proceed with the removal and reinstall once the operation is completed. You should then be able to run

sudo apt-get install ia32-libs

to install ia32-libs, or download package from http://packages.ubuntu.com/ and

sudo dpkg -i /path/to/package.deb

sudo apt-get -f install

to install your package and automatically pull in ia32-libs as a dependency.

Note that ia32-libs is considered deprecated in any case. For most software, you should instead install the i386 version of the package and let it directly pull the i386 libraries that it needs as dependencies, instead of using ia32-libs which is a catch-all.

 

基本上就是更新完后就能安装了!