5/5 - (2 votes)
If you get the message “unable to locate package” when executing the apt-get install packagename command, you need to:
- Check network settings, such as DNS server, tcp / ip configuration
- 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
- After that, execute apt-get update and apt-get install the necessary package.
Are there problems with administering linux servers? Contact us: [email protected]