5/5 - (2 votes)

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:
deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main
deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main
  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]