Tutorials  /  Linux Basics

How to Install Anbox on Linux Mint: Complete Step-by-Step Guide

Ccentron Redaktion · December 2024 ·5 min read ·Linux Basics, Tutorial

This article goes over the steps to install Anbox on Linux Mint. Ever wondered how cool it would be to be able to run android applications on your Linux system? Well, Anbox helps you do exactly that.

Anbox is short for Android in a box and it is exactly what it sounds like! Anbox is a free and open-source environment that enables you to run Android applications on your Linux distribution.

It follows a container-based approach to run the android operating system on Linux.

Steps to Install Anbox on Linux Mint

Here’s a quick summary of the step to install Anbox on your Linux Mint:

  • First, Install snapd
  • Install the required kernel modules
  • Install the Anbox package on Linux Mint
VM

Matching infrastructure at centron

No hardware needed to follow along: ccloud³ VMs with full root access start at €3.12 per month, billed by the hour and ready in seconds. Rent a cloud server →

Steps to Uninstall Anbox from Mint

You can install Anbox on your system from the Snap Store. As of now, Snap is the only way to get Anbox. The organization does not officially support any other distribution method of Anbox at the moment.

In case you haven’t heard about Snaps, don’t worry. Snaps are just software packages that are simple to create and install.

1. Install Snap

Snap is available for the following releases of Mint :

  • 18.2 (Sonya)
  • 18.3 (Sylvia)
  • 19 (Tara)
  • 19.1 (Tessa)
  • 20 (Ulyana)

To install Snap on Linux Mint 20, you need to remove /etc/apt/preferences.d/nosnap.pref first. The reason being, this file blocks the installation of snap.

This is done with the command :

Console
sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update

To install snapd on your system use the apt command as shown below:

Console
$ sudo apt install snapd

Alternatively, you can download it from the Software Manager application. Search for snapd and click Install.Install snap

2. Install Kernel Modules

Before installing Anbox, you need to install two kernel modules. This is necessary to support the mandatory kernel subsystems ashmem and binder for the Android container.

You can do this with the following commands:

Console
sudo add-apt-repository ppa:morphis/anbox-support
sudo apt update
sudo apt install linux-headers-generic anbox-modules-dkms

This will install anbox-modules-dkms package on your system.

After this, you need to manually load the kernel modules. This loading is a one-time thing. You can do this with the following commands:

Console
sudo modprobe ashmem_linux
sudo modprobe binder_linux

This will add two new nodes in your system:

  • /dev/ashmen
  • /dev/binder

3. Install Anbox on Linux Mint

Now after installing Snaps and the necessary modules on your system, you can install Anbox on your system using :

Console
sudo snap install --devmode --beta anbox

To update to a newer version use the command:

Console
sudo snap refresh --beta --devmode anbox

To get information about the Anbox snap use the command:

Code
snap info anbox

Anbox snap info4. Steps to Uninstall Anbox

If you need to uninstall Anbox, use the command :

Console
$ snap remove anbox

After uninstalling Anbox, you can also uninstall the kernel modules using :

Console
$ sudo apt install ppa-purge
$ sudo ppa-purge ppa:morphis/anbox-support

Running these commands will successfully uninstall Anbox from your system.

Conclusion

In this tutorial, you saw how to install Anbox on your Linux Mint system.

Jetzt 200 € Guthaben sichern

Testen Sie Ihr Setup auf ccloud³

Registrieren Sie sich in der ccloud³ und erhalten Sie 200 € Startguthaben für Ihr Projekt – z. B. für eine PostgreSQL-VM mit automatischen Backups.

centron Redaktion Technische Redaktion

Das Redaktionsteam von centron schreibt Anleitungen aus dem Betriebsalltag: getestet auf unserer eigenen Plattform, betrieben im Rechenzentrum in Hallstadt bei Bamberg.

Kategorie Linux Basics
Teilen
Noch offene Fragen?

Unser Team hilft Ihnen bei Ihrem konkreten Setup weiter – von Menschen, die die Plattform selbst betreiben.

War dieses Tutorial hilfreich?

Ihre Antwort wird anonym gespeichert und hilft uns, die Tutorials zu verbessern.

Kommentare

Noch keine Kommentare – stellen Sie die erste Frage zu diesem Tutorial.

Zum Kommentieren anmelden

Kommentare stehen centron-Kunden offen. Melden Sie sich in Ihrem Konto an, um eine Frage zu diesem Tutorial zu stellen.

Weiterlesen

Das könnte Sie auch interessieren

Jetzt kostenlos anfangen

Melden Sie sich an und erhalten Sie in den ersten 60 Tagen ein Guthaben von 200 € bei centron.

Dieses Werbeangebot gilt nur für neue Konten. Angebot ausschließlich für Gewerbetreibende.

Jetzt loslegen Sales kontaktieren