• Happy Coding

Ubuntu apt-get “Could not connect to…” problem

I had the following problem just one second ago when i run

apt-get update

Could not connect to us.archive.ubuntu.com:80

The problem was that i was behind a proxy which has to be set in the environment using

export http_proxy=http://PROXY IP:PROXY PORT

After this it worked and i updated my system

sudo aptitude update
sudo aptitude upgrade
sudo aptitude dist-upgrade
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Ma.gnolia
  • MisterWong
  • Reddit
  • SphereIt
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yigg
  • LinkedIn
  • Print this article!
  • Tumblr
  • Pownce
Share your opinion! Post your thoughts.