1. v2??? 重启失败, 提示
    
    Authorization not available. Check if polkit service is running or see debug message for more information.

2. 检查 message

vi /var/log/messages

Nov 17 08:47:34 kvm-Buffalo dbus[475]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' Nov 17 08:47:34 kvm-Buffalo systemd: Starting Authorization Manager... Nov 17 08:47:34 kvm-Buffalo systemd: polkit.service: main process exited, code=exited, status=1/FAILURE Nov 17 08:47:34 kvm-Buffalo systemd: Failed to start Authorization Manager. Nov 17 08:47:34 kvm-Buffalo systemd: Unit polkit.service entered failed state.


3. 检查 polkit

systemctl status polkit.service

  • polkit.service - Authorization Manager Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2019-11-17 09:02:29 CST; 9min ago Docs: man:polkit(8) Process: 1158 ExecStart=/usr/lib/polkit-1/polkitd --no-debug (code=exited, status=1/FAILURE) Main PID: 1158 (code=exited, status=1/FAILURE)

Nov 17 09:02:29 kvm-Buffalo.ovz systemd[1]: Starting Authorization Manager... Nov 17 09:02:29 kvm-Buffalo.ovz systemd[1]: polkit.service: main process exited, code=exited, status=1/FAILURE Nov 17 09:02:29 kvm-Buffalo.ovz systemd[1]: Failed to start Authorization Manager. Nov 17 09:02:29 kvm-Buffalo.ovz systemd[1]: Unit polkit.service entered failed state. Nov 17 09:02:29 kvm-Buffalo.ovz systemd[1]: polkit.service failed.


4. 手动启动 polkit

/usr/lib/polkit-1/polkitd

Error switcing to user polkitd: Error calling getpwnam(): Success Exiting with code 1


5. 查看系统版本

cat /etc/redhat-release

CentOS Linux release 7.6.1810 (Core)


6. 检查是否安装了 polkit

yum list installed | grep polkit


7. 安装 polkit

yum install polkit

================================================================================================================= Package Arch Version Repository Size

Installing: polkit x86_64 0.112-22.el7_7.1 updates 170 k Installing for dependencies: mozjs17 x86_64 17.0.0-20.el7 base 1.4 M polkit-pkla-compat x86_64 0.1-4.el7 base 39 k


8. 启动 polkit

systemctl start polkit


9. 重启 v2???

v2??? restart

标签: greatwall

添加新评论