Failed to open connection to system message bus : Failed to connect to socket /var/run/dbus/system_bus_socket

Viewed 6537

When using WSL2 on Win 10 Professional (build 2004 (20236.1000) in Ubuntu 18.04

I am running into the following error: see below picture. Googling does not lead to an answer to find the root cause and the fix for this problem. Hopefully, someone else has encountered and fixed this problem (again this happens in Ubuntu18.04 in WSL2 Thanks enter image description here

2 Answers

This invoke-rc.d: could not determine current runlevel seems to be a very common issue with WSL: I've too encountered it as I was trying to set up the xfce4-desktop based on this guide.

I've found this related thread on github, maybe you'll find a solution there.

Related