Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
4joey1 opened this issue Mar 28, 2021 · 11 comments

Comments

@4joey1
Copy link

4joey1 commented Mar 28, 2021

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):

  • OS: [e.g. Debian]
  • Version [e.g. bullseye/sid]

Additional context
Add any other context about the problem here.

@4joey1
Copy link
Author

4joey1 commented Mar 28, 2021

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 #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
Copy link

13banda commented Apr 29, 2021

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
Copy link

Anil-v29 commented May 9, 2021

Having the same issue!

@Anil-v29
Copy link

Anil-v29 commented May 9, 2021

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
Copy link

buddhi-deep commented Jul 8, 2021

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
Copy link

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

@tzargoth
Copy link

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
Copy link

Zeeroni commented Sep 6, 2021

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
Copy link

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
Copy link

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
Copy link
Owner

should be fixed with #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants