11

I understand, that Anbox is in super alpha, but I need help. I cannot launch it. There is terminal entries:

$ anbox launch  
[EE 2017-04-27 16:03:20] [launch.cpp:76@operator()] Anbox session manager     service isn't running!  
$ anbox session-manager  
[EE 2017-04-27 16:03:44] [session_manager.cpp:119@operator()] Failed to start     as either binder or ashmem kernel drivers are not loaded  
Pablo Bianchi
  • 17,371
Inferno_geek
  • 137
  • 1
  • 2
  • 11

6 Answers6

5

If you use the snap, $ anbox.appmgr is your friend.

Xerusial
  • 151
3

You probably need to load the kernel modules ashmem and binder by running

sudo modprobe ashmem_linux
sudo modprobe binder_linux
Zanna
  • 72,312
Guest2
  • 31
2

Install DKMS package from PPA In order to add the PPA to your Ubuntu system please run the following commands:

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

$ sudo modprobe ashmem_linux
$ sudo modprobe binder_linux

Now try to run Anbox, it will run without any issues ;)

meskobalazs
  • 3,103
1

In 18.04 I had to manually install the modules from andbox-modules repo; basically

git clone https://github.com/anbox/anbox-modules
cd andbox-modules
./INSTALL.sh
1

For Ubuntu, just click on the Anbox icon in the dash.

It's supposed to automatically launch the 'anbox session-manager' and then the gui application window.

Currently it's broken for me and doesn't work in Ubuntu (bitten by bug https://github.com/anbox/anbox/issues/367) :(

shiznix
  • 34
0

TL;DR Its not working yet, here's what I tried...

  • I am using ubuntu 17.4
  • I started from here :
    • Using e.g. synaptics installed snapd, anbox
  • Tried anbox:

Version was:

$anbox version
anbox 0.0~git20190124-1-Ubuntu

Anbox did not run, there was a module missing:

$ anbox session-manager [ 2020-01-21 18:25:14]
[session_manager.cpp:130@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded

Ok, checking if the kernel drivers are there...

$ ls -1 /dev/{ashmem,binder}
ls: cannot access '/dev/binder': No such file or directory
/dev/ashmem

Module binder is not there...

$ sudo modprobe ashmem_linux
$ sudo modprobe binder_linux
$ ls -1 /dev/{ashmem,binder}
ls: cannot access '/dev/binder': No such file or directory
/dev/ashmem

modprobe did not solve my problem...

  • Going for manual install of anbox from github.

The instructions there give a ppa for the modules, but at present ubuntu does not accept using it because it says it is unsecured. From the comments, the modules are maintained here

sudo apt install dkms
... 
dkms is already the newest version (2.7.1-4ubuntu2.1).
dkms set to manually installed.

$ sudo apt-get install linux-headers-generic
... 
linux-headers-generic is already the newest version (5.3.0.26.30).

ok, now get source code...

$ cd /tmp
/tmp$ git clone https://github.com/anbox/anbox-modules.git
/tmp$ cd anbox-modules/

Modprobe works, lsmod shows the modules loaded, but /dev/binder is still not there... :S

ntg
  • 571