Starting Nginx gives org.freedesktop.PolicyKit1 error
UbuntuUbuntu 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