How to Uninstall and Install policykit-1-gnome Ubuntu 22.04

Updated: August 27, 2022

PolicyKit-gnome provides a D-Bus session bus service that is used to bring up authentication dialogs used for obtaining privileges. In this tutorial, I will show you ways to install policykit-1-gnome Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install policykit-1-gnome on Ubuntu 22.04

Install policykit-1-gnome Ubuntu 22.04

policykit-1-gnome is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install policykit-1-gnome using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these instructions to install policykit-1-gnome on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install policykit-1-gnome Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install policykit-1-gnome

Install policykit-1-gnome using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

After that, you can now install policykit-1-gnome by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install policykit-1-gnome Ubuntu by executing this command in the terminal.

sudo aptitude install policykit-1-gnome

Uninstall policykit-1-gnome on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a policykit-1-gnome, can be easily uninstalled by anyone.

If you installed policykit-1-gnome using APT or Aptitude, you could uninstall policykit-1-gnome on Ubuntu by executing this command

sudo apt remove --auto-remove policykit-1-gnome

You can also execute this command if you want to uninstall policykit-1-gnome and remove its data and dependencies:

sudo apt autoremove --purge policykit-1-gnome

Summary

In this tutorial, I showed you ways to install policykit-1-gnome on Ubuntu 22.04 and some ways to uninstall policykit-1-gnome too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.