How to install Anbox on Debian (2024)

Sylvain Bellone

Posted on

How to install Anbox on Debian (3) How to install Anbox on Debian (4) How to install Anbox on Debian (5) How to install Anbox on Debian (6) How to install Anbox on Debian (7)

#linux #android #tutorial

While waiting to see how it works on the PinePhone, I've recently tried to install Anbox on a Debian (Bullseye), and found out that the official documentation or other online articles don't have proper Debian instructions. Most of those articles are based on Snap, while nowadays everything is present to install it the Debian way.

After digging around, it turns out that most of what I will describe here is properly documented in the dedicated Debian README (/usr/share/doc/anbox/README.Debian), but I have to admit that it took me time to find it and I personally often prefer a simple and visual tutorial.

So, here is what I had to do to run Anbox and the F-Droid apk on Debian!

The first thing to do is of course to install Anbox itself:

$ sudo apt install anbox

Then, as stated in the official doc, check that the necessary kernel modules are enabled:

$ ls -1 /dev/{ashmem,binder}

If not:

$ sudo modprobe ashmem_linux$ sudo modprobe binder_linux

If like me, /sbin is not in your $PATH (modprobe: command not found), add it or use the full path:

$ sudo /sbin/modprobe ashmem_linux$ sudo /sbin/modprobe binder_linux

At that point, if you try to run it (anbox session-manager), you will probably get the following error:

Failed to connect to socket /run/anbox-container.socket: No such file or directory

Anbox indeed expect to find an Android image at /var/lib/anbox/android.img.
Download the latest image available at https://build.anbox.io/android-images/ and move it there:

$ sudo mv ~/Downloads/android_amd64.img /var/lib/anbox/android.img

Restart the service:

$ sudo service anbox-container-manager restart

You should now be able to run Anbox, either from your Desktop environment launcher, or with the following command:

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

How to install Anbox on Debian (8)

This last part is well explained in the doc. Start by installing adb:

$ sudo apt install android-tools-adb

You now have everything needed to install new applications:

  • Open the Anbox Application Manager
  • Download F-Droid: $ wget https://f-droid.org/F-Droid.apk
  • Install the apk: $ adb install F-Droid.apk

You should now see F-Droid in Anbox Application Manager!
How to install Anbox on Debian (9)

Refs:
https://superuser.com/a/1464899
https://lists.debian.org/debian-user/2021/01/msg00894.html
https://github.com/anbox/anbox/issues/123

Top comments (6)

Subscribe

KitchM

KitchM

  • Joined

Mar 15 '22

  • Copy link

I greatly appreciated the simple and well thought-out steps to get this working. However, even though everything worked at each step as directed, the outcome was the same as installing it thru Synaptic; I get a full screen window with the text "Starting..." and then nothing happens until a timeout and the windows goes away.

Debian 11 with Xfce 4.16.

Ferdinand Rau

Ferdinand Rau

Mar 21 '22

  • Copy link

Hi,
check the output of the command sudo service anbox-container-manager status to find out what's going wrong under the hood. Might be missing permissions, or a wrong filename for your Android image, or missing kernel modules while starting the Android image.
if that does not help, digging in the output of sudo journalctl -x -b -l | grep anbox probably will.

I'm on Debian GNU/Linux 11 with Xfce4 4.16 as well and it works. In a clean install, if you don't have sudo available, run the above commands as root without the sudo part.

Sergio

Sergio

  • Joined

Apr 8 '22 • Edited on Apr 8 • Edited

  • Copy link

Anbox seems to be heavily broken on Debian 11 instead, with no signs of verbose error. debian anbox[25324]: Session manager failed to become ready is the only error you can find, everything else is normally loading components. github.com/anbox/anbox/issues/978 Might be a return of this issue

jimlp12

jimlp12

