Authorization not available. Check if polkit service is running or see debug message for more informati
背景:
系统centos7
启动 docker :systemctl start docker
报错
Authorization not available. Check if polkit service is running or see debug message for more informati
重新安装polkit无法解决
重新启动dbus无法解决
启动polkit也同样出现这个问题
service polkit restart
Redirecting to /bin/systemctl restart polkit.service
Authorization not available. Check if polkit service is running or see debug message for more information.
/run、/run/lock到/var/run、/var/lock之间的符号链接分别被删除,这导致服务无法正常运行。
使用以下步骤将 /run 和 /run/lock 之间的符号链接恢复为 /var/run 和 /var/lock:
- 备份/var/run:
# mv /var/run /var/run.old
# mv /var/lock /var/lock.old
2.重新创建符号链接:
# ln -s /run /var/
# ln -s /run/lock /var/
- 验证链接是否已经创建:
# ls -l /var/run
# ls -l /var/lock
输出:
$ ls -l /var/run
lrwxrwxrwx。1 root root 2016 年 5 月 11 日 /var/run -> ../run
$ ls -l /var/lock
lrwxrwxrwx. 1 root root 11 May 11 2016 /var/lock -> ../run/lock
- 同步更改:
# sync; sync
6.重启服务器:
#reboot