How to fix ubuntu apt-get connection problems

Written by on Wednesday January 9, 2013 - Permalink -
Today I tried to install LAMP on my notebook and got a lot of errors from Ubuntu apt-get, related to connection problems - the server (br server) from which it was trying to download the updates was apparently down. If you ever get these kind of errors on apt-get:
Err precise/main libapr1 amd64 1.4.6-1
Something wicked happened resolving '' (-5 - No address associated with hostname)
And your internet seems to be ok (in a nutshell, the archive server is offline), there's a super easy way to fix it: just go to Ubuntu Software Center, then select the "Edit  -> Software Sources...". Screenshot-from-2013-01-09-112435 You can change it to "Server for United States" or another location which suits you better. Then, run a
sudo apt-get update
And that's all. You can try to install your software again and it will be okay (unless you're facing internet problems).
comments powered by Disqus