问题解决: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
建议阅读
- fsck 命令详解(查看: 2181)
- Windows自助进入安全模式操作说明(查看: 9452)
- Windows系统异常重启以及蓝屏的处理(查看: 10678)
- xfs_repair命令详解(查看: 4381)
- Windows添加软件开机启动项(查看: 860)
中国
中国香港特别行政区
韩国
日本
新加坡
文莱
阿富汗
不丹
美国
墨西哥
巴拿马
巴哈马
古巴
多米尼加
格陵兰
危地马拉
阿根廷
玻利维亚
巴西
智利
哥伦比亚
厄瓜多尔
法属圭亚那
巴拉圭
美国云服务器
日本云服务器
新加坡云服务器
