systemctl start sample.service
Failed to start sample.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status sample.service' for details.
Not sure what this error means, but the lab tasks don’t seem to resolve it, and it doesn’t seem to be related to the lesson.
Hi @peter.mattingly
The error message doesn’t make a lot of sense but what you did wrong was fail to use sudo
. At the start of the lab it says
This lab requires several commands to be run as the root user. Always use sudo.
So
sudo systemctl start sample.service
will fix it.
systemctl
is a system command and always requires sudo
to do anything sensible.
Good catch!
I get the error “Sorry you cannot post a link to that host.” when trying to link to the lab. But the lab can be found at:
kodekloud{dot}com{slash}topic{slash}lab-systemd-services