问题解决: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
建议阅读
- Nginx屏蔽蜘蛛(查看: 1586)
- shell中too many arguments错误的解决方法(查看: 1636)
- Windows11启用电脑开机自动登录(查看: 464)
- Windows系统重启后显示系统恢复选项(查看: 26170)
- Windows系统异常重启以及蓝屏的处理(查看: 10717)
中国
中国香港特别行政区
韩国
日本
新加坡
文莱
阿富汗
不丹
美国
墨西哥
巴拿马
巴哈马
古巴
多米尼加
格陵兰
危地马拉
阿根廷
玻利维亚
巴西
智利
哥伦比亚
厄瓜多尔
法属圭亚那
巴拉圭
美国云服务器
日本云服务器
新加坡云服务器
