pkttyagent command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pkttyagent: command not found
or when using sudo you get the following error message
sudo: pkttyagent: command not found
Solutions to pkttyagent: command not found
How To Fix pkttyagent: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pkttyagent is provided by polkitd package.
polkitd 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.
In a typical use of polkit, an unprivileged application such as gnome-disks sends requests via D-Bus or other inter-process communication mechanisms to a privileged system service such as udisks, which asks polkitd for permission to process those requests. This allows the application to carry out privileged tasks without making use of setuid, which avoids several common sources of security vulnerabilities.
This package provides the polkitd D-Bus service and supporting programs. The pkexec program is not included, and can be found in the pkexec package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install polkitd
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install polkitd.
sudo apt -y install polkitd
Or if you have aptitude installed you can use the following command.
sudo aptitude install polkitd
Summary
In this tutorial we learn how to fix pkttyagent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.