13

My laptop has Ubuntu 14.04 as OS. I installed latest version of "android-adb-tools" available in "Synaptic Package Manager". After installation, adb command --help says that adb's version is 1.0.31.

I used adb sideload to install a new ROM on my Samsung device (with TWRP version 2.8.4.0 as recovery), but command returns error: protocol fault (no status) and TWRP says that I have to use adb with version 1.0.32 or higher! Where i could find "android-adb-tools" package with adb version of 1.0.32 or higher?

7

Download and untar

https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz

After this, just copy the extracted executable "adb" over old one in /usr/bin.

  • 3
    This works but not the best solution, hopefully an updated repo shows up somewhere... – Toby J Mar 13 '15 at 14:25
  • 3
    It's better not to muddle with your repo-installed files in /usr/bin. Just put the file somewhere new. Make a /bin folder in your home directory. Add it to your path if you want this version of adb to be chosen automatically. – Drew Dormann May 24 '15 at 0:52
  • @TobyJ: that would be nice, but as of now, no more recent package shows up at ubuntuupdates.org/… – mc0e Sep 4 '15 at 17:20
3

You should download the Android SDK and use it to install the Android SDK Tools, which includes adb and fastboot.

1

Uninstall old adb. Get this,

https://packages.debian.org/sid/android-tools-adb

Install android-tools-adb and its dependencies manually from the above link, (sudo dpkg -i xxxxxxx.deb)

This will install adb with version 1.0.32 . Hope this helps.

  • But I have latest version of android-tools-adb : 4.2.2+git20130218-3ubuntu23 and adb version results in Android Debug Bridge version 1.0.31 – PHP Learner Feb 22 '16 at 8:35
  • android-tools-adb 4.2.2xxxxx package consists of adb with version 1.0.31. You have to download and install android-tools-adb 5.1.1xxx along with its dependencies manually from the above link that I have provided. Then you will be having adb version 1.0.32 installed. – Goutham Rapol May 5 '16 at 15:19
0

The other option is to install a recovery that doesn't require the new version of adb. I install CWM and was able to get around it this way.

0

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Then install adb and fastboot:

$ sudo apt-get install android-tools-adb android-tools-fastboot

Then follow this guide:

$ wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
$ sudo mv adb /usr/bin/adb
$ sudo chmod +x /usr/bin/adb
$ adb version
  • For 64-bit Lubuntu, the command you provided to install the 32-bit libraries failed, but I found that you can download a 64-bit version of the platform tools (which includes adb and fastboot) here: developer.android.com/studio/releases/…. – schulwitz Sep 9 '17 at 17:54
  • Since my answer, few things changed. after sudo apt-get install android-tools-adb android-tools-fastboot you should be fine. – FPU Mar 10 '18 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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