Anbox don't start after installation

Hi evereyone, i’ve installed anbox on my opensuse leap 15.2, but after installation didn’t star.
I’ve try to install DKMS package from PPA and modify startup command in anbox session-manager, but didn’t work!
the output code when i write

anbox session-manager

on console is

 2020-09-25 14:53:13] [daemon.cpp:61@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory

anyone know how to make anbox work?
Thanks to all

Hello and welcome to the openSUSE forums.

I can not find a package named Anbox in the OSS repo (nor on the software search page.

Maybe better explain what you installed from where and how. The more people understand what you are doing, the better the chance that they can help.

Hello thanks for the welcome, Anbox doesn’t have an official repo for Opensuse leap, but there are downloadable community packages here: https://software.opensuse.org/package/anbox
To install it I followed the instructions via one-click installation
after which the program did not start, so I searched the web for some solution
one solution I found was to install the DKMS package from PPA and modify startup command in anbox session-manager
Thanks to allone solution I found was to install the DKMS package from PPA

When you found it there (still wonderimg why I didn’t) and used the one-click install, you installed it from a repository. It is a home repository, which means that it is maintained by an individual (Dead_Mozay).

You probably are now subscribed to that repository. You could check with

zypper lr -d

When you want advice on that output, please post it here. *)

When you install from such a repo, it normally should install automatically all that is needed for it to function. Thus when you are missing something, the RMP there is not properly constructed. You should try to contact Dead_Mozay for this. I clicked bit around there (after login using the same credentials as here) and found an e-mail address: dead_mozay(at)opensuse.org.

*)
Because you are new here, allow me to point you to the following:
There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

This is the output:

sudo zypper lr -d
[sudo] password di root: 
#  | Alias                                | Nome                                                                                                                            | Abilitato | Controllo GPG | Aggiornamento | Priorità | Tipo   | URI                                                                                    | Servizio
---+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+-----------+---------------+---------------+----------+--------+----------------------------------------------------------------------------------------+---------
 1 | home_Dead_Mozay_anbox                | Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2) | Sì        | (r ) Sì       | No            |   99     | rpm-md | https://download.opensuse.org/repositories/home:/Dead_Mozay:/anbox/openSUSE_Leap_15.2/ | 
 2 | https-download.opensuse.org-2405b206 | home:Dead_Mozay:anbox                                                                                                           | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | https://download.opensuse.org/repositories/home:/Dead_Mozay:/anbox/openSUSE_Leap_15.2/ | 
 3 | openSUSE-Leap-15.2-1                 | openSUSE-Leap-15.2-1                                                                                                            | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                          | 
 4 | repo-debug                           | Repository di debug                                                                                                             | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/                    | 
 5 | repo-debug-non-oss                   | Debug Repository (Non-OSS)                                                                                                      | No        | ----          | ----          |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/                | 
 6 | repo-debug-update                    | Repository degli aggiornamenti (Debug)                                                                                          | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss                                | 
 7 | repo-debug-update-non-oss            | Update Repository (Debug, Non-OSS)                                                                                              | No        | ----          | ----          |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                           | 
 8 | repo-non-oss                         | Repository Non-OSS                                                                                                              | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                      | 
 9 | repo-oss                             | Repository principale                                                                                                           | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                          | 
10 | repo-source                          | Repository dei sorgenti                                                                                                         | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/                   | 
11 | repo-source-non-oss                  | Source Repository (Non-OSS)                                                                                                     | No        | ----          | ----          |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/               | 
12 | repo-update                          | Repository principale degli aggiornamenti                                                                                       | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                                      | 
13 | repo-update-non-oss                  | Repository degli aggiornamenti (Non-Oss)                                                                                        | Sì        | (r ) Sì       | Sì            |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/

now I try to send an email to the address you provided

Thanks

I do not know how this happened (the one-click install has some drawbacks), but the first two there are identical (look at the URIs). So better remove one of them.
I would suggest to remove #1, because that has the silly long name:

zypper rr 1

Post:

zypper se -sir https://download.opensuse.org/repositories/home:/Dead_Mozay:/anbox/openSUSE_Leap_15.2/
uname -a

dkms is installed?

zypper se -s dkms
zypper se -sir https://download.opensuse.org/repositories/home:/Dead_Mozay:/anbox/openSUSE_Leap_15.2/
Caricamento dati del repository in corso...
Lettura dei pacchetti installati in corso...

S  | Nome               | Tipo      | Versione                                      | Arch.  | Repository
---+--------------------+-----------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------------------------
i+ | anbox              | pacchetto | 0.0.1-lp152.1.8                               | x86_64 | Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)
i  | anbox-kmp-default  | pacchetto | 0.0.1.git20191114_k5.3.18_lp152.19-lp152.7.37 | x86_64 | Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)
i+ | anbox-modules-dkms | pacchetto | 0.0.1.git20191114-lp152.8.32                  | noarch | Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)
zypper se -s dkms
Il repository 'Repository degli aggiornamenti (Debug)' non è aggiornato. È possibile eseguire 'zypper refresh' da root per aggiornarlo.
Il repository 'Repository principale degli aggiornamenti' non è aggiornato. È possibile eseguire 'zypper refresh' da root per aggiornarlo.
Caricamento dati del repository in corso...
Lettura dei pacchetti installati in corso...

