pnginspect command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pnginspect: command not found
or when using sudo you get the following error message
sudo: pnginspect: command not found
Solutions to pnginspect: command not found
How To Fix pnginspect: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pnginspect is provided by libimage-png-libpng-perl package.
libimage-png-libpng-perl is:
Image::PNG::Libpng is a Perl library for accessing the contents of PNG (Portable Network Graphics) images. Image::PNG::Libpng enables Perl to use the “libpng” library to read and write files in PNG format.
Image::PNG::Libpng consists of Perl subroutines which mirror the C functions in libpng, plus helper subroutines to make it easier to read and write PNG data in Perl.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libimage-png-libpng-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libimage-png-libpng-perl.
sudo apt -y install libimage-png-libpng-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libimage-png-libpng-perl
Summary
In this tutorial we learn how to fix pnginspect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.