pflags command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pflags: command not found
or when using sudo you get the following error message
sudo: pflags: command not found
Solutions to pflags: command not found
How To Fix pflags: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pflags is provided by python3-linux-procfs package.
python3-linux-procfs is:
Python abstractions to extract information from the Linux kernel /proc files.
The proc filesystem is a pseudo-filesystem which provides an interface to kernel data structures. This package provides a means to query that system from a Python module.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-linux-procfs
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-linux-procfs.
sudo apt -y install python3-linux-procfs
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-linux-procfs
Summary
In this tutorial we learn how to fix pflags command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.