5

I installed Ubuntu 11.10, installed GNOME 3 (replaced Unity), installed Eclipse from the Ubuntu Software Center, installed the android sdk and ADT.

Now when I start eclipse I get a message saying:

Failed to get ADB version : Cannot run program 
/home/ayush/android-sdk/platform-tools/adb":java.io.IOException:error=2,
No such file or directory

What is causing this error and how do I fix it?

Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335
Ayush
  • 709
  • 2
  • 8
  • 17
  • 3
    Is the path correct? For example, if you run `ls -l /home/ayush/android-sdk/platform-tools/adb` do you get the details of the file or `ls: cannot access /home/ayush/android-sdk/platform-tools/adb: No such file or directory`? If i remember correctly, the default install folder is `~/android-sdk-linux/` – onik Mar 05 '12 at 11:51

6 Answers6

9

The command to install IA32 libraries on Ubuntu is:

apt-get install ia32-libs
ChuanRocks
  • 1,528
  • 1
  • 16
  • 22
  • 1
    well, this is incredible - ADT-bundle says it contains everything - but it doesn't - ia32-libs for one, java for another – SvenDowideit Nov 18 '12 at 05:27
  • 2
    this does not work anymore, see http://stackoverflow.com/questions/14421171/adb-error-on-android-sdk-using-linux-ubuntu-64-bit-12-10 – Andrzej Rehmann Oct 27 '13 at 15:15
4
sudo dpkg --add-architecture i386
sudo apt-get update
apt-get install ia32-libs
Peter
  • 41
  • 1
1

Before that please check your ubuntu version. if you are running with 64 bits, you need to install a linux emulator, IA32 bit I thinks. Verify on Google.

after that, your ADB can run easily on ubuntu.

0

I'm using Fedora 17 and I got the same error as the poster:

[2013-08-29 21:44:08 - adb] Unexpected exception 'Cannot run program 
"/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb": 
error=2, No such file or directory' while attempting to get adb version from 
'/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb'

I know this works if you are using Fedora 17/18 (login as root)

yum install redhat-lsb.i686

And then restart the IDE and the errors no longer show.

Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335
0

I had the exact same error as you had, but on my Ubuntu 12.04 LTS version.

The following avoided that error for me:

1) Install 'adb' and 'fastboot' provided by the following third-party PPA.

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot

2) Replace the copy of 'adb' and 'fastboot' provided by the official Android SDK with those installed from the above step:

cp /usr/bin/adb <path-to-your-adt-sdk-package>/sdk/platform-tools/adb
cp /usr/bin/fastboot <path-to-your-adt-sdk-package>/sdk/platform-tools/fastboot

3) Restart(re-execute) your eclipse binary.

Full credits:

http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html

They have the binaries for 12.10, 11.10 and 11.04 as well.

Rocky Inde
  • 1,511
  • 1
  • 20
  • 27
0

Don't try to install ia32-libs, this library has been obsoleted. So, you should install these libraries:

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

Cheers

Agna JirKon Rx
  • 2,321
  • 2
  • 29
  • 44