Giter VIP home page Giter VIP logo

Comments (14)

hegdenischay avatar hegdenischay commented on May 13, 2024 2

as @NickWilde263 had rightly mentioned, the correct way to solve this is to recreate the folder structure, i.e. recreate the /etc/systemd/system/anbox-container-manager.service.d/ folder and run the script as root.

changing /etc/systemd/system/anbox-container-manager.service.d/override.conf to /lib/systemd/system/anbox-container-manager.service overwrites the actual systemd service, which wouldn't be a good idea.

More info on systemd overrides here.

from anbox-playstore-installer.

mikakun18 avatar mikakun18 commented on May 13, 2024 1

Edit: For some reason I lost internet connection in Anbox after doing this (the error was Anbox bridge interface 'anbox0' doesn't exist). I don't know if it was the script or the change that I made that caused it but I was able to fix it by following the steps on the accepted answer: linux - Internet not working in Anbox on Ubuntu 18.04 - Super User. Also restart the container service again after doing these steps. But these steps for the network fix might not work for everyone, so I wouldn't recommend this solution until it can confirmed that the problem is caused by the script itself, not by the change made in the script.

I found a simple solution.

  1. First download the script to the current directory:
    wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh

  2. Open the script in your favorite text editor and find the text /etc/systemd/system/snap.anbox.container-manager.service

  3. Replace this with the path to the anbox container service. You can find it using sudo systemctl status anbox-container-manager.service or sudo systemctl status snap.anbox.container-manager.service. For me it is /lib/systemd/system/anbox-container-manager.service

  4. Save the changes to the script. Then to make it executable run in terminal:
    chmod +x install-playstore.sh

  5. Then run the script with:
    sudo ./install-playstore.sh
    (sudo is required in order to access the above directory in step 3)

Also I am running the debian variant of anbox (anbox 0.0~git20210106-1-Debian).

Hope this helps.

from anbox-playstore-installer.

nazthelizard122 avatar nazthelizard122 commented on May 13, 2024

Fixed

from anbox-playstore-installer.

Santorz avatar Santorz commented on May 13, 2024

Please how did you go about it?

from anbox-playstore-installer.

FoxieFlakey avatar FoxieFlakey commented on May 13, 2024

Please how did you go about it?

i can help give some info i same error

from anbox-playstore-installer.

4joey1 avatar 4joey1 commented on May 13, 2024

I also have same issue on Debian

from anbox-playstore-installer.

wajahatahmad avatar wajahatahmad commented on May 13, 2024

please share the solution

from anbox-playstore-installer.

FoxieFlakey avatar FoxieFlakey commented on May 13, 2024

recreate the folder structure

from anbox-playstore-installer.

r1th1k avatar r1th1k commented on May 13, 2024

./install-playstore.sh: line 132: /etc/systemd/system/anbox-container-manager.service.d/override.conf: No such file or directory
when i go through the instalation i run the script and it comes back with this error

same issue
:(

from anbox-playstore-installer.

r1th1k avatar r1th1k commented on May 13, 2024

please share the solution

if you installed using snap then change line 155 path as snap.anbox.container-manager.service

from anbox-playstore-installer.

kahuria00 avatar kahuria00 commented on May 13, 2024

./install-playstore.sh: line 155: /etc/systemd/system/snap.anbox.container-manager.service: Permission denied
how do I fix this it happened after I changed line 155

from anbox-playstore-installer.

4joey1 avatar 4joey1 commented on May 13, 2024

When I got error below

install-playstore.sh: line 155: /etc/systemd/system/anbox-container-manager.service.d/override.conf: No such file or directory

I followed the thread responses above and changed my line 155 from $SUDO cat >/etc/systemd/system/snap.anbox.container-manager.service/override.conf<<EOF to $SUDO cat >/lib/systemd/system/anbox-container-manager.service/override.conf<<EOF and ran the script again but now got error below

./install-playstore.sh: line 155: /lib/systemd/system/anbox-container-manager.service/override.conf: Not a directory

I removed the override.conf line and when I ran the script again I now got the following message

/var/lib/anbox/rootfs-overlay
Overlay no enabled ! Please check error messages!

Please confirm if I have to remove the override.conf line and how doe I finally resolve my issue?

from anbox-playstore-installer.

englianhu avatar englianhu commented on May 13, 2024

Edit: For some reason I lost internet connection in Anbox after doing this (the error was Anbox bridge interface 'anbox0' doesn't exist). I don't know if it was the script or the change that I made that caused it but I was able to fix it by following the steps on the accepted answer: linux - Internet not working in Anbox on Ubuntu 18.04 - Super User. Also restart the container service again after doing these steps. But these steps for the network fix might not work for everyone, so I wouldn't recommend this solution until it can confirmed that the problem is caused by the script itself, not by the change made in the script.

I found a simple solution.

  1. First download the script to the current directory:
    wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh
  2. Open the script in your favorite text editor and find the text /etc/systemd/system/snap.anbox.container-manager.service
  3. Replace this with the path to the anbox container service. You can find it using sudo systemctl status anbox-container-manager.service or sudo systemctl status snap.anbox.container-manager.service. For me it is /lib/systemd/system/anbox-container-manager.service
  4. Save the changes to the script. Then to make it executable run in terminal:
    chmod +x install-playstore.sh
  5. Then run the script with:
    sudo ./install-playstore.sh
    (sudo is required in order to access the above directory in step 3)

Also I am running the debian variant of anbox (anbox 0.0~git20210106-1-Debian).

Hope this helps.

+:~$ sudo systemctl status anbox-container-manager.service
● anbox-container-manager.service - Anbox Container Manager
     Loaded: loaded (/lib/systemd/system/anbox-container-manager.service; enabled; vendor pre>
    Drop-In: /etc/systemd/system/anbox-container-manager.service.d
             └─override.conf
+     Active: inactive (dead)
  Condition: start condition failed at Tue 2021-12-14 17:43:51 JST; 9min ago
             └─ ConditionPathExists=/var/lib/anbox/android.img was not met
       Docs: man:anbox(1)

Dec 14 04:35:48 Scibrokes-Trading systemd[1]: Condition check resulted in Anbox Container Man>
Dec 14 17:43:51 Scibrokes-Trading systemd[1]: Condition check resulted in Anbox Container Man>
+:~$ sudo micro /etc/systemd/system/snap.anbox.container-manager.service
+:~$ sudo systemctl status snap.anbox.container-manager.service
● snap.anbox.container-manager.service - Service for snap application anbox.container-manager
     Loaded: loaded (/etc/systemd/system/snap.anbox.container-manager.service; enabled; vendo>
+     Active: active (running) since Tue 2021-12-14 17:43:47 JST; 11min ago
   Main PID: 709052 (anbox)
      Tasks: 9 (limit: 18890)
     Memory: 4.8M
     CGroup: /system.slice/snap.anbox.container-manager.service
             └─709052 /snap/anbox/186/usr/bin/anbox container-manager --data-path=/var/snap/a>

Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:        initial>
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:        transfe>
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Successfully setup rootfs overlay
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Mounting "/var/snap/anbox/common/cache" on ">
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Mounting "/var/snap/anbox/common/data" on "/>
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Everything setup. Waiting for incoming conne>

from anbox-playstore-installer.

FoxieFlakey avatar FoxieFlakey commented on May 13, 2024

Edit: For some reason I lost internet connection in Anbox after doing this (the error was Anbox bridge interface 'anbox0' doesn't exist). I don't know if it was the script or the change that I made that caused it but I was able to fix it by following the steps on the accepted answer: linux - Internet not working in Anbox on Ubuntu 18.04 - Super User. Also restart the container service again after doing these steps. But these steps for the network fix might not work for everyone, so I wouldn't recommend this solution until it can confirmed that the problem is caused by the script itself, not by the change made in the script.
I found a simple solution.

  1. First download the script to the current directory:
    wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh
  2. Open the script in your favorite text editor and find the text /etc/systemd/system/snap.anbox.container-manager.service
  3. Replace this with the path to the anbox container service. You can find it using sudo systemctl status anbox-container-manager.service or sudo systemctl status snap.anbox.container-manager.service. For me it is /lib/systemd/system/anbox-container-manager.service
  4. Save the changes to the script. Then to make it executable run in terminal:
    chmod +x install-playstore.sh
  5. Then run the script with:
    sudo ./install-playstore.sh
    (sudo is required in order to access the above directory in step 3)

Also I am running the debian variant of anbox (anbox 0.0~git20210106-1-Debian).
Hope this helps.

+:~$ sudo systemctl status anbox-container-manager.service
● anbox-container-manager.service - Anbox Container Manager
     Loaded: loaded (/lib/systemd/system/anbox-container-manager.service; enabled; vendor pre>
    Drop-In: /etc/systemd/system/anbox-container-manager.service.d
             └─override.conf
+     Active: inactive (dead)
  Condition: start condition failed at Tue 2021-12-14 17:43:51 JST; 9min ago
             └─ ConditionPathExists=/var/lib/anbox/android.img was not met
       Docs: man:anbox(1)

Dec 14 04:35:48 Scibrokes-Trading systemd[1]: Condition check resulted in Anbox Container Man>
Dec 14 17:43:51 Scibrokes-Trading systemd[1]: Condition check resulted in Anbox Container Man>
+:~$ sudo micro /etc/systemd/system/snap.anbox.container-manager.service
+:~$ sudo systemctl status snap.anbox.container-manager.service
● snap.anbox.container-manager.service - Service for snap application anbox.container-manager
     Loaded: loaded (/etc/systemd/system/snap.anbox.container-manager.service; enabled; vendo>
+     Active: active (running) since Tue 2021-12-14 17:43:47 JST; 11min ago
   Main PID: 709052 (anbox)
      Tasks: 9 (limit: 18890)
     Memory: 4.8M
     CGroup: /system.slice/snap.anbox.container-manager.service
             └─709052 /snap/anbox/186/usr/bin/anbox container-manager --data-path=/var/snap/a>

Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:        initial>
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:        transfe>
Dec 14 17:43:48 Scibrokes-Trading anbox.container-manager[709052]:     709052:
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Successfully setup rootfs overlay
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Mounting "/var/snap/anbox/common/cache" on ">
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Mounting "/var/snap/anbox/common/data" on "/>
Dec 14 17:43:48 Scibrokes-Trading anbox[709052]: Everything setup. Waiting for incoming conne>

what this suppose to for? (is this additional information for the comment you are quoting?)

from anbox-playstore-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.