How To Install policykit-1 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install policykit-1
on Ubuntu 20.04.
What is policykit-1
policykit-1 is:
PolicyKit is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes.
It is a framework for centralizing the decision making process with respect to granting access to privileged operations for unprivileged (desktop) applications. Task: server, print-server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: policykit-1 Architecture: amd64 Version: 0.105-26ubuntu1 Multi-Arch: foreign Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Utopia Maintenance Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 556 Depends: dbus, libpam-systemd, libc6 (>= 2.7), libexpat1 (>= 2.0.1), libglib2.0-0 (>= 2.37.3), libpam0g (>= 0.99.7.1), libpolkit-agent-1-0 (= 0.105-26ubuntu1), libpolkit-gobject-1-0 (= 0.105-26ubuntu1), libsystemd0 (>= 213) Filename: pool/main/p/policykit-1/policykit-1_0.105-26ubuntu1_amd64.deb Size: 84040 MD5sum: e3902ce645cc432e4a7df6cbd189316b SHA1: 6bcab79115c80c14e49e91870fefddd5dc14f8a1 SHA256: 17bdca0cab317d38cccae709ae1ddb6f54d4d9598dda8fd5fa2d3c3dc023e92e Homepage: https://www.freedesktop.org/wiki/Software/polkit/ Description-en: framework for managing administrative policies and privileges PolicyKit is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes.
It is a framework for centralizing the decision making process with respect to granting access to privileged operations for unprivileged (desktop) applications. Task: server, print-server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install policykit-1
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install policykit-1 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install policykit-1
using apt-get
by running the following command:
sudo apt-get -y install policykit-1
Install policykit-1 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install policykit-1
using apt
by running the following command:
sudo apt -y install policykit-1
Install policykit-1 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install policykit-1
using aptitude
by running the following command:
sudo aptitude -y install policykit-1
How To Uninstall policykit-1 on Ubuntu 20.04
To uninstall only the policykit-1
package we can use the following command:
sudo apt-get remove policykit-1
Uninstall policykit-1 And Its Dependencies
To uninstall policykit-1
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove policykit-1
Remove policykit-1 Configurations and Data
To remove policykit-1
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge policykit-1
Remove policykit-1 configuration, data, and all of its dependencies
We can use the following command to remove policykit-1
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge policykit-1
References
Summary
In this tutorial we learn how to install policykit-1
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.