Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于解决 systemctl --user status Failed to connect to bus: No such file or directory #2

Open
calibura opened this issue Sep 5, 2024 · 0 comments

Comments

@calibura
Copy link

calibura commented Sep 5, 2024

对于解决

$ systemctl --user status
Failed to connect to bus: No such file or directory

microsoft/WSL#10205 (comment)

对于那些有需要的人guiApplications=true,其中一个可能会为你解决问题,直到有人在 WSL 中修复此问题:

sudo systemctl restart user@1000

或者

mkdir ~/run_user_1000
mv /run/user/1000/* ~/run_user_1000/
sudo umount /run/user/1000
mv ~/run_user_1000/* /run/user/1000/
rm -rf ~/run_user_1000/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant