Thursday, February 4, 2016

How to install ADB (Android Debug Bridge) on Lubuntu


If you are developing android apps using android studio, you probably don't need to install ADB separately because android studio will handle everything for you, including connecting to real device which is the purpose of ADB (Android Debug Bridge).

But if you still want to play around with ADB, then you need to install it on your lubuntu, the good thing is ADB is available on official repository of lubuntu/ubuntu. So if you want to install it you can just run apt-get install, like this:

sudo apt-get install android-tools-adb

kernelpanic@kernelpanic:~$ sudo apt-get install android-tools-adb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic
  linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  android-tools-adb
0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded.
Need to get 0 B/66,7 kB of archives.
After this operation, 194 kB of additional disk space will be used.
Selecting previously unselected package android-tools-adb.
(Reading database ... 193652 files and directories currently installed.)
Preparing to unpack .../android-tools-adb_4.2.2+git20130218-3ubuntu42_amd64.deb ...
Unpacking android-tools-adb (4.2.2+git20130218-3ubuntu42) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up android-tools-adb (4.2.2+git20130218-3ubuntu42) ...

The package is very small, only a few kilobytes, so you should have no problem with that. And if you also need fastboot, you can intall also, here's the command to install fastboot:

sudo apt-get install android-tools-fastboot

kernelpanic@kernelpanic:~$ sudo apt-get install android-tools-fastboot 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic
  linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  android-tools-fastboot
0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded.
Need to get 47,6 kB of archives.
After this operation, 132 kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu/ wily/universe android-tools-fastboot amd64 4.2.2+git20130218-3ubuntu42 [47,6 kB]
Fetched 47,6 kB in 7s (6.550 B/s)               
Selecting previously unselected package android-tools-fastboot.
(Reading database ... 193659 files and directories currently installed.)
Preparing to unpack .../android-tools-fastboot_4.2.2+git20130218-3ubuntu42_amd64.deb ...
Unpacking android-tools-fastboot (4.2.2+git20130218-3ubuntu42) ...
Setting up android-tools-fastboot (4.2.2+git20130218-3ubuntu42) ...


~ enjoy ~

No comments:

Post a Comment