S  | Nome               | Tipo               | Versione                     | Arch.  | Repository
---+--------------------+--------------------+------------------------------+--------+--------------------------------------------------------------------------------------------------------------------------------
i+ | anbox-modules-dkms | pacchetto          | 0.0.1.git20191114-lp152.8.32 | noarch | Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)
i+ | anbox-modules-dkms | pacchetto          | 0.0.1.git20191114-lp152.8.32 | noarch | home:Dead_Mozay:anbox
   | anbox-modules-dkms | pacchetto sorgente | 0.0.1.git20191114-lp152.8.32 | noarch | Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)
   | anbox-modules-dkms | pacchetto sorgente | 0.0.1.git20191114-lp152.8.32 | noarch | home:Dead_Mozay:anbox
i  | dkms               | pacchetto          | 2.3-lp152.3.2                | noarch | openSUSE-Leap-15.2-1
i  | dkms               | pacchetto          | 2.3-lp152.3.2                | noarch | Repository principale
   | dkms               | pacchetto sorgente | 2.3-lp152.3.2                | noarch | Repository dei sorgenti

thanks to all

sudo zypper rr 1
Rimozione del repository 'Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)' ..............................[fine]
Il repository 'Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)' è stato rimosso.

done but anbox doesn’t work:'(

First:
Please use

LANG=C zypper lr -d

With LANG=C you get an english ouput.

Also:
Edit done by the User
Please delete this Repo in Yast— Softawre----Software Repositories:

Anbox is container based approach to boot a full Android system on a regular GNU Linux system like Ubuntu. (openSUSE_Leap_15.2)

You have copied the description into the name field and that make its difficult to see something.
That Repo is also double, this one is the same:

home:Dead_Mozay:anbox

Edit done by the User

That wasn’t to make anbox working, but to tidy up your repo list.

A worse application, the kmp is not developed for a long time, does not build with kernel 5.8…

So why it is not working?
Start it from terminal.

And post the whole output.

:~>anbox
NAME:
    anbox - anbox

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

COMMANDS:
    wait-ready                     Wait until the Android system has successfully booted                                               
    help                           prints a short help message                                                                         
    session-manager                Run the the anbox session manager                                                                   
    launch                         Launch an Activity by sending an intent                                                             
    check-features                 Check that the host system supports all necessary features                                          
    system-info                    Print various information about the system we're running on                                         
    version                        print the version of the daemon
localhost:~> anbox version
anbox local-fatal: not a git repository (or any of the parent directories): .git

 

oh okay thanks

localhost:~> LANG=C zypper lr -d
#  | Alias                                | Name                                      | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                    | Service
---+--------------------------------------+-------------------------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------------------------------------+--------
 1 | https-download.opensuse.org-2405b206 | home:Dead_Mozay:anbox                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/Dead_Mozay:/anbox/openSUSE_Leap_15.2/ | 
 2 | openSUSE-Leap-15.2-1                 | openSUSE-Leap-15.2-1                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                          | 
 3 | repo-debug                           | Repository di debug                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/                    | 
 4 | repo-debug-non-oss                   | Debug Repository (Non-OSS)                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/                | 
 5 | repo-debug-update                    | Repository degli aggiornamenti (Debug)    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss                                | 
 6 | repo-debug-update-non-oss            | Update Repository (Debug, Non-OSS)        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                           | 
 7 | repo-non-oss                         | Repository Non-OSS                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                      | 
 8 | repo-oss                             | Repository principale                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                          | 
 9 | repo-source                          | Repository dei sorgenti                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/                   | 
10 | repo-source-non-oss                  | Source Repository (Non-OSS)               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/               | 
11 | repo-update                          | Repository principale degli aggiornamenti | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                                      | 
12 | repo-update-non-oss                  | Repository degli aggiornamenti (Non-Oss)  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/ 

Installation with snap:

Install:
all as root

zypper in -f anbox-kmp-default anbox-modules

These are only the kernel-modules you need, all others is with snap.

You need also snapd:
Add the repo:

zypper ar -f https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.2/ snappy

install snapd

zypper in snapd

Enable snapd:

systemctl enable snapd.service

Start snapd.service:

systemctl start snapd.service

Now install the anbox app:

snap install --devmode --beta anbox

logout and login because:

Warning: /snap/bin was not found in your $PATH. If you’ve not restarted your session
since you installed snapd, try doing that. Please see
How to fix snap binaries not found - snapd - snapcraft.io for more details.

Now as root:
Now update to the most recent version by typing

snap refresh --beta --devmode anbox

Now you can use anbox via your KDE/Plasma/Gnome Menu.

