My problem is that I am behind a proxy so apt-get can’t reach the servers for downloading applications.
If you run your Ubuntu system behind a firewall and have to use proxy server for http and ftp access, then your apt-get on a newly installed Ubuntu system will probably not work.
How can I connect apt-get to internet?
- apt.conf
cp /usr/share/doc/apt/examples/apt.conf /etc/apt.conf
- Edit apt.conf and put these code
Acquire
{
Retries “0″;
http::Proxy “http://usrname:password@proxy-address:proxy-port”;
};
Change the username, password and proxy-address, proxy-port to suit your requirements.
- Save the file.
Thats all you have to do to get apt-get update running.
Execute the following commands now to check if it works fine and to update/upgrade your ubuntu system
- sudo apt-get update
- sudo apt-get upgrade
If you still find some errors after doing this, please post your comments along with the errors that you get so that I may be able to solve your problems.
Related Posts: