Problem installing Anbox

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Michael-IDA
Posts: 359
Joined: Sat Jan 12, 2019 8:00 pm

Re: Problem installing Anbox

#31 Post by Michael-IDA »

square wrote: Tue Oct 04, 2022 10:48 am I wonder how you got it to run like this.
If you look closely at your console output you'll see that the container service is not actually available:
I'm facing those same messages and running anbox afterwards does not succeed - it's stuck at `Starting...` just the same.
Does it perhaps require switching to systemd/systemctl as the init system? If that's the case either way then the snap installation seems like the simpler option.
Yes, it requires systemd. I was running it in a VM, re-read my full post to get the details.
square wrote: Tue Oct 04, 2022 10:48 am Or maybe this can be converted to init.d properly? For this I could use some help.
Please advise :-)
I gave up because even when I got Anbox to run, no .apk I was interested in would install. Also Anbox, unless it's changed, was abandoned 5 years ago.

If you want to play with it, my suggestion is to use either testing hardware or a VM. Then you can convert it to init or anything else without fubar-ing your primary system.

Best,
Michael
NIH Cancer Study: The group supplemented with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.
The day Microsoft makes a product that doesn't suck...
... is the day they make a vacuum cleaner.

square
Posts: 12
Joined: Thu Mar 10, 2022 7:54 pm

Re: Problem installing Anbox

#32 Post by square »

Ok... getting it to run was quite trivial at this point.
1. Convert the unit to sysvinit using this handy tool: https://github.com/akhilvij/systemd-to- ... nverter.py (change the shebang to python2 and install python2 package)

Code: Select all

systemd-to-sysvinit-converter /etc/systemd/system/multi-user.target.wants/anbox-container-manager.service 1>/etc/init.d/anbox-container-manager.sh
2. Enable the service

Code: Select all

update-rc.d anbox-container-manager.sh defaults
3. (probably unneccessary) reboot and `service anbox-container-manager.sh restart`
4. Install F-Droid
5. Anbox didn't have an internet connection which I solved with `/usr/share/anbox/anbox-bridge.sh start`. This might have been due to step 3 above - didn't investigate.

And then I ran into the same problem you faced, trying to install some apk I got from elsewhere.

Code: Select all

Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
Some quick research on this error however revealed to me that this is in fact not an anbox issue. It is an issue with the apk - it's built for a different CPU architecture.
Anbox is not a VM after all - it's as thin a layer as possible. Meaning that the android installation uses the same CPU you actually have (with x86_64 architecture).
From what I can tell the only solution to this is to get an apk built for that architecture (instead of ARM or such).
So the user's options are rather limit... Either find an x64 build (if one exists) or get the app author to also compile and ship for x64. (as seen here: https://stackoverflow.com/questions/364 ... es-res-113)

:confused: :eek:

User avatar
mike lovin
Posts: 36
Joined: Fri Dec 21, 2018 2:46 am

Re: Problem installing Anbox

#33 Post by mike lovin »

SwampRabbit wrote: Sun Oct 31, 2021 5:04 am
mike lovin wrote: Sun Oct 31, 2021 4:35 am Well MX-21 is out and it still don't work. It would be nice to have a hassle free anbox installation that would just work, I mean Windows and Mac has android apps working on their OS and yet Android is based on Linux and we still don't have a reliable way to use the Android apps yet. oh well, no wonder so many people don't want to switch to linux. smh :rolleyes:
Wait, I thought you volunteered to make this happen already, what’s the hold up?

No wonder people don’t want to do more in their free time to do things for people for free with comments like this. Asking nicely gets better responses.

And Android uses a highly modified Linux kernel, that doesn’t mean everything else is based on the GNU/Linux ecosystem.
What part of my statement isn't true? If you think that statement is "entitled" then you're the one with the problem, I merely stated my observations of many distros through the years. If that hurts your feelings then all I can say sorry not sorry.

User avatar
Eadwine Rose
Administrator
Posts: 14954
Joined: Wed Jul 12, 2006 2:10 am

Re: Problem installing Anbox

#34 Post by Eadwine Rose »

Take it to pm folks, we don't all need to enjoy this, thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
mike lovin
Posts: 36
Joined: Fri Dec 21, 2018 2:46 am

Re: Problem installing Anbox

#35 Post by mike lovin »

Eadwine Rose wrote: Sat Feb 18, 2023 10:27 am Take it to pm folks, we don't all need to enjoy this, thanks.
You're welcome to remove any of my post if it is deemed offensive to anyone. Thanks.

Post Reply

Return to “MX Help”