I'll be Honest.... I'm not a DEV.... I'm having major problems w/a Anbox on MX-Linux 21.3 x 64 Wildflower.. =)

  • Education

    UOME

  • Work

    Retired

  • Joined

Jan 19 '23

  • Copy link

Sylvain;
Hello, I'm James from NM, USA... I am following your Post on "How to Install Anbox on Debian", dated May 2, 2021. Here in the "Android Image" section it refers to: build.anbox.io/android-images/, Unfortunately... this URL no longer works, it just times out. Others have reported it to Google and I found no solutions, now I'm trying to find another source to download an appropriate Android Image, any suggestions...?
I'm running MX-Linux 21.3 x 64 Wildflower on a Dell Latitude E6540, Intel i7-4810 Quad Core w/8 threads, 16 GB RAM, Western Digital 1TB HDD, Intel Graphics...
James....

Sylvain Bellone

Sylvain Bellone

  • Joined

Jan 14 '22 • Edited on Jan 14 • Edited

  • Copy link

I haven't tried @iamlegendz solution, but I'd personally go for a great alternative: the Aurora Store, which mirrors the Play Store nicely and can be installed from F-Droid: f-droid.org/en/packages/com.aurora...

Mohamed Benkouider

Mohamed Benkouider

  • Joined

Oct 30 '21

  • Copy link

It works well, you must run this command before: sudo mkdir /etc/systemd/system/anbox-container-manager.service.d/ and then install google play store with the script.

For further actions, you may consider blocking this person and/or reporting abuse

How to install Anbox on Debian (2024)
Top Articles
Joe Biden Kamala Harris 2024 Gold Silver Coin State Flags Map Americana Signed • EUR 14,24
Donald Trump Super Joe Biden Man Gold Coin Signed DC Comics Marvel Bat Heros USA • $3.49
What spices do Germans cook with?
Bin Stores in Wisconsin
Draconic Treatise On Mining
Bed Bath And Body Works Hiring
Tv Schedule Today No Cable
Cube Combination Wiki Roblox
Umn Biology
Savage X Fenty Wiki
Herbalism Guide Tbc
The Murdoch succession drama kicks off this week. Here's everything you need to know
Aspen.sprout Forum
Eka Vore Portal
Lesson 8 Skills Practice Solve Two-Step Inequalities Answer Key
Maplestar Kemono
Dignity Nfuse
Hocus Pocus Showtimes Near Amstar Cinema 16 - Macon
Missed Connections Dayton Ohio
CANNABIS ONLINE DISPENSARY Promo Code — $100 Off 2024
NBA 2k23 MyTEAM guide: Every Trophy Case Agenda for all 30 teams
Nordstrom Rack Glendale Photos
Evil Dead Rise - Everything You Need To Know
Walgreens Alma School And Dynamite
BMW K1600GT (2017-on) Review | Speed, Specs & Prices
Mc Donald's Bruck - Fast-Food-Restaurant
Touchless Car Wash Schaumburg
Sussyclassroom
Encyclopaedia Metallum - WikiMili, The Best Wikipedia Reader
Panola County Busted Newspaper
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
Mandy Rose - WWE News, Rumors, & Updates
Restaurants In Shelby Montana
Www Mydocbill Rada
91 Octane Gas Prices Near Me
6465319333
Fedex Walgreens Pickup Times
Worlds Hardest Game Tyrone
Why The Boogeyman Is Rated PG-13
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
When His Eyes Opened Chapter 2048
Compare Plans and Pricing - MEGA
The Listings Project New York
Obituaries in Hagerstown, MD | The Herald-Mail
Sams Gas Price Sanford Fl
How Much Is 10000 Nickels
Arch Aplin Iii Felony
A jovem que batizou lei após ser sequestrada por 'amigo virtual'
Google Flights Missoula
Frank 26 Forum
Round Yellow Adderall
Die 10 wichtigsten Sehenswürdigkeiten in NYC, die Sie kennen sollten
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 5840

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.