This question already has an answer here:
Apparently I can't get apt-get, as well as the ubuntu software centre, connect to any repository. I also tried to look for a suitable mirror using the ubuntu software centre (software sources->ubuntu software->download from->other->select best server), but it says it can't find any. My internet connection is OK (I'm writing here using the same pc on the same ubuntu), and there is no proxy.
Any ideas about what's going on?