5
Unfortunately, in my Debian 8 jessie systemctl does not work at all.
Every systemctl
command results in:
Failed to get D-Bus connection: Unknown error -1
systecmtl status udev
Failed to get D-Bus connection: Unknown error -1
How can I fix it?
I would be grateful for your help.
1What happens if you run
systemctl status
as root? – Mark Stosberg – 2016-07-01T10:44:02.467Is dbus running? Are there related entries in /var/log/syslog or the output of
journalctl
? Is there anything that changed in the system before this error started happening? – Mark Stosberg – 2016-07-01T14:18:34.373This one maybe? That is, you prevented
systemd
from replacingsysvinit
when upgrading from Wheezy, and so you have the latter running as the init superserver, and hencesystemctl
has no one to talk to. Doesservice udev status
work? – kostix – 2016-07-01T16:01:44.670In general, I recommend to just google for the exact error message because in cases like this, chances are high you're not the first one with such problem. And in this case, you really are not ;-)
– kostix – 2016-07-01T16:03:09.833@kostix: service udev status [ ok ] udevd is running – Ivan – 2016-09-01T12:48:21.680
For me
apt-get install --reinstall systemd-sysv
followed by rebooting fixed it. This solution is specific to Debian Jessie and the way it handles SysVInit and systemd beside each other. – Hossein – 2017-03-22T22:44:24.370