Paul's Programming Notes PostsRSSGithub

Failed to connect to socket /var/run/dbus/system_bus_socket

Error: Can’t find out if NetworkManager is running: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory.

The following fixed the problem:

apt-get install dbus

(if you already have dbus installed: sudo service dbus start)

/etc/init.d/network-manager start

What caused the error?:

/etc/init.d/network restart