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 & lsof #22

Open
MrZhengI opened this issue Sep 21, 2023 · 1 comment
Open

systemctl & lsof #22

MrZhengI opened this issue Sep 21, 2023 · 1 comment

Comments

@MrZhengI
Copy link

wsl2 : why systemctl Failed to get D-Bus connection: Operation not permitted
lsof - i: No output for port number
image

@anr2me
Copy link

anr2me commented Feb 9, 2024

You may need to replace the systemctl as mentioned at wsldl-pg/CentWSL#11 (comment)

mv /usr/bin/systemctl /usr/bin/systemctl.old
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl
chmod +x /usr/bin/systemctl

PS: It needs python2, if not available (ie. on CentOS 9 stream), can be installed using:

wget https://github.com/niess/python-appimage/releases/download/python2.7/python2.7.18-cp27-cp27m-manylinux1_x86_64.AppImage
sudo install -m 755 python2.7.18-cp27-cp27m-manylinux1_x86_64.AppImage /usr/local/bin/
sudo ln -sr /usr/local/bin/python2.7.18-cp27-cp27m-manylinux1_x86_64.AppImage /usr/bin/python2

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

2 participants