user-setup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
user-setup: command not found
or when using sudo you get the following error message
sudo: user-setup: command not found
Solutions to user-setup: command not found
How To Fix user-setup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu user-setup is provided by user-setup package.
user-setup is:
This package creates an initial user, using the same code as is responsible for creating the initial user in the installer. It is only likely to be of any use if your system has no non-system users at all.
To fix this problem, we can install more using the command below.
sudo apt-get -y install user-setup
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install user-setup.
sudo apt -y install user-setup
Or if you have aptitude installed you can use the following command.
sudo aptitude install user-setup
Summary
In this tutorial we learn how to fix user-setup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.