Android SDK上的adb错误。使用Linux Ubuntu 64 bit 12.10

时间:2013-01-20 02:37:35

标签: android linux ubuntu-12.10

我在这个网站上看到了我遇到的这个错误:

Stopping ADB server failed (code -1).
Unable to run 'adb': Cannot run program "/home/ariel/Downloads/adt-bundle-linux-x86_64/sdk/platform-tools/adb": error=2, No such file or directory.
Starting ADB server failed (code -1).

我在本主题提供的终端上使用了此命令。

Android SDK on a 64-bit linux machine

编辑: 我试过在终端上使用这个命令:

sudo apt-get install ia32-libs

可悲的是,它什么也没做,它表明了这一点:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libc6-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-i386' has no installation candidate

4 个答案:

答案 0 :(得分:31)

我遇到了同样的问题,但现在使用这些命令就可以了:

* sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

要运行模拟器,您需要额外的包:

* sudo apt-get install libsdl1.2debian:i386

然后安装ia32-libs:

* apt-get install ia32-libs

答案 1 :(得分:3)

您需要将i386软件包添加到apt

dpkg --add-architecture i386

答案 2 :(得分:2)

我刚用过

sudo apt-get install lib32bz2-1.0

答案 3 :(得分:1)

对于这个问题,可以尝试:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5