wkhtmltopdf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
wkhtmltopdf: command not found
or when using sudo you get the following error message
sudo: wkhtmltopdf: command not found
Solutions to wkhtmltopdf: command not found
How To Fix wkhtmltopdf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu wkhtmltopdf is provided by wkhtmltopdf package.
wkhtmltopdf is:
wkhtmltopdf is a command line program which permits one to create a pdf or an image from an url, a local html file or stdin. It produces a pdf or an image like rendered with the WebKit engine.
This program requires an X11 server to run.
It is not built against a forked version of Qt hence some options are not supported.
To fix this problem, we can install more using the command below.
sudo apt-get -y install wkhtmltopdf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install wkhtmltopdf.
sudo apt -y install wkhtmltopdf
Or if you have aptitude installed you can use the following command.
sudo aptitude install wkhtmltopdf
Summary
In this tutorial we learn how to fix wkhtmltopdf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.