D-Bus: Failed to connect to socket

I'm trying a new distro called KaliBang. After the install I noticed this error is having problems letting multiple applications I have work:

(nm-applet:3674): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
GConf Error: No D-BUS daemon running


** (nm-applet:3674): WARNING **: Failed to initialize D-Bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

Here are the current dbus packages I have installed:

# dpkg -l | grep dbus
ii  at-spi2-core                              2.5.3-2                            i386         Assistive Technology Service Provider Interface (dbus core)
ii  dbus                                      1.6.8-1+deb7u6                     i386         simple interprocess messaging system (daemon and utilities)
ii  dbus-x11                                  1.6.8-1+deb7u6                     i386         simple interprocess messaging system (X11 deps)
ii  libaudclient2:i386                        3.2.4-1                            i386         audacious dbus remote control library
ii  libdbus-1-3:i386                          1.6.8-1+deb7u6                     i386         simple interprocess messaging system (library)
ii  libdbus-glib-1-2:i386                     0.100.2-1                          i386         simple interprocess messaging system (GLib-based shared library)
ii  libdbusmenu-qt2                           0.9.0-1                            i386         Qt implementation of the DBusMenu protocol
ii  libnet-dbus-perl                          1.0.0-1+b1                         i386         Extension for the DBus bindings
ii  libqt4-dbus:i386                          4:4.8.2+dfsg-11                    i386         Qt 4 D-Bus module
ii  libqtdbus4:i386                           4:4.8.2+dfsg-11                    i386         Qt 4 D-Bus module library
ii  padbuster                                 0.3.3-1kali1                       all          Script for performing Padding Oracle attacks
ii  python-dbus                               1.1.1-1                            i386         simple interprocess messaging system (Python interface)
ii  python-dbus-dev                           1.1.1-1                            all          main loop integration development files for python-dbus
ii  qdbus                                     4:4.8.2+dfsg-11                    i386         Qt 4 D-Bus tool

I tried reinstalling X as one forum suggest worked for others. That just seem to break X for me though. The /var/run/dbus is present, but empty:

ls -la /var/run/dbus/
total 0
drwxr-xr-x  2 messagebus messagebus  40 Nov 14 01:37 .
drwxr-xr-x 12 root       root       340 Nov 14 01:37 ..

Tried a few other suggestions online, but nothing so far has worked. Any suggestions welcome.

Make sure dbus is running. Part of dbus is a daemon which is started usually automatically but this might have failed in your case. I don't know how this "KaliBang" distribution handles runlevel services, in RedHat-based distributions this would be a chkconfig call. You might have to use something else, but essentially you need to start the daemon at entering the runlevel you are in somehow, prior to most everything else.

If the dbus daemon is running there should be a PID file in /var/run somewhere. The dbus will create the necessary socket file on startup.

I hope this helps.

bakunin

1 Like

Thank you for the reply bakunin. I apologize for not writing back sooner. During the time between replies I actually gave up and installed Bunsen Labs distro and Kali's tools on it instead. Lately I've had problems getting anyone to comment on my threads Such as this thread from August that never got a reply:

http://www.unix.com/unix-for-dummies-questions-and-answers/260465-video-card-not-configured.html

Its no biggie, I just get complacent when I get accustomed to waiting that long. Thank you for trying though. I will keep this in mind if I run into it again.