How do I set up Android ADB?












20














My computer is a Sys76 Lemur running Maverick, and my phone is a Nexus S running stock Gingerbread. I want to set up to use ADB (android debug bridge). I installed the Android SDK per instructions on the SDK website, but ADB doesn't work. Can someone help me with directions that are specific to Ubuntu?










share|improve this question
























  • As of October 2017, all other answers are outdated. You can download ADB and fastboot directly from developer.android.com.
    – Dan Dascalescu
    Oct 15 '17 at 0:26
















20














My computer is a Sys76 Lemur running Maverick, and my phone is a Nexus S running stock Gingerbread. I want to set up to use ADB (android debug bridge). I installed the Android SDK per instructions on the SDK website, but ADB doesn't work. Can someone help me with directions that are specific to Ubuntu?










share|improve this question
























  • As of October 2017, all other answers are outdated. You can download ADB and fastboot directly from developer.android.com.
    – Dan Dascalescu
    Oct 15 '17 at 0:26














20












20








20


4





My computer is a Sys76 Lemur running Maverick, and my phone is a Nexus S running stock Gingerbread. I want to set up to use ADB (android debug bridge). I installed the Android SDK per instructions on the SDK website, but ADB doesn't work. Can someone help me with directions that are specific to Ubuntu?










share|improve this question















My computer is a Sys76 Lemur running Maverick, and my phone is a Nexus S running stock Gingerbread. I want to set up to use ADB (android debug bridge). I installed the Android SDK per instructions on the SDK website, but ADB doesn't work. Can someone help me with directions that are specific to Ubuntu?







software-installation adb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 '14 at 20:37









landroni

4,23462249




4,23462249










asked Apr 12 '11 at 14:46









bigcat42bigcat42

5014713




5014713












  • As of October 2017, all other answers are outdated. You can download ADB and fastboot directly from developer.android.com.
    – Dan Dascalescu
    Oct 15 '17 at 0:26


















  • As of October 2017, all other answers are outdated. You can download ADB and fastboot directly from developer.android.com.
    – Dan Dascalescu
    Oct 15 '17 at 0:26
















As of October 2017, all other answers are outdated. You can download ADB and fastboot directly from developer.android.com.
– Dan Dascalescu
Oct 15 '17 at 0:26




As of October 2017, all other answers are outdated. You can download ADB and fastboot directly from developer.android.com.
– Dan Dascalescu
Oct 15 '17 at 0:26










5 Answers
5






active

oldest

votes


















21














Install adb & fastboot via PPA



You can install from the WebUpd8 PPA which support both 32-bit and 64-bit. Granted you can install directly from google. But I prefer to use PPAs to keep everything up to date.
Works for Ubuntu 11.04, 11.10 and 12.04.



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


Source: Install ADB And Fastboot Android Tools In Ubuntu Via PPA



Install Android SDK via PPA




If you want to install the SDK which will allow you to update everything you can install via the upubuntu ppa.




So first thing is to add the ppa.



sudo add-apt-repository ppa:upubuntu-com/sdk
sudo apt-get update
sudo apt-get install android-sdk


Only issue at this point is that android-sdk needs to be run as root. Well the link in the menu didn't do much. So I updated the link in the menu, you can also run:



gksu android-sdk


From there you will need to install "Android SDK Platform-Tools" I also recommend updating "Android SDK Tools". You can deselect anything else you don't need.



Now you will need to set your environmental variables.

First you will need to make everything executable.



sudo chmod -R 755 /root/android-sdk-linux


Now to add the variables.



nano ~/.bashrc


Add these lines (at the top)



#AndroidDev PATH
export PATH=${PATH}:/root/android-sdk-linux/tools
export PATH=${PATH}:/root/android-sdk-linux/platform-tools


Source: Install Android SDK Manager (Revision 20) From PPA On Ubuntu 12.04/Linux Mint 13


Source: AndroidSDK - Community Ubuntu Documentation






share|improve this answer























  • It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
    – BuZZ-dEE
    Sep 25 '12 at 0:19










  • Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
    – mywebslave
    Sep 25 '12 at 1:41










  • Yes, if anyone wants to install it, but in this case the question was how to set up after install.
    – BuZZ-dEE
    Sep 25 '12 at 1:48






  • 1




    none of this worked for me on 16.04. gksu did nothing other than ask for a password
    – mango
    Jul 1 '16 at 7:32








  • 1




    nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
    – abumalick
    Jan 5 '17 at 8:11





















12














Ubuntu 14.04+



Since Trusty the android-tools-adb and android-tools-fastboot packages in the Universe repository provide, respectively, adb and fastboot.



