petname command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
petname: command not found
or when using sudo you get the following error message
sudo: petname: command not found
Solutions to petname: command not found
How To Fix petname: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu petname is provided by petname package.
petname is:
This utility will generate “pet names”, consisting of a random combination of an adverb, adjective, and an animal name. These are useful for unique hostnames, VMs, or containers, for instance.
To fix this problem, we can install more using the command below.
sudo apt-get -y install petname
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install petname.
sudo apt -y install petname
Or if you have aptitude installed you can use the following command.
sudo aptitude install petname
Summary
In this tutorial we learn how to fix petname command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.