portrelease command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
portrelease: command not found
or when using sudo you get the following error message
sudo: portrelease: command not found
Solutions to portrelease: command not found
How To Fix portrelease: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu portrelease is provided by portreserve package.
portreserve is:
The portreserve program aims to help services with well-known ports that lie in the bindresvport() range (currently 600-1023). It prevents programs requesting a port to the libc from occupying a real service’s port by occupying it itself, until the real service tells it to release the port (generally in its init script).
To fix this problem, we can install more using the command below.
sudo apt-get -y install portreserve
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install portreserve.
sudo apt -y install portreserve
Or if you have aptitude installed you can use the following command.
sudo aptitude install portreserve
Summary
In this tutorial we learn how to fix portrelease command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.