Starting Nginx gives org.freedesktop.PolicyKit1 error

Ubuntu

Ubuntu Problem Overview


I just started to build a ubuntu server on DigitalOcean. When I start the nginx service, it gives the following error:

/etc/nginx/sites-enabled$ service nginx start
Failed to start nginx.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files

I have never seen this before and searching on google seemed the solutions were not quite straightforward.

Ubuntu Solutions


Solution 1 - Ubuntu

stupid me, forgot to run sudo

sudo service nginx start

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJames LinView Question on Stackoverflow
Solution 1 - UbuntuJames LinView Answer on Stackoverflow