systemctl debian 8 jessie: Failed to get D-Bus connection: Unknown error -1

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.

Ivan

Posted 2016-07-01T09:18:13.427

Reputation: 261

Question was closed 2017-07-28T15:59:38.723

1What happens if you run systemctl status as root? – Mark Stosberg – 2016-07-01T10:44:02.467

Is 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.373

This one maybe? That is, you prevented systemd from replacing sysvinit when upgrading from Wheezy, and so you have the latter running as the init superserver, and hence systemctl has no one to talk to. Does service udev status work? – kostix – 2016-07-01T16:01:44.670

In 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

No answers