12

I looked on this site for this error I'm encountering:

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).

I've used this command on the terminal provided from this topic.

Android SDK on a 64-bit linux machine

EDIT: I've tried using this command on terminal:

sudo apt-get install ia32-libs

Sadly, it did nothing and it showed this:

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
10
  • 1
    What happens if you enter this command: /home/ariel/Downloads/adt-bundle-linux-x86_64/sdk/platform-tools/adb
    – Jon Willis
    Jan 20, 2013 at 3:17
  • 1
    Do: $ sudo apt-get update; apt-cache search ia32-libs; to see if the libs are found Jan 20, 2013 at 5:06
  • 1
    Is it because I have ubuntu 64 bit? I tried everything including this developer.android.com/sdk/installing/index.html I wanted to use linux because I want to focus on programming and to stay a way from distractions(games). Jan 20, 2013 at 5:18
  • 1
    adb is an executable, not a directory. why were you trying to cd into it?
    – Jon Willis
    Jan 20, 2013 at 7:53
  • 1
    Welcome to unix-like-land. I think you'll learn to love it. Cheers
    – Jon Willis
    Jan 20, 2013 at 8:17

4 Answers 4

31

I had the same problem, but it's fine now with these commands :

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

for running the emulator you need that additional package:

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

then install ia32-libs:

*apt-get install ia32-libs

2
  • 10
    This worked for me on 13.10, but I had to use sudo apt-get install lib32z1 instead of ia32-libs at the end.
    – ross
    Jan 25, 2014 at 19:51
  • @ross with the assist... this is confirmed on Xubuntu 14.04 64bit too
    – guyfromfl
    Feb 5, 2015 at 1:55
4

You need to add i386 packages to apt

dpkg --add-architecture i386
2

I just used

sudo apt-get install lib32bz2-1.0
1

For this problem, one may try :

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.