Install libnetpbm9-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libnetpbm9-dev
Development libraries and header files (v9)
This development package contains the library and header files for the pbm, pgm, pnm, and ppm graphics formats, if the split and now deprecated libraries are used. . This package is provided for backward compatibility.