Tag Archives: error

Ubuntu mirror problems

Ubuntu logo ubuntu.comWhen I started what I thought would be a simple update of a few of my Ubuntu server virtual machines I didn’t know how much trouble the mirrors would give me.
For a start, the sg. mirror failed to load completely. Then I found some info about ec2 mirrors, but they gave me Hash Sum mismatch problems.
Then I came across the mirror:// schema, that worked great and I managed to upgrade one system. Funny enough, I would expected the upgrade from 10.04 to result in a 12.04 but I ended up with 11.10?? Not so sure if I started with a different version or the failed update and upgrades caused this.

Now my problems really started. Trying to upgrade from 11.10 Oneric to 12.04 Precise seemed impossible. If I would use the mirror://mirrors.ubuntu.com/mirrors.txt the mirrors would fail and no package information was downloaded. Next, using the ec2 it wouldn’t even try to download as the Hash would fail.

In the end I logged into a Ubuntu server I manage in the Netherlands and download the http://mirrors.ubuntu.com/mirrors.txt. This is the list I downloaded from the Netherlands:

http://ftp.telfort.nl/pub/mirror/ubuntu/
http://ubuntu.mirror.cambrium.nl/ubuntu/
http://ftp.snt.utwente.nl/pub/os/linux/ubuntu/
http://nl3.archive.ubuntu.com/ubuntu/
http://nl.archive.ubuntu.com/ubuntu/
http://ubuntu.mirror.atratoip.net/ubuntu/
http://ubuntu.tiscali.nl/
http://osmirror.rug.nl/ubuntu/
http://mirror.nl.leaseweb.net/ubuntu/
http://mirror.i3d.net/pub/ubuntu/
http://ftp.tudelft.nl/archive.ubuntu.com/
http://mirrors.nl.eu.kernel.org/ubuntu/

Compared to the one from Singapore:

http://linux.ntuoss.org/ubuntu/
http://mirror.nus.edu.sg/ubuntu/
http://download.nus.edu.sg/mirror/ubuntu/
http://ubuntu.oss.eznetsols.org/ubuntu/
http://archive.ubuntu.com/ubuntu/

The tudelft seemed the most reliable source and when I replaced my mirrors with this one I managed to finally upgrade the server to 12.04.

So much for Ubuntu being the most user friendly Linux distro around. And shame on the mirrors in Singapore for being of such poor standard.

Ubuntu repository Singapore failures

Ubuntu logo ubuntu.comI just notice that when trying to update some of the Ubuntu server I have running that they can not find the archives. This is the error I get:

Err http://sg.archive.ubuntu.com lucid Release.gpg
Could not connect to sg.archive.ubuntu.com:80 (111.90.255.252). - connect (111: Connection refused)

I found some info about archives being hosted on the Amazon ec2 cloud so I decided to switch repository. To do this problem open the sources.list found under /etc/apt/sources.list

Original entries from sources.list

deb http://sg.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://sg.archive.ubuntu.com/ubuntu/ lucid main restricted

New entries in sources.list

deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ lucid main restricted

Now I am able to connect but I end up with the following error:

Fetched 1 B in 3s (0 B/s)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

Not much I can do about this. The same error occurs on different network locations and using different archives and different version of Ubuntu. Let’s hope they fix it soon.
You can check the mirrors that are available for your location here.