tldextract command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tldextract: command not found
or when using sudo you get the following error message
sudo: tldextract: command not found
Solutions to tldextract: command not found
How To Fix tldextract: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tldextract is provided by tldextract package.
tldextract is:
tldextract accurately separates the gTLD or ccTLD (generic or country code top-level domain) from the registered domain and subdomains of a URL. By default, this package supports the public ICANN TLDs and their exceptions, with optional support for the Public Suffix List’s private domains as well.
This package installs the tool for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install tldextract
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tldextract.
sudo apt -y install tldextract
Or if you have aptitude installed you can use the following command.
sudo aptitude install tldextract
Summary
In this tutorial we learn how to fix tldextract command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.