Home » Tips » Android » How to Install ADB and Fastboot on Linux
ADB Fastboot Linux

How to Install ADB and Fastboot on Linux

We need ADB and Fastboot to issue commands to Android devices. On Windows this is done in a few different ways as described here, for Linux though, it takes a few commands via the Terminal to setup.


ADB is a command line utility used for Android. It has many uses, including copying files from your device, unlocking the bootloader, flashing factory images, sideloading updates and more. Sometimes it can be used to root Android devices as well. So without much ado, here’s how you can install it on Linux distributions like Ubuntu!


Installing ADB and Fastboot on Ubuntu is a simple one issuing a few commands in the Terminal. If you are using a distro based on Ubuntu that does not have the necessary repositories, then you’ll need to add the necessary repositories first. The stock Ubuntu installation should already have this setup, so if you are using Ubuntu then you can skip step 1 below. If your are using Ubuntu, you already have the necessary repositories, so just can skip to step 2 and enter that command to get the ADB and Fastboot installed onto your PC.


ADB Fastboot Linux

  1. sudo add-apt-repository ppa:phablet-team/tools && sudo apt-get update
  2. sudo apt-get install android-tools-adb android-tools-fastboot


That’s it. You are done. Assuming everything installed properly, you can test this by first enabling Developer Options and then going into that menu to enable USB Debugging Mode. Once that is done, go ahead and connect your Android device to the PC with a micro USB cable and then run the following command in the Linux Terminal


  1. adb devices


ADB Devices


If everything is setup correctly, then you should see your device listed like it is in the image above. If it isn’t setup properly then you won’t see that “HT118RX05398 device” line. The first set of characters in that line will be different than you see in this image. Those characters are a way for the PC to know which device is connected. Think of it as an identifier string.


Let me know if you have any issues with getting ADB and Fastboot installed on your Linux device. I might not be able to answer everything, but I will do my best to help out when I can.


[box type=”info”]If this worked or didn’t work for you, please leave a comment at the bottom of this article to let me know. This will help me to keep these tutorials up to date(if it didn’t work) and it can also help to inspire confidence in other readers(if it did work).[/box]


4 thoughts on “How to Install ADB and Fastboot on Linux”

  1. It works while I’m on ptp mode but computer doesn’t recognize m my lg g4 when I’m I download mode is there anyway to achieve this?

  2. possible you can tell me what this means?

    [email protected] ~ $ adb devices
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    List of devices attached
    ???????????? no permissions

    usb debugging is enabled, usb storage is on. thnaks!

    1. Is it possible you may have rejected USB debugging access in the past? Try going to Developer Options in the Settings application and then look for the USB Debugging Mode option. Right under it should be an option that you can tap to reset USB Debugging authorizations.

      Maybe try tapping that and then reconnecting the USB cable after the ADB daemon is running.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top