【问题记录】Authorization not available. Check if polkit service is running or see debug message for more

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

【问题记录】Authorization not available. Check if polkit service is running or see debug message for more_第1张图片

重新安装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:

  1. 备份/var/run:
# mv /var/run /var/run.old 
# mv /var/lock /var/lock.old

2.重新创建符号链接:

# ln -s /run /var/ 
# ln -s /run/lock /var/
  1. 验证链接是否已经创建:
# ls -l /var/run 
# ls -l /var/lock

输出:

$ ls -l /var/run
lrwxrwxrwx。1 root root 2016511 日 /var/run -> ../run
$ ls -l /var/lock 
lrwxrwxrwx. 1 root root 11 May 11 2016 /var/lock -> ../run/lock
  1. 同步更改:
# sync; sync

6.重启服务器:

#reboot

你可能感兴趣的:(bash,linux,开发语言)