How to Install ADB on Ubuntu 16.04/18.04 Linux

This post will guide you how to install adb (Android Device Bridge) for Android Devices on Ubuntu 16.04/18.04 Linux. How do I install or use the ADB tool on Ubuntu Linux.

What is ADB


Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.

Install ADB Tool


If you want to install ADB tool on your Ubuntu system, you can use the default Ubuntu repositories to install it. Just type the following command:

$ sudo apt-get install android-tools-adb

Outputs:

devops@devops-osetc:~$ sudo apt-get install android-tools-adb
[sudo] password for devops:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
adb android-libadb android-libbase android-libcutils android-liblog android-sdk-platform-tools-common
The following NEW packages will be installed:
adb android-libadb android-libbase android-libcutils android-liblog android-sdk-platform-tools-common android-tools-adb
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 220 kB of archives.
After this operation, 682 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 android-liblog amd64 1:7.0.0+r33-2 [16.6 kB]
Get:2 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 android-libbase amd64 1:7.0.0+r33-2 [17.6 kB]
Get:3 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 android-libcutils amd64 1:7.0.0+r33-2 [21.3 kB]
Get:4 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 android-libadb amd64 1:7.0.0+r33-2 [78.9 kB]
Get:5 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 adb amd64 1:7.0.0+r33-2 [68.6 kB]
Get:6 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 android-sdk-platform-tools-common all 24.0.0+8 [11.5 kB]
Get:7 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 android-tools-adb all 1:7.0.0+r33-2 [5,406 B]
Fetched 220 kB in 8s (26.0 kB/s)
Selecting previously unselected package android-liblog.
(Reading database ... 213924 files and directories currently installed.)
Preparing to unpack .../0-android-liblog_1%3a7.0.0+r33-2_amd64.deb ...
Unpacking android-liblog (1:7.0.0+r33-2) ...
Selecting previously unselected package android-libbase.
Preparing to unpack .../1-android-libbase_1%3a7.0.0+r33-2_amd64.deb ...
Unpacking android-libbase (1:7.0.0+r33-2) ...
Selecting previously unselected package android-libcutils.
Preparing to unpack .../2-android-libcutils_1%3a7.0.0+r33-2_amd64.deb ...
Unpacking android-libcutils (1:7.0.0+r33-2) ...
Selecting previously unselected package android-libadb.
Preparing to unpack .../3-android-libadb_1%3a7.0.0+r33-2_amd64.deb ...
Unpacking android-libadb (1:7.0.0+r33-2) ...
Selecting previously unselected package adb.
Preparing to unpack .../4-adb_1%3a7.0.0+r33-2_amd64.deb ...
Unpacking adb (1:7.0.0+r33-2) ...
Selecting previously unselected package android-sdk-platform-tools-common.
Preparing to unpack .../5-android-sdk-platform-tools-common_24.0.0+8_all.deb ...
Unpacking android-sdk-platform-tools-common (24.0.0+8) ...
Selecting previously unselected package android-tools-adb.
Preparing to unpack .../6-android-tools-adb_1%3a7.0.0+r33-2_all.deb ...
Unpacking android-tools-adb (1:7.0.0+r33-2) ...
Setting up android-liblog (1:7.0.0+r33-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up android-sdk-platform-tools-common (24.0.0+8) ...
Setting up android-libbase (1:7.0.0+r33-2) ...
Setting up android-libcutils (1:7.0.0+r33-2) ...
Setting up android-libadb (1:7.0.0+r33-2) ...
Setting up adb (1:7.0.0+r33-2) ...
Setting up android-tools-adb (1:7.0.0+r33-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
devops@devops-osetc:~$

Once the installation has been finished on your Ubuntu system, you can try to check the ADB version to verify the installation of ADB package. Type the following command:

$ adb version

Outputs:

devops@devops-osetc:~$ adb version
Android Debug Bridge version 1.0.36
Revision 1:7.0.0+r33-2

 

You might also like:

Sidebar



back to top