使用systemctl 命令报错
Authorization not available. Check if polkit service is running or see debug message for more information.
查看polkit状态是失败的状态,报缺少libstdc++.so.6
systemctl status polkit
需要安装libstdc++.so.6库
先加载所有安装包
yum repolist
查看哪个安装包包含该库
yum provides libstdc++.so.6
输出可以看到
可以看到安装包libstdc++-4.8.5-39.el7.i686
yum -y install libstdc++-4.8.5-39.el7.i686
报错
glibc = 2.17-222.el7 is needed by (installed) glibc-headers-2.17-222.el7.x86_6
安装glibc-headers-dev
yum install glibc-headers
然后
yum -y install libstdc++-4.8.5-39.el7.i686
systemctl start polkit
现在systemctl命令可以正常使用了