Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
timeout errors in apt-get update/install

I am working at a client where there is no proxy server for connecting to the internet.

I can download URLs with wget from the command line, but trying to install something with apt-get times out after a long time (that is to say, I think it eventually times out, at least it does nothing for a very long time).

How can I troubleshoot connection problems with apt-get? I don't see anything like a verbose switch in the man pages. What does apt-get use for establishing connections? (I assume not wget, because like I said, that works).

share|improve this question

marked as duplicate by bodhi.zazen, Marco Ceppi Feb 23 '12 at 21:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

My first step when having problems getting packages is to choose a new server. Especially when you are having no other connection issues.

To do this you need to open the software sources dialogue which is available through the software centre.

when you open this you will see in the middle of the first tab a drop down selection. From this you need to choose other... you should then see a window similar to this

apt server selection window

Hit the Select Best Server button this will ping all of the servers in the list and choose the closest one for you. Obviously any of the servers which are down will not be selected meaning that which ever is selected will definitely be up.

If you are still having problems after this then it is a more serious problem.

Hope this helps.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.