Linux

安裝“ia32-libs”以執行 ADB 和 Fastboot Linux Mint 16“Petra”時出錯

  • April 6, 2019

我一直在嘗試讓adb,fastbootavd其他人使用最新版本的 Linux Mint (16 “Petra”)

我最初在嘗試執行 ADB 時遇到此錯誤:

➜  platform-tools  ./adb
./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

環顧四周後,我發現建議說您需要安裝 32 位兼容性庫。

因此,我嘗試安裝 package ia32-libs,但是失敗了。

➜  ~  sudo apt-get install ia32-libs                                   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
ia32-libs : 
        Depends: bluez-alsa:i386 but it is not going to be installed
        Depends: gstreamer0.10-plugins-base:i386 but it is not going to be installed
        Depends: gstreamer0.10-plugins-good:i386 but it is not going to be installed
        Depends: gtk2-engines:i386 but it is not going to be installed
        Depends: gtk2-engines-murrine:i386 but it is not going to be installed
        Depends: gtk2-engines-oxygen:i386 but it is not going to be installed
        Depends: gtk2-engines-pixbuf:i386 but it is not going to be installed
        Depends: gvfs:i386 but it is not going to be installed
        Depends: ibus-gtk:i386 but it is not going to be installed
        Depends: libacl1:i386 but it is not going to be installed
        Depends: libao4:i386 but it is not going to be installed
        Depends: libasound2:i386
        Depends: libasound2-plugins:i386 but it is not going to be installed
        Depends: libasyncns0:i386 but it is not going to be installed
        Depends: libattr1:i386 but it is not going to be installed
        Depends: libaudio2:i386 but it is not going to be installed
        Depends: libcanberra-gtk-module:i386 but it is not going to be installed
        Depends: libcap2:i386 but it is not going to be installed
        Depends: libcapi20-3:i386 but it is not going to be installed
        Depends: libcups2:i386 but it is not going to be installed
        Depends: libcupsimage2:i386 but it is not going to be installed
        Depends: libcurl3:i386 but it is not going to be installed
        Depends: libdbus-glib-1-2:i386 but it is not going to be installed
        Depends: libesd0:i386 but it is not going to be installed
        Depends: libfontconfig1:i386 but it is not going to be installed
        Depends: libfreetype6:i386 but it is not going to be installed
        Depends: libgail-common:i386 but it is not going to be installed
        Depends: libgconf-2-4:i386 but it is not going to be installed
        Depends: libgdbm3:i386 but it is not going to be installed
        Depends: libgettextpo0:i386 but it is not going to be installed
        Depends: libglapi-mesa:i386 but it is not going to be installed
        Depends: libglu1-mesa:i386 but it is not going to be installed
        Depends: libgphoto2-6:i386 but it is not going to be installed
        Depends: libgphoto2-port10:i386 but it is not going to be installed
        Depends: libgtk2.0-0:i386 but it is not going to be installed
        Depends: libmpg123-0:i386 but it is not going to be installed
        Depends: libncursesw5:i386 but it is not going to be installed
        Depends: libnspr4:i386 but it is not going to be installed
        Depends: libnss3:i386 but it is not going to be installed
        Depends: libodbc1:i386 but it is not going to be installed
        Depends: libopenal1:i386 but it is not going to be installed
        Depends: libpulse-mainloop-glib0:i386 but it is not going to be installed
        Depends: libpulsedsp:i386 but it is not going to be installed
        Depends: libqt4-dbus:i386 but it is not going to be installed
        Depends: libqt4-network:i386 but it is not going to be installed
        Depends: libqt4-opengl:i386 but it is not going to be installed
        Depends: libqt4-qt3support:i386 but it is not going to be installed
        Depends: libqt4-script:i386 but it is not going to be installed
        Depends: libqt4-scripttools:i386 but it is not going to be installed
        Depends: libqt4-sql:i386 but it is not going to be installed
        Depends: libqt4-svg:i386 but it is not going to be installed
        Depends: libqt4-test:i386 but it is not going to be installed
        Depends: libqt4-xml:i386 but it is not going to be installed
        Depends: libqt4-xmlpatterns:i386 but it is not going to be installed
        Depends: libqtcore4:i386 but it is not going to be installed
        Depends: libqtgui4:i386 but it is not going to be installed
        Depends: libqtwebkit4:i386 but it is not going to be installed
        Depends: librsvg2-common:i386 but it is not going to be installed
        Depends: libsane:i386 but it is not going to be installed
        Depends: libsdl-image1.2:i386 but it is not going to be installed
        Depends: libsdl-mixer1.2:i386 but it is not going to be installed
        Depends: libsdl-net1.2:i386 but it is not going to be installed
        Depends: libsdl-ttf2.0-0:i386 but it is not going to be installed
        Depends: libsdl1.2debian:i386 but it is not going to be installed
        Depends: libsqlite3-0:i386 but it is not going to be installed
        Depends: libssl0.9.8:i386 but it is not going to be installed
        Depends: libssl1.0.0:i386 but it is not going to be installed
        Depends: libstdc++5:i386 but it is not going to be installed
        Depends: libstdc++6:i386 but it is not going to be installed
        Depends: libxaw7:i386 but it is not going to be installed
        Depends: libxml2:i386 but it is not going to be installed
        Depends: libxp6:i386 but it is not going to be installed
        Depends: libxslt1.1:i386 but it is not going to be installed
        Depends: libxss1:i386 but it is not going to be installed
        Depends: libxtst6:i386 but it is not going to be installed
        Depends: odbcinst1debian2:i386 but it is not going to be installed
        Depends: xaw3dg:i386 but it is not going to be installed
        Depends: libgl1-mesa-dri:i386 but it is not going to be installed
        Depends: libgl1-mesa-glx:i386 but it is not going to be installed
        Depends: libpam-winbind:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

任何幫助將不勝感激。

編輯:按照 Rmano 的建議執行此程序後:sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386我收到有關未滿足的依賴項的錯誤:

➜  ~  sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
[sudo] password for insanity: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
libgcc1 : Breaks: libgcc1:i386 (!= 1:4.8.1-10ubuntu9) but 1:4.8.1-10ubuntu8 is to be installed
libgcc1:i386 : Depends: gcc-4.8-base:i386 (= 4.8.1-10ubuntu8) but it is not going to be installed
           Breaks: libgcc1 (!= 1:4.8.1-10ubuntu8) but 1:4.8.1-10ubuntu9 is to be installed
libstdc++6:i386 : Depends: gcc-4.8-base:i386 (= 4.8.1-10ubuntu8) but it is  not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused  by held packages.

編輯2:似乎我必須降級到舊版本的視圖核心工具,但是,我不確定這是一個安全的想法。

最後我重新安裝了Linux。但是,降級軟體包效果很好。

我沒有安裝 Mint,所以這只是一個猜測。在較新的 Ubuntu(和衍生)系統中,不推薦使用 ia32-libs。

也許你可以通過發出來解決你的問題

sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386

正如您在 https://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package>中所建議的那樣。<https://askubuntu.com/questions/359156/how-do-you-run-a-32-bit-program-on-a-64-bit-version-of-ubuntu中的更多資訊。

引用自:https://unix.stackexchange.com/questions/107688