checklink command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
checklink: command not found
or when using sudo you get the following error message
sudo: checklink: command not found
Solutions to checklink: command not found
How To Fix checklink: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu checklink is provided by w3c-linkchecker package.
w3c-linkchecker is:
The checklink tool is a program that reads an HTML or XHTML document, extracts a list of anchors and links and checks that no anchor is defined twice and that all the links are dereferenceable, including the fragments. It warns about HTTP redirects, including directory redirects, and can check recursively a part of a web site. The program can be used either as a command line tool or as a CGI script. The official site is available as https://validator.w3.org/checklink .
To fix this problem, we can install more using the command below.
sudo apt-get -y install w3c-linkchecker
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install w3c-linkchecker.
sudo apt -y install w3c-linkchecker
Or if you have aptitude installed you can use the following command.
sudo aptitude install w3c-linkchecker
Summary
In this tutorial we learn how to fix checklink command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.