geeks-r-us / anbox-playstore-installer

Install script that automates installation of googles playstore in anbox
MIT License
655 stars 155 forks source link

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

Closed 4joey1 closed 2 years ago

4joey1 commented 3 years ago

I am getting error below when I run the ./install-playstore.sh script

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

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

4joey1 commented 3 years ago

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 on https://github.com/geeks-r-us/anbox-playstore-installer/issues/54 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?

13banda commented 3 years ago

just make sure anbox install using snap and remove other installation which anybox to find installation folder . make sure it is under /snap or /var/snap

Anil-v29 commented 3 years ago

Having the same issue!

Anil-v29 commented 3 years ago

just make sure anbox install using snap and remove other installation which anybox to find installation folder . make sure it is under /snap or /var/snap

Can you elaborate? I don't understand

buddhi-deep commented 3 years ago

ok,try this guys

sudo sed -i 's/ExecStart="/ExecStart=\/usr\/bin\/anbox container-manager --daemon --privileged --data-path=\/var\/lib\/anbox --use-rootfs-overlay/g' /lib/systemd/system/anbox-container-manager.service

This will force it using rootfs-overlay But you have to install anbox in your system

buddhi-deep commented 3 years ago

Or you can do it manual,it's about exec in its systemd service

tzargoth commented 2 years ago

On my Ubuntu 18.04 system, which anbox returns '/usr/bin/anbox', which is not expected by the install script. This results in the error mentioned by the OP. However, "/var/snap/anbox/common" exists, so I added below to line 134 to include check for alternate anbox executable location:

 || [ ${ANBOX} = "/usr/bin/anbox" ]

With this, my installation has proceeded successfully.

Zeeroni commented 2 years ago

On Debian I had to run: sudo mkdir /etc/systemd/system/anbox-container-manager.service.d before running the script

This is where systemd looks for the override.conf file for /lib/systemd/system/anbox-container-manager.service. Since that file has no overrides by default, the directory /etc/systemd/system/anbox-container-manager.service.d/ doesn't exist by default on Debian systems. This script needs some extra code to create it.

leijie2015 commented 2 years ago

On Debian I had to run: sudo mkdir /etc/systemd/system/anbox-container-manager.service.d before running the script

This is where systemd looks for the override.conf file for /lib/systemd/system/anbox-container-manager.service. Since that file has no overrides by default, the directory /etc/systemd/system/anbox-container-manager.service.d/ doesn't exist by default on Debian systems. This script needs some extra code to create it.

This is a correct answer, and it works for me!

ilyasyalvac commented 2 years ago

On Debian I had to run: sudo mkdir /etc/systemd/system/anbox-container-manager.service.d before running the script

This is where systemd looks for the override.conf file for /lib/systemd/system/anbox-container-manager.service. Since that file has no overrides by default, the directory /etc/systemd/system/anbox-container-manager.service.d/ doesn't exist by default on Debian systems. This script needs some extra code to create it.

This was also worked for me and the most logical solution. Sometimes, we can not see the simplest solution or are not able to use it due to its simplicity. Thanks for the efforts.

geeks-r-us commented 2 years ago

should be fixed with #70