org.freedesktop.PolicyKit1 没有由任何 .service 文件提供

Adr*_*ian 10 18.04

我需要一些有关 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 上找到的一些东西,但没有帮助修复它。

请帮我解决这个问题。谢谢你。

fug*_*ggi 10

如果您不是 root,即使policykit-1已安装,您也会收到相同的错误消息。在这种情况下,您可以在命令前加上sudo.

  • 这个答案描述了导致极其难以描述的错误的最可能原因。 (2认同)