Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-16-2021, 03:22 AM
|
#1
|
Member
Registered: Apr 2021
Posts: 146
Rep: 
|
Anbox fails to start : Sparky linux rolling
Hi,
I'm on Sparky rolling (=debian testing) & apt installed anbox.
Code:
anbox session-manager
gives
Code:
[daemon.cpp:61@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory
Based on some sites I've tried
Code:
systemctl start anbox-container-manager.service
but the probelm persists.
Any suggestions?.
Thanks
|
|
|
05-16-2021, 04:23 AM
|
#2
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,268
|
Do you actually have an anbox-container-manager.service file in /lib/systemd/system or /etc/systemd/system directories? Did you run the systemctl command as root?
|
|
|
05-16-2021, 04:27 AM
|
#3
|
Member
Registered: Apr 2021
Posts: 146
Original Poster
Rep: 
|
Thanks.
Code:
ls /lib/systemd/system|grep anb
-rw-r--r-- 1 root root 485 Jan 11 05:56 anbox-container-manager.service
Code:
ls /etc/systemd/system|grep anb
shows nothing.
I ran systemctl as root.
|
|
|
05-16-2021, 04:30 AM
|
#4
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,268
|
And after running it, did you use ps to check if the daemon was actually running?
Incidently, /lib/systemd/system is where packages put their systemd config files. The ones in /etc, if present at all, are user overrides.
|
|
|
05-16-2021, 04:33 AM
|
#5
|
Member
Registered: Apr 2021
Posts: 146
Original Poster
Rep: 
|
ps|grep anb
shows nothing is running though I did run the systemctl command.
|
|
|
05-16-2021, 04:38 AM
|
#6
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,268
|
Grrr! So it's a systemd problem. This is probably where I drop out as I don't use systemd. The last thing I can suggest is that you use journalctl to examine the end of the systemd journal. It might tell you why the command failed.
|
|
|
05-16-2021, 04:46 AM
|
#7
|
Member
Registered: Apr 2021
Posts: 146
Original Poster
Rep: 
|
Thanks.
journalctl shows:
Code:
Condition check resulted in Anbox Container Manager being skipped.
|
|
|
05-16-2021, 04:59 AM
|
#8
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,268
|
So I checked and it seems that modern versions of systemd allow conditions to be set in the service file. If those conditions are not met, the service doesn't start. The systemd.unit man page has a whole section on this. I suggest you start by reading it, then go through the anbox service file and check what conditions it has set for running. Some systemd users here can probably take you on from there.
Last edited by hazel; 05-16-2021 at 05:00 AM.
|
|
|
05-16-2021, 05:06 AM
|
#9
|
Member
Registered: Apr 2021
Posts: 146
Original Poster
Rep: 
|
|
|
|
05-16-2021, 06:06 AM
|
#10
|
Member
Registered: Apr 2021
Posts: 146
Original Poster
Rep: 
|
OK, the problem was that the deb package doesn't install the android image:
https://build.anbox.io/android-images
The image needs to moved at/var/lib/anbox/android.img
When the anbox is run from the apps menu it should work. A reboot might be needed.
|
|
|
All times are GMT -5. The time now is 05:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|