I have some issues in running android sdk(ADB) on ubuntu 32-bit. I downloaded and updated sdk on ubuntu 14.02 64-bit, and now reusing it on ubuntu 15.10 32-bit. But when i try ./adb devices on terminal, i get this error:

bash: ./adb: cannot execute binary file: Exec format error

I just want to ask that, is Android SDK work on ubuntu 32-bit?


3 Answers 3


Finally get it here. https://stackoverflow.com/a/19102096/5070449

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/platformtools/fastboot

3) That it. Now run

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
  • In ubuntu, if you are trying to run ./adb from terminal and get Error: "error while loading shared libraries: libcrypto.so.1.0.0" The above solution will also work for this problem. Dec 15, 2016 at 8:29
  • 1
    there is a small typo in the latter command in second point, it is cp /usr/bin/fastboot <path-to-your-adt-sdk-package>/sdk/platform-tools/fastboot
    – Yoganand.N
    Apr 28, 2017 at 3:41

The platform tools now only consist tools for 64 bit architecture. To fix this issue, you need to download platform-tools r23.0.1 which are for 32 bit architecture which can be found at Google's repository here.
Once you download it, simply go to your Sdk folder and replace the content of platform-tools folder there with the content of downloaded platform-tools folder. It should work like a charm right away.

NOTE- You might want to backup previous platform-tools folder.

Source: https://code.google.com/p/android/issues/detail?id=196866

  • It best soluation...
    – A1Gard
    Nov 4, 2016 at 22:14
  • @MahdiParsa which processor do you use? Nov 4, 2016 at 23:47
  • Download this dl-ssl.google.com/android/repository/… repo and replace with Ubuntu nilarimogard/webupd8 adb and fastboot. because I user Ubuntu 32bit :)
    – A1Gard
    Nov 4, 2016 at 23:55
  • @MahdiParsa Well I wanted to say that if you're using any i series processor then you might as well switch to a 64bit OS so you don't miss out on the newest SDKs Nov 4, 2016 at 23:56
  • I am using ubuntu 32 bit and when followed above step .. still could not run adb. cannot execute binary file: Exec format error.
    – Sajal
    Oct 25, 2017 at 6:29

Normal Installation - Current (64bit only)

Try freshly downloading and freshly install the Android SDK package. This is probably what you originally did on your x64 system. On that install it configured it for your x64. Performing the same steps should configure it for your 32bit Ubuntu installation.

Archived SDK (I386)

I checked the installation of the current sdk as provided by Google (developer.android.com). Because there weren't any specifics referring to i386 or x64 architecture, I assumed the install would recognize the installation type and configure binaries accordingly. I tested what I provided and it appears the official current download only works with x64. The latest 32bit I could find (provided by Google) is an archive. You can find it at Android SDK Package (i386) - Older Release.

  • 1
    i install new sdk and update it. but still same error ~/android-sdk-linux/platform-tools# ./adb bash: ./adb: cannot execute binary file: Exec format error Dec 17, 2015 at 12:45
  • @IBRARAHMAD After the install (which is simply extracting the download to a unique place). Did you go to your extracted folder and run ./android. It's the ./android command which will complete the install and setup. After the install, then you'll have access to the tools... the sdk. Be sure to have the extracted folder different from the previous install from the 64bit OS. If you continue to have problems, I'll perform a clean install to 32 bit Ubuntu and add the formatted steps performed to my answer. Dec 17, 2015 at 14:13
  • @IBRARAHMAD I updated my answer after testing an install on a 32bit ubuntu installation. Dec 17, 2015 at 18:31
  • Such a disrespectful gesture from google. Can't believe they dropped support for huge part of developers
    – ruX
    Jan 22, 2016 at 15:32

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.