我需要一些有关 PolicyKit1 的帮助。
我在 Ubuntu 18.04 服务器上运行 mastodon (joinmastodon.org),但无法重新启动服务。
当我跑步时,systemctl start mastodon-web mastodon-sidekiq mastodon-streaming我得到了这个:
Failed to start mastodon-web.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status mastodon-web.service' for details.
Failed to start mastodon-sidekiq.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status mastodon-sidekiq.service' for details.
Failed to start mastodon-streaming.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status mastodon-streaming.service' for details.
Run Code Online (Sandbox Code Playgroud)
或者,当我运行它时,systemctl enable mastodon-*我得到了这个
Failed to enable unit: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Run Code Online (Sandbox Code Playgroud)
我不知道这个错误来自哪里或如何修复它。我已经尝试了我在 StackEchange 上找到的一些东西,但没有帮助修复它。
请帮我解决这个问题。谢谢你。
N0r*_*ert 23
考虑使用所需的org.freedesktop.PolicyKit1文件安装包:
sudo apt install policykit-1
Run Code Online (Sandbox Code Playgroud)
fug*_*ggi 10
如果您不是 root,即使policykit-1已安装,您也会收到相同的错误消息。在这种情况下,您可以在命令前加上sudo.
| 归档时间: |
|
| 查看次数: |
57442 次 |
| 最近记录: |