我需要一些关于PolicyKit1的帮助。
我正在Ubuntu18.04服务器上运行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.或者,当我运行这个systemctl enable mastodon-*时,我得到了这个
Failed to enable unit: The name org.freedesktop.PolicyKit1 was not provided by any .service files我不知道这个错误是从哪里来的,也不知道如何修正它。我已经尝试了一些我在StackEchange上找到的东西,但没有帮助修复它。
请帮我把这件事解决掉。谢谢。
发布于 2019-01-28 09:48:42
考虑安装有需要的包装org.freedesktop.PolicyKit1文件:
sudo apt install policykit-1发布于 2020-02-11 16:12:51
如果您不是root用户,即使安装了policykit-1,也会收到相同的错误消息。在这种情况下,您可以在命令前面加上sudo。
https://askubuntu.com/questions/1113470
复制相似问题