polkit服务启动失败

使用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命令可以正常使用了

相关推荐

  1. 自定义服务启动失败

    2024-04-25 05:10:02       48 阅读
  2. CentOS 7启动数据库服务失败

    2024-04-25 05:10:02       33 阅读
  3. Docker服务启动失败,重启请求频繁被拒绝

    2024-04-25 05:10:02       57 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-25 05:10:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-25 05:10:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-25 05:10:02       82 阅读
  4. Python语言-面向对象

    2024-04-25 05:10:02       91 阅读

热门阅读

  1. 毕业论文写作指南

    2024-04-25 05:10:02       40 阅读
  2. 【软件工程与实践】(第四版)第6章习题答案详解

    2024-04-25 05:10:02       34 阅读
  3. 【Python打包exe文件】

    2024-04-25 05:10:02       39 阅读
  4. Gitea详细介绍

    2024-04-25 05:10:02       100 阅读
  5. 【python】初识爬虫

    2024-04-25 05:10:02       35 阅读
  6. 谈谈如何优雅的使用@Autowired

    2024-04-25 05:10:02       38 阅读