Page 1 of 4

Problem installing Anbox

Posted: Mon Jun 21, 2021 2:55 am
by DR77
I installed snapd with this command:

Code: Select all

sudo apt install snapd
and then also run this:

Code: Select all

sudo snap install core
After that i installed Anbox with this command:

Code: Select all

snap install --devmode --edge anbox
But when i try to launch the Anbox Application Manager from the start menu nothing happens. What am i doing wrong?

System info:

Code: Select all

System:    Host: <filter> Kernel: 4.19.0-17-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
           parameters: BOOT_IMAGE=/vmlinuz-4.19.0-17-amd64 
           root=UUID=<filter> ro quiet splash 
           init=/lib/systemd/systemd 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0 
           Distro: MX-19.4_x64 patito feo November 11  2020 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: Hewlett-Packard product: HP EliteBook 8560w v: A0001D02 
           serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Hewlett-Packard model: 1631 v: KBC Version 01.39 serial: <filter> 
           BIOS: Hewlett-Packard v: 68SVD Ver. F.22 date: 01/05/2012 
Battery:   ID-1: BAT0 charge: 6.9 Wh condition: 9.9/9.9 Wh (100%) volts: 16.9/14.8 
           model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Unknown 
CPU:       Topology: Quad Core model: Intel Core i7-2820QM bits: 64 type: MT MCP 
           arch: Sandy Bridge family: 6 model-id: 2A (42) stepping: 7 microcode: 2F 
           L2 cache: 8192 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 36718 
           Speed: 1628 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 1628 2: 2364 3: 1820 
           4: 1692 5: 2063 6: 1841 7: 1786 8: 2159 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, 
           STIBP: conditional, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GF108GLM [Quadro 1000M] vendor: Hewlett-Packard driver: nvidia 
           v: 390.143 bus ID: 01:00.0 chip ID: 10de:0dfa 
           Display: x11 server: X.Org 1.20.4 driver: nvidia 
           unloaded: fbdev,modesetting,nouveau,vesa alternate: nv resolution: 1920x1080~60Hz 
           OpenGL: renderer: Quadro 1000M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.143 direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
           vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           chip ID: 8086:1c20 
           Device-2: NVIDIA GF108 High Definition Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0bea 
           Sound Server: ALSA v: k4.19.0-17-amd64 
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Hewlett-Packard driver: e1000e 
           v: 3.2.6-k port: 5020 bus ID: 00:19.0 chip ID: 8086:1502 
           IF: eth0 state: down mac: <filter> 
           Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel 
           port: 4000 bus ID: 25:00.0 chip ID: 8086:0085 
           IF: wlan0 state: up mac: <filter> 
           IF-ID-1: anbox0 state: unknown speed: N/A duplex: N/A mac: <filter> 
           IF-ID-2: vboxnet0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.02 TiB used: 892.05 GiB (85.5%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37120G size: 111.79 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: B1D1 scheme: MBR 
           ID-2: /dev/sdb vendor: HGST (Hitachi) model: HTS541010B7E610 size: 931.51 GiB 
           block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1A01 scheme: MBR 
Partition: ID-1: / raw size: 62.46 GiB size: 61.23 GiB (98.03%) used: 52.09 GiB (85.1%) fs: ext4 
           dev: /dev/dm-0 
           ID-2: /boot raw size: 500.0 MiB size: 476.2 MiB (95.24%) used: 292.8 MiB (61.5%) 
           fs: ext4 dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 52.0 C mobo: N/A gpu: nvidia temp: 51 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ buster main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb https://mirrors.netix.net/mx/MX-Packages/mx/repo/ buster main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 320 Uptime: 7h 56m Memory: 7.74 GiB used: 2.55 GiB (32.9%) Init: systemd 
           v: 241 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in 
           running in: quick-system-in inxi: 3.0.36 

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 3:31 am
by JayM
Snap packages require systemd. Consult the FAQ for more information.

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 4:27 am
by asqwerth
Check out dolphin_oracle's instructional videos on systemd and snaps:

https://www.youtube.com/watch?v=qep28UOaWrc

https://www.youtube.com/watch?v=e-DrDXNnzlg

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 7:43 am
by DR77
JayM wrote: Mon Jun 21, 2021 3:31 am Snap packages require systemd. Consult the FAQ for more information.
I know, i am booting with systemd enabled.

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 7:52 am
by Jerry3904
Then open a terminal and launch it there, so any error messages will be visible.

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 8:55 am
by DR77
How to launch it from terminal? I added /snap/bin to my $PATH, but if i type anbox in terminal it shows the usage instructions. The same happens if i type 'snap run anbox'.

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 9:32 am
by Jerry3904
Did you try to just install it from the repos? That would be the first method we recommend. Here's a simulated install on MX-19.4

Code: Select all

sudo apt install anbox -s
[sudo] password for jb: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libboost-log1.67.0 libboost-program-options1.67.0 libboost-regex1.67.0 libboost-serialization1.67.0 liblxc1
  libsdl2-image-2.0-0 lxc
Suggested packages:
  lvm2 python3-lxc
Recommended packages:
  dbus-user-session bridge-utils debootstrap libpam-cgfs lxcfs lxc-templates uidmap
The following NEW packages will be installed:
  anbox libboost-log1.67.0 libboost-program-options1.67.0 libboost-regex1.67.0 libboost-serialization1.67.0 liblxc1
  libsdl2-image-2.0-0 lxc
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Inst libboost-regex1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Inst libboost-log1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Inst libboost-program-options1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Inst libboost-serialization1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Inst liblxc1 (1:3.1.0+really3.0.3-8 Debian:10.10/stable [amd64])
Inst libsdl2-image-2.0-0 (2.0.4+dfsg1-1+deb10u1 Debian:10.10/stable [amd64])
Inst lxc (1:3.1.0+really3.0.3-8 Debian:10.10/stable [amd64])
Inst anbox (0.0~git20190124-1 Debian:10.10/stable [amd64])
Conf libboost-regex1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Conf libboost-log1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Conf libboost-program-options1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Conf libboost-serialization1.67.0 (1.67.0-13+deb10u1 Debian:10.10/stable [amd64])
Conf liblxc1 (1:3.1.0+really3.0.3-8 Debian:10.10/stable [amd64])
Conf libsdl2-image-2.0-0 (2.0.4+dfsg1-1+deb10u1 Debian:10.10/stable [amd64])
Conf lxc (1:3.1.0+really3.0.3-8 Debian:10.10/stable [amd64])
Conf anbox (0.0~git20190124-1 Debian:10.10/stable [amd64])

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 10:39 am
by DR77
Yes, before i tried the snap version i tried the version in mx repo, but if i try to launch anbox from the start menu it just shows the anbox windows and freezes.

Re: Problem installing Anbox

Posted: Mon Jun 21, 2021 8:54 pm
by Jerry3904
OK. I installed it from the repos, rebooted into systemd and saw exactly what you describe above when I tried to launch it from the Menu. Then I opened a terminal and entered just

Code: Select all

anbox
That produced a list of commands to use.

Code: Select all

anbox
Unknown command 'run'
NAME:
    anbox - anbox

USAGE:
    anbox [command options] [arguments...]

COMMANDS:
    wait-ready                     Wait until the Android system has successfully booted                                               
    check-features                 Check that the host system supports all necessary features                                          
    version                        print the version of the daemon                                                                     
    help                           prints a short help message                                                                         
    launch                         Launch an Activity by sending an intent                                                             
    session-manager                Run the the anbox session manager                                                                   
    system-info                    Print various information about the system we're running on  
I tried system-info and check-features, and those worked correctly. Then I tried session-manager:

Code: Select all

 anbox session-manager
[ 2021-06-22 00:43:58] [session_manager.cpp:130@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded
That manager also seems to show up in the launch command (as appmgr) in Whisker menu:

Code: Select all

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
I tried to load those modules but they are not installed; then looked for the modules binder and ashmem, but neither is in the MX 19.4 repos. I finally googled those names and ended up in the anbox documentation: https://docs.anbox.io/userguide/install ... dules.html

I'm done. We now know that anbox needs kernel modules (not sure if both are needed) that are found in an Ubuntu PPA or can be compiled from a GitHub repo. The directions are there so it's up to you whether you want to proceed or not.

Hope this helps--good luck.

Re: Problem installing Anbox

Posted: Tue Jun 22, 2021 2:11 am
by DR77
Thanks for the effort. Will see what i can do making anbox work.