How To Install anbox on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 471 words
Introduction
In this tutorial we learn how to install anbox
on Ubuntu.
What is anbox
anbox is:
Anbox is a container-based approach to boot a full Android system on a regular GNU/Linux system.
In other words: Anbox will let you run Android on your Linux system without the slowness of virtualization.
Anbox uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a full Android system in a container and provide Android applications on any GNU/Linux-based platform.
The Android inside the container has no direct access to any hardware. All hardware access is going through the anbox daemon on the host. It reuses what Android implemented within the QEMU-based emulator for OpenGL ES accelerated rendering. The Android system inside the container uses different pipes to communicate with the host system and sends all hardware access commands through these.
This package needs Android kernel modules and rootfs image, see /usr/share/doc/anbox/README.Debian for information.
There are three methods to install anbox
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install anbox Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install anbox
using apt-get
by running the following command:
sudo apt-get -y install anbox
Install anbox Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install anbox
using apt
by running the following command:
sudo apt -y install anbox
Install anbox Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install anbox
using aptitude
by running the following command:
sudo aptitude -y install anbox
How To Uninstall anbox on Ubuntu
To uninstall only the anbox
package we can use the following command:
sudo apt-get remove anbox
Uninstall anbox And Its Dependencies
To uninstall anbox
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove anbox
Remove anbox Configurations and Data
To remove anbox
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge anbox
Remove anbox configuration, data, and all of its dependencies
We can use the following command to remove anbox
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge anbox
Dependencies
anbox have the following dependencies:
- iptables
- libegl1
- libgles2
- init-system-helpers
- lxc
- libboost-filesystem1.74.0
- libboost-iostreams1.74.0
- libboost-log1.74.0
- libboost-program-options1.74.0
- libboost-thread1.74.0
- libc6
- libgcc-s1
- liblxc1
References
Summary
In this tutorial we learn how to install anbox
package on Ubuntu using different package management tools: apt, apt-get and aptitude.