If you get the message “unable to locate package” when executing the apt-get install packagename command, you need to:

  1. Check network settings, such as DNS server, tcp / ip configuration
  2. If everything is ok with the network settings, you need to register the installation sources, for this, add the following lines in the vi /etc/apt/sources.list file:
  1. After that, execute apt-get update and apt-get install the necessary package.

Are there problems with administering linux servers? Contact us: [email protected]