问题解决: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
建议阅读
- CentOS查看系统运行时间(查看: 3620)
- Windows添加软件开机启动项(查看: 766)
- Windows系统Hang(停止响应)的处理(查看: 12938)
- Ubuntu18.04 永久修改DNS的方法(查看: 14670)
- Windows系统开始后一直是蓝色背景屏幕(非蓝屏crash)的解决方案(查看: 8722)