8

Ok, I know it's not supported fully on debian yet, but is there anyway to run anbox (anbox.io) on a debian installation. Since It runs on ubuntu, I assume it would be possible on debian.

3
  • Anbox isn't available as a binary package for Debian yet. You'll have to compile it from source. The Readme file in the GitHub repo has all the instructions.
    – Larssend
    May 16, 2017 at 23:49
  • I have attempted that with the system I want to run it on, but my cmake can't recognize my -dbus-cpp-dev no matter what I do, would it be possible to compile anbox on another system I have then move it back to the original system and use make and make install? Sorry, I'm new to compiling from source
    – Tyler
    May 17, 2017 at 1:31
  • Probably not. Each distribution tends to name the libraries differently, so the resulting binary may not be able to find the necessary libraries when run in a different distro. I don't know how you've set up your environment, so I have to ask. Have you installed libdbus-c++-dev? that's what the package is called in Debian. You should revise your question and provide sufficient details of what you've tried and the exact problem you're having. You'll have better chance of getting helpful answers that way.
    – Larssend
    May 17, 2017 at 3:55

4 Answers 4

6

Use snapd. anbox is only available as snaps.

Install snapd :

sudo apt install snapd

and install (& run) anbox:

sudo snap install --classic anbox-installer && anbox-installer
6
  • lo, forgot this was open, it was not possible to install via that method, you must do that ( if you can get snapd installed) which fights alot, then you must manually put in the correct kernels as anbox does not recognize a pure debian system as being compatible and will not fetch the kernel via snapd. So you must also edit the anbox-installer before any of this will even work, since anbox installer does not accept pure debian systems.
    – Tyler
    Aug 24, 2017 at 23:31
  • 1
    Actually for unstable there is now anbox:amd64 0.0~git20181210-1, run on a lxc container, no need to install snap
    – Alex
    Dec 24, 2018 at 6:11
  • 1
    Starting anbox-installer shows a warning that this is deprecated. One should now install anbox instead (Debian 10). Oct 24, 2019 at 12:31
  • 1
    Since Buster sudo apt install anbox.
    – 71GA
    May 4, 2020 at 13:14
  • Outdated answer. Use the official Debian package.
    – Federico
    May 15, 2020 at 0:32
8

On Debian Sid, there is a package for Anbox: https://packages.debian.org/sid/utils/anbox

The package sets everything up in the kernel (module binder_linux, ashmem), and sets up a systemd service (anbox-container-manager).

However, the package does not contain any android image expected in /var/lib/anbox/android.img, this image has to be taken from https://build.anbox.io/android-images/ or from an existing snap installation in /var/snap/anbox/android.img.

Once, the image is installed, run:

  • as root: service anbox-container-manager start
  • as normal user (in a first terminal): anbox session-manager
  • as normal user (in a second terminal): anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

(There may be a refresh bug, move the cursor within the anbox graphical window)

See Debian documentation in /usr/share/doc/anbox/README.Debian

0

I was allready done with the snapd install and setup. When I saw anbox in 'Sid'. For me, "snap install --classic anbox-installer"was the correct command. (Anbox.io instructions fail to mention --classic). Everything was okay but the DKMS modules didn't work.

I enabled 'sid' repositories and updated to the latest LTS kernel to get ashmem and binder. Now every time I want to run anbox I need to type "modprobe ashmem-linux" and "modprobe binder-linux", but that can be automated and I think it works for now.

But as a starting point for newcomers, I guess that anbox:amd64 in 'sid' is the best way.

Regards, Blackslide

0

Install snapd:

sudo apt install snapd

and install (& run) anbox:

sudo snap install --classic anbox-installer && anbox-installer

You may get an error (bash: anbox-installer: command not found) if you are on raspbian desktop like I was.

Once, snapd installed and configured, run the following command to install snap store app.

sudo snap install snap-store
1
  • 1
    Welcome to Super User! The site's Q&A format reserves answers for solutions to the question. This post is really a comment on the accepted answer rather than an answer. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post.
    – fixer1234
    Jul 12, 2019 at 5:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.