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
systemd :Failed to get D-Bus connection: Operation not permitted #589
Comments
First of all, please use the newest release (which is systemd-222). Secondly, please make sure you build systemd compatible to the needs of your distribution. This usually means copying the script from the systemd-build-script of upstream. We cannot support random systemd builds combined with existing distributions. What exactly is the reason you build systemd by yourself? If you need local modifications, please use the build-tools of your distribution, which usually allows patches on packages before building them. |
For instance, building for Ubuntu requires you to pass |
Sorry, not "d-bus". Ubuntu 14.04 does not use systemd, you can't use it there yet. The first Ubuntu release where systemd is officially supported is 15.04, and it barely works on 14.10. |
Even if we use Ubuntu 15.04 This issue is the same @martinpitt i face it when i was trying to enable some of the services in one of the docker containers Output
|
the same on gentoo, with docker and after the mount -o bind of /dev, /proc, /sys in a dir for chroot |
an answer from docker: |
solution:with -rm optiion such as cmd.sh file when compile base image -----------------------business dockerfile------------------------------------------ command to build base image other information |
When I in a Ubuntu systemctl use, I get:
$ systemctl --user
Failed to get D-Bus connection: Operation not permitted
$ systemctl --system
Failed to get D-Bus connection: Operation not permitted
$ busctl --user
Failed to connect to bus: No such file or directory
when i do this ,it works
$ busctl --system
NAME PID PROCESS USER
:1.0 1 init root
:1.1 565 avahi-daemon avahi
....
//===============================
here is my environment:
Ubuntu14.04
systemd 221 install by source
//=================================
how can i fix it ?
waiting for ur help
The text was updated successfully, but these errors were encountered: