【问题记录】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

在这里插入图片描述

重新安装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
  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值