Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

1 Answer 1

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.