If you want to install android apps with adb, you can install it from Hardware-Repo:

https://download.opensuse.org/repositories/hardware/openSUSE_Leap_15.2/x86_64/android-tools-9.0.0_r58-lp152.1.1.x86_64.rpm

adb is only working when anbox is running.

first step

LANG=C zypper in -f anbox-kmp-defaul anbox-modules
Loading repository data...
Reading installed packages...
Package 'anbox-kmp-defaul' not found.
Forcing installation of 'anbox-modules-0.0.1.git20191114-lp152.7.37.x86_64' from repository 'home:Dead_Mozay:anbox'.
Resolving package dependencies...

The following package is going to be reinstalled:
  anbox-modules

1 package to reinstall.
Overall download size: 7.9 KiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/v/...? shows all options] (y): s
: Invalid answer 's'.
[y/n/v/...? shows all options] (y): y
Retrieving package anbox-modules-0.0.1.git20191114-lp152.7.37.x86_64                     (1/1),   7.9 KiB (  109   B unpacked)
Retrieving: anbox-modules-0.0.1.git20191114-lp152.7.37.x86_64.rpm ......................................................[done]

Checking for file conflicts: ...........................................................................................[done]
(1/1) Installing: anbox-modules-0.0.1.git20191114-lp152.7.37.x86_64 ....................................................[done]
Installation has completed with error.

snappy

LANG=C zypper ar -f https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.2/ snappy
Adding repository 'snappy' ............................................................................................[error]
Repository named 'snappy' already exists. Please use another alias.

snapd

LANG=C zypper in snap
Retrieving repository 'snappy' metadata -----------------------------------------------------------------------------------\]

New repository or package signing key received:

  Repository:       snappy
  Key Name:         system:snappy OBS Project <system:snappy@build.opensuse.org>
  Key Fingerprint:  4F2FA05B 2C6589C3 FD12055E F7C6E425 ED340235
  Key Created:      Wed Sep  5 12:57:20 2018
  Key Expires:      Fri Nov 13 11:57:20 2020 (expires in 44 days)
  Rpm Name:         gpg-pubkey-ed340235-5b8fb690


Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Retrieving repository 'snappy' metadata ................................................................................[done]
Building repository 'snappy' cache .....................................................................................[done]
Loading repository data...
Reading installed packages...
'snap' not found in package names. Trying capabilities.
No provider of 'snap' found.
Resolving package dependencies...

Nothing to do.

snapd.service

systemctl enable snapd.service
Failed to enable unit: Unit file snapd.service does not exist.

install anbox

LANG=C snap install --devmode --beta anbox
If 'snap' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf snap


cnf snap

cnf snap
                      
The program 'snap' can be found in the following package:
  * snapd  path: /usr/bin/snap, repository: zypp (snappy) ]

Try installing with:
    zypper install snapd

now snap it’s done

zypper install snapd
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  snapd squashfs

2 new packages to install.
Overall download size: 13.8 MiB. Already cached: 0 B. After the operation, additional 64.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package squashfs-4.3-lp152.3.6.x86_64                                         (1/2), 133.1 KiB (351.1 KiB unpacked)
Retrieving: squashfs-4.3-lp152.3.6.x86_64.rpm ............................................................[done (252.1 KiB/s)]
Retrieving package snapd-2.46-lp152.1.1.x86_64                                           (2/2),  13.7 MiB ( 63.7 MiB unpacked)
Retrieving: snapd-2.46-lp152.1.1.x86_64.rpm ................................................................[done (1.2 MiB/s)]

Checking for file conflicts: ...........................................................................................[done]
(1/2) Installing: squashfs-4.3-lp152.3.6.x86_64 ........................................................................[done]
(2/2) Installing: snapd-2.46-lp152.1.1.x86_64 ..........................................................................[done]
Additional rpm output:
Please reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.
On a Tumbleweed system you need to run: systemctl enable snapd.apparmor.service

snap.service

systemctl enable snapd.service
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service -> /usr/lib/systemd/system/snapd.service.
# systemctl start snapd.service

anbox installation

snap install --devmode --beta anbox
2020-09-29T17:49:08+02:00 INFO Waiting for automatic snapd restart...
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
         installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more
         details.

anbox (beta) 4-56c25f1 from morphis installed

i’ve done logout and login

anbox refresh

snap refresh --beta --devmode anbox
snap "anbox" has no updates available

after this anbox doesn’t start, anbox open —> loading screen ----> it close

when i restart the pc ANBOX START !!!
thanks to all :):):slight_smile:

There was an typo:

LANG=C zypper in -f anbox-kmp-defaul anbox-modules

the t is missing:

LANG=C zypper in -f anbox-kmp-default anbox-modules

Changed in the post above.

PS
This command is for installing when no anbox-package is installed.
You need only those 2 packages from the repo (https://download.opensuse.org/repositories/home:/Dead_Mozay:/anbox/openSUSE_Leap_15.2/), nothing more.