Advertisement
itnetsec

Fixing broken dbus from Ubuntu 11.04 to 11.10 dist-upgrade

Nov 29th, 2011
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. #Written by: Michael Wood
  2. #Date 11-29-2011
  3.  
  4. Well it looks like dbus is broken on my Ubuntu 11.10 server after doing a dist-upgrade. Possibly due to a third party script that didn't execute correctly.
  5.  
  6. Upon startup I get a message stating:
  7. "Waiting for network configuration..."
  8. "Waiting an additional 60 seconds for network"
  9. "System will be booted without full network support"
  10.  
  11. Taking a look at /var/log/dmesg I can see the errors at the end of the file:
  12. [17.029623] init: dbus main process (696) terminated with status 1
  13. [17.029649] init: dbus main process ended, respawning
  14. [17.030584] init: Unable to connect to the system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
  15. [17.057128] init: plymouth-upstart-bridge main process (702) terminated with status 1
  16.  
  17. Running an "ifconfig" command should only show you the local loopback interface (lo). No ethernet interface (eth0) is present.
  18.  
  19. Taking a look at /var/run/dbus I noticed the init script is not removing the following lines:
  20. pid
  21. system_bus_socket|
  22.  
  23. Run this command:
  24. sudo /var/run/dbus rm -f pid system_bus_socket|
  25.  
  26. Also, it seems during this dist-upgrade the contents of /var/run and /var/lock were supposed to be transistioned to /run and /run/lock
  27. First thing you need to do is create these directories (mine were already created, but check first):
  28. sudo mkdir /run
  29. sudo mkdir /run/lock
  30.  
  31. Next copy the contents of /var/run to /run like this:
  32. sudo mv /var/run/* /run
  33.  
  34. Copy the contents from /var/lock to /run/lock:
  35. sudo mv /var/lock/* /run/lock
  36.  
  37. It's possible there may be a special mount point in use by the system. If you get any error messages trying to copy from those directories, try this:
  38. sudo rm -f <filename>
  39.  
  40. If the above command doesn't work, try unmounting the file:
  41. sudo umount -fl <filename>
  42. Now try to remove the file(s) again.
  43.  
  44. Delete the following directories:
  45. sudo rm -rf /var/run /var/lock
  46.  
  47. Now time to create symbolic links:
  48. sudo ln -s /run /var
  49. sudo ln -s /run/lock /var
  50.  
  51. Restart the machine:
  52. sudo shutdown -r now
  53.  
  54. If all went as planned everything should be working correctly now.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement