Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just upgrade to Ubuntu 11.10 x64 from Ubuntu 11.04 32bit. But I find a really annoying problem. When I drag executable from file explorer to shell, the shell says
bash: /home/fenfei/app/android-sdk-linux/platform-tools/adb: No such file or directory
it's jus over there. I also have problem executing .../java. So I delete java, and extract the java package again then execute it and it works. But for /home/fenfei/app/android-sdk-linux/platform-tools/adb that method doesn't work. All of them are marked as executable.

Anyone can help me?

share|improve this question
please add the output of `ls -ahl /home/fenfei/app/android-sdk-linux/platform-tools/adb' to your question. – xubuntix Oct 29 '11 at 11:41

If you don't want to fill the computer up with i386 libs that you don't need.

For adb you just need:

sudo apt-get install libc6:i386 libstdc++6:i386

For aapt you need to add:

sudo apt-get install zlib1g:i386

You can see all the libs needed for an executable by running:

objdump -x .../adb | grep NEEDED

Some guesswork and searching is still needed to find the packages containing those files. The "Search the contents of packages" of is a good place to do that. Remember to add i386 as the architecture.

share|improve this answer
Thanks, objdump helped me find missing dependencies in application I was trying to run. – Ash Feb 23 '13 at 10:13
Thanks for mentioning objdump. – kar Jul 13 '13 at 15:03
Awesomely helpful. I'm not sure how you got those libraries out of the objdump output, though. – wulftone Sep 18 '13 at 22:52
This is the only method that worked on 13.10. I noticed that I didn't need libncurses5:i386 though. – phunehehe Oct 27 '13 at 7:21
Worked for me on Ubuntu 14.04. Don't forget to run sudo dpkg --add-architecture i386 && sudo apt-get update before – Morgan Courbet Apr 20 '14 at 18:38

The message "no such file or directory" is displayed because there is a missing shared library. You can see these with the ldd command:

ldd /home/fenfei/app/android-sdk-linux/platform-tools/adb

Probably you are missing the 32 bit libs. You have to install:

apt-get install ia32-libs

On Ubuntu 13-10, ia32-libs is no longer available; instead, install the replacement packages:

apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
share|improve this answer
Thank you very much. This is exactly the problem. Because android sdk doesn't have x64 version for linux. The adb works fine after installing ia32-libs – Fenfei Oct 30 '11 at 4:37
I always forget this after installing the SDK! – David Cesarino Apr 26 '13 at 17:44
13.10 doesn't seem to have ia32-libs or ia32-libs-multiarch – phunehehe Oct 27 '13 at 7:20

Kenno's observations could be useful for those who like me have had ia32-libs installed:

sudo apt-get install --reinstall libc6-i386

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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