timeout errors in apt-get update/install
Firstly, I assume the timeouts are a transient problem with Ubuntu update servers in that region.
It should be noted that EC2 Ubuntu AMIs point to update servers hosted on the EC2 region you are using. It's fast (~10Mbps) and you don't pay for the bandwidth.
Having said that, there's nothing enforced about where you get your updates from. You can change your /etc/apt/sources.list
to point to different update servers in a different region. Two suggestions for a workaround:
- copy a
sources.list
from the US region over to your EU hosts. - add the following line to the top of your
sources.list
:deb mirror://mirrors.ubuntu.com/mirrors.txt oneiric main restricted universe multiverse
What's neat about the second solution is that this "mirrors.txt" file is dynamically generated via GeoIP and should always return a good and relatively close mirror. It's great for us Ubuntu users who find themselves travelling frequently.
Again, given the special nature of the archive servers on EC2, I wouldn't normally do this on a cloud instance. And I would only do either of these workarounds as a temporary measure. The problem, wherever it may be, is transient and I would expect it to be fixed fairly quickly.