get_root_domain command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
get_root_domain: command not found
or when using sudo you get the following error message
sudo: get_root_domain: command not found
Solutions to get_root_domain: command not found
How To Fix get_root_domain: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu get_root_domain is provided by libdomain-publicsuffix-perl package.
libdomain-publicsuffix-perl is:
Domain::PublicSuffix utilizes the “effective_tld_names.dat” provided by Mozilla as a way to effectively reduce a fully qualified domain name down to the absolute root. The Mozilla PublicSuffix file is an open source, fully documented format that shows absolute root TLDs, primarily for Mozilla’s browser products to be able to determine how far a cookie’s security boundaries go.
This module will attempt to search etc directories in /usr/share/publicsuffix, /usr, /usr/local, and /opt/local for the effective_tld_names.dat file. If a file is not found, a default file is loaded from Domain::PublicSuffix::Default, which is current at the time of the module’s release.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libdomain-publicsuffix-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libdomain-publicsuffix-perl.
sudo apt -y install libdomain-publicsuffix-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libdomain-publicsuffix-perl
Summary
In this tutorial we learn how to fix get_root_domain command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.