To install them:




  • Enable the Universe repository: sudo add-apt-repository universe

  • Update the APT cache: sudo apt-get update


To install adb:



sudo apt-get install android-tools-adb


To install fastboot:



sudo apt-get install android-tools-fastboot





share|improve this answer





















  • What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
    – Dan Dascalescu
    Oct 15 '17 at 0:09



















3














I'm only guessing but perhaps you need to make sure Ubuntu is looking in the right place. As it says on the website, make sure you have added the directory that adb is located to your $PATH by adding export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/tools & export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools to your .bashrc and running source .bashrc






share|improve this answer



















  • 2




    It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
    – bigcat42
    Apr 13 '11 at 5:55





















1














@mywebslave answered it perfectly, I just want to add one more thing to that. If you're running a 64 bit machine and doing an offline install, you may have to install the 32 bit compatibility libraries as mentioned here.



sudo apt-get install ia32-libs


Update: The above command works only if you're running 13.04 and below. For newer versions ia32-libs has been replaced by other packages. See here.



sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386





share|improve this answer































    1














    2017-Oct update



    You don't need to install any package on Ubuntu 16 to get ADB working. No setup is necessary.



    Simply download the official SDK Platform-Tools for Linux from Google and extract adb and fastboot from the zip file.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f34702%2fhow-do-i-set-up-android-adb%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      21














      Install adb & fastboot via PPA



      You can install from the WebUpd8 PPA which support both 32-bit and 64-bit. Granted you can install directly from google. But I prefer to use PPAs to keep everything up to date.
      Works for Ubuntu 11.04, 11.10 and 12.04.



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


      Source: Install ADB And Fastboot Android Tools In Ubuntu Via PPA



      Install Android SDK via PPA




      If you want to install the SDK which will allow you to update everything you can install via the upubuntu ppa.




      So first thing is to add the ppa.



      sudo add-apt-repository ppa:upubuntu-com/sdk
      sudo apt-get update
      sudo apt-get install android-sdk


      Only issue at this point is that android-sdk needs to be run as root. Well the link in the menu didn't do much. So I updated the link in the menu, you can also run:



      gksu android-sdk


      From there you will need to install "Android SDK Platform-Tools" I also recommend updating "Android SDK Tools". You can deselect anything else you don't need.



      Now you will need to set your environmental variables.

      First you will need to make everything executable.



      sudo chmod -R 755 /root/android-sdk-linux


      Now to add the variables.



      nano ~/.bashrc


      Add these lines (at the top)



      #AndroidDev PATH
      export PATH=${PATH}:/root/android-sdk-linux/tools
      export PATH=${PATH}:/root/android-sdk-linux/platform-tools


      Source: Install Android SDK Manager (Revision 20) From PPA On Ubuntu 12.04/Linux Mint 13


      Source: AndroidSDK - Community Ubuntu Documentation






      share|improve this answer























      • It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
        – BuZZ-dEE
        Sep 25 '12 at 0:19










      • Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
        – mywebslave
        Sep 25 '12 at 1:41










      • Yes, if anyone wants to install it, but in this case the question was how to set up after install.
        – BuZZ-dEE
        Sep 25 '12 at 1:48






      • 1




        none of this worked for me on 16.04. gksu did nothing other than ask for a password
        – mango
        Jul 1 '16 at 7:32








      • 1




        nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
        – abumalick
        Jan 5 '17 at 8:11


















      21














      Install adb & fastboot via PPA



      You can install from the WebUpd8 PPA which support both 32-bit and 64-bit. Granted you can install directly from google. But I prefer to use PPAs to keep everything up to date.
      Works for Ubuntu 11.04, 11.10 and 12.04.



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


      Source: Install ADB And Fastboot Android Tools In Ubuntu Via PPA



      Install Android SDK via PPA




      If you want to install the SDK which will allow you to update everything you can install via the upubuntu ppa.




      So first thing is to add the ppa.



      sudo add-apt-repository ppa:upubuntu-com/sdk
      sudo apt-get update
      sudo apt-get install android-sdk


      Only issue at this point is that android-sdk needs to be run as root. Well the link in the menu didn't do much. So I updated the link in the menu, you can also run:



      gksu android-sdk


      From there you will need to install "Android SDK Platform-Tools" I also recommend updating "Android SDK Tools". You can deselect anything else you don't need.



      Now you will need to set your environmental variables.

      First you will need to make everything executable.



      sudo chmod -R 755 /root/android-sdk-linux


      Now to add the variables.



      nano ~/.bashrc


      Add these lines (at the top)



      #AndroidDev PATH
      export PATH=${PATH}:/root/android-sdk-linux/tools
      export PATH=${PATH}:/root/android-sdk-linux/platform-tools


      Source: Install Android SDK Manager (Revision 20) From PPA On Ubuntu 12.04/Linux Mint 13


      Source: AndroidSDK - Community Ubuntu Documentation






      share|improve this answer























      • It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
        – BuZZ-dEE
        Sep 25 '12 at 0:19










      • Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
        – mywebslave
        Sep 25 '12 at 1:41










      • Yes, if anyone wants to install it, but in this case the question was how to set up after install.
        – BuZZ-dEE
        Sep 25 '12 at 1:48






      • 1




        none of this worked for me on 16.04. gksu did nothing other than ask for a password
        – mango
        Jul 1 '16 at 7:32








      • 1




        nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
        – abumalick
        Jan 5 '17 at 8:11
















      21












      21








      21






      Install adb & fastboot via PPA



      You can install from the WebUpd8 PPA which support both 32-bit and 64-bit. Granted you can install directly from google. But I prefer to use PPAs to keep everything up to date.
      Works for Ubuntu 11.04, 11.10 and 12.04.



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


      Source: Install ADB And Fastboot Android Tools In Ubuntu Via PPA



      Install Android SDK via PPA




      If you want to install the SDK which will allow you to update everything you can install via the upubuntu ppa.




      So first thing is to add the ppa.



      sudo add-apt-repository ppa:upubuntu-com/sdk
      sudo apt-get update
      sudo apt-get install android-sdk


      Only issue at this point is that android-sdk needs to be run as root. Well the link in the menu didn't do much. So I updated the link in the menu, you can also run:



      gksu android-sdk


      From there you will need to install "Android SDK Platform-Tools" I also recommend updating "Android SDK Tools". You can deselect anything else you don't need.



      Now you will need to set your environmental variables.

      First you will need to make everything executable.



      sudo chmod -R 755 /root/android-sdk-linux


      Now to add the variables.



      nano ~/.bashrc


      Add these lines (at the top)



      #AndroidDev PATH
      export PATH=${PATH}:/root/android-sdk-linux/tools
      export PATH=${PATH}:/root/android-sdk-linux/platform-tools


      Source: Install Android SDK Manager (Revision 20) From PPA On Ubuntu 12.04/Linux Mint 13


      Source: AndroidSDK - Community Ubuntu Documentation






      share|improve this answer














      Install adb & fastboot via PPA



      You can install from the WebUpd8 PPA which support both 32-bit and 64-bit. Granted you can install directly from google. But I prefer to use PPAs to keep everything up to date.
      Works for Ubuntu 11.04, 11.10 and 12.04.



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


      Source: Install ADB And Fastboot Android Tools In Ubuntu Via PPA



      Install Android SDK via PPA




      If you want to install the SDK which will allow you to update everything you can install via the upubuntu ppa.




      So first thing is to add the ppa.



      sudo add-apt-repository ppa:upubuntu-com/sdk
      sudo apt-get update
      sudo apt-get install android-sdk


      Only issue at this point is that android-sdk needs to be run as root. Well the link in the menu didn't do much. So I updated the link in the menu, you can also run:



      gksu android-sdk


      From there you will need to install "Android SDK Platform-Tools" I also recommend updating "Android SDK Tools". You can deselect anything else you don't need.



      Now you will need to set your environmental variables.

      First you will need to make everything executable.



      sudo chmod -R 755 /root/android-sdk-linux


      Now to add the variables.



      nano ~/.bashrc


      Add these lines (at the top)



      #AndroidDev PATH
      export PATH=${PATH}:/root/android-sdk-linux/tools
      export PATH=${PATH}:/root/android-sdk-linux/platform-tools


      Source: Install Android SDK Manager (Revision 20) From PPA On Ubuntu 12.04/Linux Mint 13


      Source: AndroidSDK - Community Ubuntu Documentation







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Sep 25 '12 at 1:38

























      answered Sep 24 '12 at 23:54









      mywebslavemywebslave

      664511




      664511












      • It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
        – BuZZ-dEE
        Sep 25 '12 at 0:19










      • Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
        – mywebslave
        Sep 25 '12 at 1:41










      • Yes, if anyone wants to install it, but in this case the question was how to set up after install.
        – BuZZ-dEE
        Sep 25 '12 at 1:48






      • 1




        none of this worked for me on 16.04. gksu did nothing other than ask for a password
        – mango
        Jul 1 '16 at 7:32








      • 1




        nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
        – abumalick
        Jan 5 '17 at 8:11




















      • It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
        – BuZZ-dEE
        Sep 25 '12 at 0:19










      • Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
        – mywebslave
        Sep 25 '12 at 1:41










      • Yes, if anyone wants to install it, but in this case the question was how to set up after install.
        – BuZZ-dEE
        Sep 25 '12 at 1:48






      • 1




        none of this worked for me on 16.04. gksu did nothing other than ask for a password
        – mango
        Jul 1 '16 at 7:32








      • 1




        nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
        – abumalick
        Jan 5 '17 at 8:11


















      It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
      – BuZZ-dEE
      Sep 25 '12 at 0:19




      It's not needed to compile adb, so installing with the android-sdk it's not from source. Furthermore he tags the question with 10.10, so this answer doesn't work. Great is, that this solution provides a 64 bit version.
      – BuZZ-dEE
      Sep 25 '12 at 0:19












      Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
      – mywebslave
      Sep 25 '12 at 1:41




      Yeah my bad. Didn't notice that is was for 10.10. But hopefully it will help others. As for the source I meant "source" as google.
      – mywebslave
      Sep 25 '12 at 1:41












      Yes, if anyone wants to install it, but in this case the question was how to set up after install.
      – BuZZ-dEE
      Sep 25 '12 at 1:48




      Yes, if anyone wants to install it, but in this case the question was how to set up after install.
      – BuZZ-dEE
      Sep 25 '12 at 1:48




      1




      1




      none of this worked for me on 16.04. gksu did nothing other than ask for a password
      – mango
      Jul 1 '16 at 7:32






      none of this worked for me on 16.04. gksu did nothing other than ask for a password
      – mango
      Jul 1 '16 at 7:32






      1




      1




      nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
      – abumalick
      Jan 5 '17 at 8:11






      nilarimogard/webupd8 don't contain android-tools-* and upubuntu-com/sdk is outdated
      – abumalick
      Jan 5 '17 at 8:11















      12














      Ubuntu 14.04+



      Since Trusty the android-tools-adb and android-tools-fastboot packages in the Universe repository provide, respectively, adb and fastboot.



      To install them:




      • Enable the Universe repository: sudo add-apt-repository universe

      • Update the APT cache: sudo apt-get update


      To install adb:



      sudo apt-get install android-tools-adb


      To install fastboot:



      sudo apt-get install android-tools-fastboot





      share|improve this answer





















      • What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
        – Dan Dascalescu
        Oct 15 '17 at 0:09
















      12














      Ubuntu 14.04+



      Since Trusty the android-tools-adb and android-tools-fastboot packages in the Universe repository provide, respectively, adb and fastboot.



      To install them:




      • Enable the Universe repository: sudo add-apt-repository universe

      • Update the APT cache: sudo apt-get update


      To install adb:



      sudo apt-get install android-tools-adb


      To install fastboot:



      sudo apt-get install android-tools-fastboot





      share|improve this answer





















      • What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
        – Dan Dascalescu
        Oct 15 '17 at 0:09














      12












      12








      12






      Ubuntu 14.04+



      Since Trusty the android-tools-adb and android-tools-fastboot packages in the Universe repository provide, respectively, adb and fastboot.



      To install them:




      • Enable the Universe repository: sudo add-apt-repository universe

      • Update the APT cache: sudo apt-get update


      To install adb:



      sudo apt-get install android-tools-adb


      To install fastboot:



      sudo apt-get install android-tools-fastboot





      share|improve this answer












      Ubuntu 14.04+



      Since Trusty the android-tools-adb and android-tools-fastboot packages in the Universe repository provide, respectively, adb and fastboot.



      To install them:




      • Enable the Universe repository: sudo add-apt-repository universe

      • Update the APT cache: sudo apt-get update


      To install adb:



      sudo apt-get install android-tools-adb


      To install fastboot:



      sudo apt-get install android-tools-fastboot






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 21 '16 at 9:24









      koskos

      25.3k870119




      25.3k870119












      • What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
        – Dan Dascalescu
        Oct 15 '17 at 0:09


















      • What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
        – Dan Dascalescu
        Oct 15 '17 at 0:09
















      What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
      – Dan Dascalescu
      Oct 15 '17 at 0:09




      What's the difference between the android-tools-adb package and the adb package? Both claim to provide the Android Debug Bridge.
      – Dan Dascalescu
      Oct 15 '17 at 0:09











      3














      I'm only guessing but perhaps you need to make sure Ubuntu is looking in the right place. As it says on the website, make sure you have added the directory that adb is located to your $PATH by adding export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/tools & export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools to your .bashrc and running source .bashrc






      share|improve this answer



















      • 2




        It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
        – bigcat42
        Apr 13 '11 at 5:55


















      3














      I'm only guessing but perhaps you need to make sure Ubuntu is looking in the right place. As it says on the website, make sure you have added the directory that adb is located to your $PATH by adding export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/tools & export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools to your .bashrc and running source .bashrc






      share|improve this answer



















      • 2




        It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
        – bigcat42
        Apr 13 '11 at 5:55
















      3












      3








      3






      I'm only guessing but perhaps you need to make sure Ubuntu is looking in the right place. As it says on the website, make sure you have added the directory that adb is located to your $PATH by adding export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/tools & export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools to your .bashrc and running source .bashrc






      share|improve this answer














      I'm only guessing but perhaps you need to make sure Ubuntu is looking in the right place. As it says on the website, make sure you have added the directory that adb is located to your $PATH by adding export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/tools & export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools to your .bashrc and running source .bashrc







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 7 '14 at 20:39









      Wilf

      21.2k1066129




      21.2k1066129










      answered Apr 12 '11 at 16:03









      daithib8daithib8

      2,32021933




      2,32021933








      • 2




        It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
        – bigcat42
        Apr 13 '11 at 5:55
















      • 2




        It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
        – bigcat42
        Apr 13 '11 at 5:55










      2




      2




      It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
      – bigcat42
      Apr 13 '11 at 5:55






      It works :o) with one small correction, export PATH=${PATH}:/usr/local/src/android-sdk-linux_x86/platform-tools/
      – bigcat42
      Apr 13 '11 at 5:55













      1














      @mywebslave answered it perfectly, I just want to add one more thing to that. If you're running a 64 bit machine and doing an offline install, you may have to install the 32 bit compatibility libraries as mentioned here.



      sudo apt-get install ia32-libs


      Update: The above command works only if you're running 13.04 and below. For newer versions ia32-libs has been replaced by other packages. See here.



      sudo dpkg --add-architecture i386
      sudo apt-get update
      sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386





      share|improve this answer




























        1














        @mywebslave answered it perfectly, I just want to add one more thing to that. If you're running a 64 bit machine and doing an offline install, you may have to install the 32 bit compatibility libraries as mentioned here.



        sudo apt-get install ia32-libs


        Update: The above command works only if you're running 13.04 and below. For newer versions ia32-libs has been replaced by other packages. See here.



        sudo dpkg --add-architecture i386
        sudo apt-get update
        sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386





        share|improve this answer


























          1












          1








          1






          @mywebslave answered it perfectly, I just want to add one more thing to that. If you're running a 64 bit machine and doing an offline install, you may have to install the 32 bit compatibility libraries as mentioned here.



          sudo apt-get install ia32-libs


          Update: The above command works only if you're running 13.04 and below. For newer versions ia32-libs has been replaced by other packages. See here.



          sudo dpkg --add-architecture i386
          sudo apt-get update
          sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386





          share|improve this answer














          @mywebslave answered it perfectly, I just want to add one more thing to that. If you're running a 64 bit machine and doing an offline install, you may have to install the 32 bit compatibility libraries as mentioned here.



          sudo apt-get install ia32-libs


          Update: The above command works only if you're running 13.04 and below. For newer versions ia32-libs has been replaced by other packages. See here.



          sudo dpkg --add-architecture i386
          sudo apt-get update
          sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 23 '17 at 12:39









          Community

          1




          1










          answered Aug 15 '15 at 10:21









          WeirdElfB0yWeirdElfB0y

          1136




          1136























              1














              2017-Oct update



              You don't need to install any package on Ubuntu 16 to get ADB working. No setup is necessary.



              Simply download the official SDK Platform-Tools for Linux from Google and extract adb and fastboot from the zip file.






              share|improve this answer


























                1














                2017-Oct update



                You don't need to install any package on Ubuntu 16 to get ADB working. No setup is necessary.



                Simply download the official SDK Platform-Tools for Linux from Google and extract adb and fastboot from the zip file.






                share|improve this answer
























                  1












                  1








                  1






                  2017-Oct update



                  You don't need to install any package on Ubuntu 16 to get ADB working. No setup is necessary.



                  Simply download the official SDK Platform-Tools for Linux from Google and extract adb and fastboot from the zip file.






                  share|improve this answer












                  2017-Oct update



                  You don't need to install any package on Ubuntu 16 to get ADB working. No setup is necessary.



                  Simply download the official SDK Platform-Tools for Linux from Google and extract adb and fastboot from the zip file.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 15 '17 at 0:25









                  Dan DascalescuDan Dascalescu

                  1,04921636




                  1,04921636






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f34702%2fhow-do-i-set-up-android-adb%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to make a Squid Proxy server?

                      Is this a new Fibonacci Identity?

                      19世紀