问题解决: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
建议阅读
- SSH 登录时出现如下错误:Disconnected:No supported authentication methods available(查看: 65069)
- Windows开启内核转储(Core Dump)配置说明(查看: 18597)
- 输出主IP(查看: 1029)
- fsck 命令详解(查看: 2180)
- Windows netstat命令查看服务及监听端口进程(查看: 10180)
中国
中国香港特别行政区
韩国
日本
新加坡
文莱
阿富汗
不丹
美国
墨西哥
巴拿马
巴哈马
古巴
多米尼加
格陵兰
危地马拉
阿根廷
玻利维亚
巴西
智利
哥伦比亚
厄瓜多尔
法属圭亚那
巴拉圭
美国云服务器
日本云服务器
新加坡云服务器
