问题解决:WSL的OracleLinux_7_9报错Failed to get D-Bus connection: Operation not permitted解决办法

2024-12-10 12:19 问题解决:WSL的OracleLinux_7_9报错Failed to get D-Bus connection: Operation not permitted解决办法已关闭评论

1.WSL安装OracleLinux_7_9

C:\Windows\system32>wsl --set-default-version 1
操作成功完成。

C:\Windows\system32>wsl.exe --install OracleLinux_7_9
Oracle Linux 7.9 已安装。
正在启动 Oracle Linux 7.9…

2.服务报错

Failed to get D-Bus connection: Operation not permitted
Failed to get D-Bus connection: Operation not permitted
Failed to get D-Bus connection: Operation not permitted

3.解决方案,更换systemctl文件。

1、备份systemctl文件

mv /usr/bin/systemctl /usr/bin/systemctl.old

2、获取新文件

curl https://raw.githubusercontent.com/DX-Kevin/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl

3、设置可执行

chmod +x /usr/bin/systemctl

版权声明:本文著作权归原作者所有,欢迎分享,谢谢支持!
转载请保留注明:问题解决:WSL的OracleLinux_7_9报错Failed to get D-Bus connection: Operation not permitted解决办法 | DPIP知识库
分类:Centos, Windows 标签:

评论已关闭!