How to install Anbox on Ubuntu 20.04 LTS focal fossa

Do you want to run an Android app on Linux operating systems such as Ubuntu running on a PC or laptop? Then Anbox could be an option. Well, Google has millions of apps, however, when it comes to running them on PC, Windows has quite a good number of applications such as Bluestack, NoxPlayer, and more. But what about Linux users, none of these emulators are available for Linux, thus, in such a scenario “Anbox” (Android in a box) is trying to close that gap. It allows Android apps to run under Linux as if they were normal desktop apps.

What is Anbox? Is it an emulator like Qemu?

Anbox is an open-source application that creates a secure and tight container for the Android operating system to run without any direct access to host computer hardware. All hardware access takes place via the Anbox daemon, which runs in the background, provides all necessary services, and organizes hardware access. It provides a compatibility layer and uses the Linux distribution system’s kernel to provide a virtualized environment instead of software emulation like Qemu and other emulator tools Genimobile or Shashlik do and typically have disadvantages in terms of speed due to the emulation. If you have ever used Docker then you are already familiar with the isolated container and images of the different operating systems running on it.

On the Anbox the network can be used, but not GPS or camera, etc. However, the sound output can be used by some apps, yet, by far not all apps can be used. Therefore, a complete Android system can be operated on a Linux PC in a container. Anbox uses the defined Linux namespaces (identifiers for resources such as IPC, mount, net, PID, user, and uts) to run Android applications on every GNU / Linux-based platform.

Note: Although we successfully performed this guide on our system, there is no guarantee that Apps will work after the installation.

Anbox installation on Ubuntu 20.04 LTS for running Android Apps

The best thing to install Anbox on Ubuntu 20.04 LTS, 19.04/18.04 LTS, we don’t need to add any third-party repository or the PPA repo; as the packages, we need to configure Anbox are already available on the official source list of Ubuntu, thus either using the APT package Manager or SNAP, we set this up on our Linux PC or Laptop.

Open the Command terminal and run the update command

The first thing, although it is not compulsory, however, I recommend running the update command before moving further. For that simply use:

sudo apt update

This will ensure all the packages on the system are in their latest state.

Run the command to install Anbox on Ubuntu 20.04 Linux

If you are on your Ubuntu, Linux Mint, Elementary OS, MXLinux or Debian simply run the APT command to get the packages of this Android application runner -Anbox for your Linux system. However, we recommend the SNAP method because installing with APT you may find one problem the Anbox will automaticity get closed after starting.

sudo apt install anbox


The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libllvm9
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
bridge-utils libboost-log1.71.0 libboost-program-options1.71.0
libboost-regex1.71.0 liblxc-common liblxc1 libpam-cgfs libprotobuf-lite17
libsdl2-image-2.0-0 lxc lxc-utils lxcfs uidmap
Suggested packages:
ifupdown btrfs-tools lvm2 lxc-templates lxctl
The following NEW packages will be installed:
anbox bridge-utils libboost-log1.71.0 libboost-program-options1.71.0
libboost-regex1.71.0 liblxc-common liblxc1 libpam-cgfs libprotobuf-lite17
libsdl2-image-2.0-0 lxc lxc-utils lxcfs uidmap
0 upgraded, 14 newly installed, 0 to remove and 7 not upgraded.
Need to get 3,573 kB of archives.
After this operation, 17.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

Install Anbox using SNAP- Recommend a method

If you already used the above method and everything is working fine then skip this one, however, those are on Ubuntu or any other Linux distros such as CentOS, Fedora, and RHEL, they can also use the SNAP package manager, as it supports cross platforms.

sudo snap install --devmode --beta anbox

If you don’t have a snap on your system then see this tutorial: Snap install on Linux.

Launch or Run Anbox on Linux

Once the installation is completed, go to “Show Applications” of the Ubuntu 20.04, 19.04, 18.04, or the version you are using. And search for Anbox, as you see its icon, and click on the icon to run it.

Anbox Android Apps Player installation on Ubuntu 20.04 LTS

Anbox runnign on Ubuntu 20.04 Linux

Install Google ADB Tool

Anbox alone cannot be used to install Android apps as there is no Google Play available with in the software. Thus, to install any third-party APK file, we need to configure the Android Debug Bridge (ADB). This will help us to manually install and push Android apps to Anbox.

sudo apt install android-tools-adb

How to install Google Play Store on Anbox

Now, this is something I got after quite a research and multiple time hits & try to install somehow the Google Play store on an Anbox Android OS container.

Well, I won’t be able to use ARM-based apps on Anbox because it doesn’t support that, and when I tried it through an error:

Failed to install PACKAGE.NAME.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

Hence, there is a German developer who has created a script available on GitHub to install Play Store and libhuodini library for ARM support.

You can check that using the GitHub given above, however, here I am using it script to install the Google Play store on Anbox:

sudo apt install wget curl lzip tar unzip squashfs-tools
chmod +x


In case after installing the Play Store on Anbox you won’t be able to connect internet for setting up a Google account to install various Android apps use the command:

sudo /snap/anbox/current/bin/ start

Install Android Apps on Anbox

Once you are done with all this, open the Anbox and the command terminal as well. If you want to install APK manually using the Terminal type the following commands:

To find the attached emulator devices run the below command, this recognizes the running Anbox.

adb devices

Download the APK file of the app you want to install from various online websites such as APK Mirror and all. After that use that APK with the ADB installs command syntax:

adb install apk-file-name

Like we have installed here Lemmings Puzzle APK as shown in the screenshot.

From the Google Play store simply open it, log in, and click on the Install button.

Installing APK files manually on ANbox Ubuntu Linux min Play Store login on Anbox min Screenshot from 2020 08 26 23 52 31 min 1 Accept terms and conditons min AnboxPlay store Arm apps Ubuntu 20.04 LTS min Run ARM apps on Anbox Android emulator min ANbox Google PLay store app install min

9 thoughts on “How to install Anbox on Ubuntu 20.04 LTS focal fossa”

  1. i can not establish internet connection within Anbox, even after executing sudo /snap/anbox/current/bin/ start
    I strictly followed your guide under Ubuntu 20.04.

  2. clicking on anbox does NOT start or run it; It quit starting all the time and I don’t know what to do. Any suggestion, please?

  3. clicking on anbox does NOT start or run it; It quit starting all the time and I don’t know what to do. Any suggestion, please?

  4. anbox run perfectly on almost any 5.05 and up kernel, if you have new 22.04 with latest updated kernel then its not gonna start, i tried installing it on popOS by my kernel is missing alot of files because of how things changed since 5.xx

    there might be a workaround it but its annoying and it never worked for me, you could search or just install another distro with older kernel

  5. ./ line 164: /etc/systemd/system/anbox-container-manager.service.d/override.conf: Permission denied

    Here is the error i have when I try to install playstore.
    How can i solve it ?


Leave a Comment

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