ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  1. v2??? 重启失败, 提示
Authorization not available. Check if polkit service is running or see debug message for more information.

  1. 检查 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.

  1. 检查 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.

  1. 手动启动 polkit
/usr/lib/polkit-1/polkitd

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

  1. 查看系统版本
cat /etc/redhat-release

CentOS Linux release 7.6.1810 (Core)

  1. 检查是否安装了 polkit
yum list installed | grep polkit

  1. 安装 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


  1. 启动 polkit
systemctl start polkit

  1. 重启 v2???
v2??? restart

posted on 2019-11-17 10:04  ramlife  阅读(3297)  评论(0编辑  收藏  举报