If you’re an Ubuntu 18.04 user and you’ve encountered the error message “The name org.freedesktop.PolicyKit1 was not provided by any .service files”, then this guide is for you. This error often occurs when trying to start or enable certain services on your Ubuntu server. It’s typically related to user rights and can be resolved by installing the
policykit-1 package. In this article, we’ll walk you through the steps to fix this issue.
To fix the "org.freedesktop.PolicyKit1 was not provided by any .service files" error on Ubuntu 18.04, you need to install the
policykit-1 package. This package provides the necessary service and allows you to start or enable services without encountering the error message.
Understanding the Error
Before we dive into the solution, it’s important to understand what the error message means. The
org.freedesktop.PolicyKit1 in the error message refers to a service that’s required for the operation you’re trying to perform. The error message is essentially saying that this service isn’t available.
The Solution: Installing the policykit-1 Package
The solution to this issue is to install the
policykit-1 package. This package provides the
org.freedesktop.PolicyKit1 service, which is necessary for certain operations on your Ubuntu server.
Step 1: Open a Terminal
To install the
policykit-1 package, you’ll need to use the terminal. You can open a terminal by pressing
Ctrl+Alt+T on your keyboard.
Step 2: Install the policykit-1 Package
Once you have the terminal open, you can install the
policykit-1 package by running the following command:
sudo apt install policykit-1
Let’s break down this command:
sudo: This is a command that allows you to run other commands with administrative privileges. You’ll need these privileges to install packages.
apt: This is the package handling utility in Ubuntu. It’s what you use to install, update, and remove packages.
install: This is the command to install a package.
policykit-1: This is the name of the package you’re installing.
After running this command, you should be able to start or enable the services without encountering the error message.
The “org.freedesktop.PolicyKit1 was not provided by any .service files” error on Ubuntu 18.04 can be frustrating, but it’s relatively easy to fix. By installing the
policykit-1 package, you can provide the necessary service and resolve the issue. If you’re still encountering issues after following these steps, you may need to consult with a system administrator or seek help from the Ubuntu community.
You can check if the
policykit-1 package is already installed by running the following command in the terminal:
dpkg -l policykit-1. If the package is installed, it will show up in the list of installed packages.
No, you need administrative privileges to install packages on Ubuntu. You can use the
sudo command before the installation command to run it with administrative privileges.
policykit-1 package should not affect any other services or configurations on your server. It is a standard package that provides necessary system functionality.
If you’re still encountering the error after installing the
policykit-1 package, it’s recommended to consult with a system administrator or seek help from the Ubuntu community. They can provide further assistance in troubleshooting the issue.