Ubuntu 9.10 since it’s release has caused quite a storm in the linux community both good and bad. While Ubuntu 9.10 is the latest and greatest release of the Linux distro there have been a few slight issues with Ubuntu 9.10. One of the problems I’ve had with the Ubuntu 9.10 is with a package called mscorefonts. This package contains Windows fonts such as Arial and Impact that are used in such programs such as Wine, the Windows compatibility layer that allows you to install and run windows applications in Ubuntu.
If you were getting an error something like this when Ubuntu attempted to download the fonts:
Resolving switch.dl.sourceforge.net... 18.104.22.168 Connecting to switch.dl.sourceforge.net|22.214.171.124|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://downloads.sourceforge.net/sourceforge/corefonts/arialb32.exe?download&failedmirror=switch.dl.sourceforge.net [following] --2009-10-03 18:10:40-- http://downloads.sourceforge.net/sourceforge/corefonts/arialb32.exe?download&failedmirror=switch.dl.sourceforge.net Resolving downloads.sourceforge.net... 126.96.36.199 Connecting to downloads.sourceforge.net|188.8.131.52|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://surfnet.dl.sourceforge.net/project/corefonts/the%20fonts/final/arialb32.exe [following] --2009-10-03 18:10:55-- http://surfnet.dl.sourceforge.net/project/corefonts/the%20fonts/final/arialb32.exe Resolving surfnet.dl.sourceforge.net... 184.108.40.206 Connecting to surfnet.dl.sourceforge.net|220.127.116.11|:80... failed: Connection timed out.
Then hopefully this post will help you. Basically what happens is when Ubuntu attempts to download the fonts the DNS times out which then results in a different download mirror to be tried in order to obtain the font but none of them will work so the mscorefonts package is stuck in a connection time out loop until all mirrors have been tried. I was able to fix the problem with a simple change to one file.
Start by opening a terminal window and putting in this command:
sudo gedit /etc/hosts
This should bring up your host file which should look similar to this:
127.0.0.1 localhost 127.0.1.1 james-compaq # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
We are going to add a couple of URL’s to the hosts file. Before the IPv6 capable hosts add the following hosts to the hosts file:
18.104.22.168 downloads.sourceforge.net 22.214.171.124 kent.dl.sourceforge.net
Your host file should now look like this:
127.0.0.1 localhost 127.0.1.1 james-compaq 126.96.36.199 downloads.sourceforge.net 188.8.131.52 kent.dl.sourceforge.net # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
Adding these hosts to your hosts file should allow Ubuntu to download the fonts properly. Save the /etc/hosts file and close the text editor. Now you will have to reinstall the mscorefonts package. This can be done by going to System > Administration > Synaptic Package Manager once Synaptic has opened put “ttf-mscorefonts-installer” in the search to bring up the package. Then simply right click on the package and mark for reinstallation once it’s been marked click apply at the top to begin the re-installation of the package. You can see how installation of the fonts is going by expanding the details which will show you the status on the connections to the target server which the fonts are downloaded from.
You may experience connection timeouts still but you should find that the fonts are being downloaded rather than just constant timeouts. What this change has done is basically just added hosts which the fonts can be downloaded from properly. If the two hosts suggested above didn’t work. You can try some of these:
184.108.40.206 mesh.dl.sourceforge.net 220.127.116.11 voxel.dl.sourceforge.net 18.104.22.168 sunet.dl.sourceforge.net 22.214.171.124 sunet.dl.sourceforge.net 126.96.36.199 sunet.dl.sourceforge.net
Adding these hosts should allow you to download the fonts successfully. As far as the Ubuntu community is concerned this problem seems to be with the DNS timing out too quickly but I haven’t heard of an official fix for this problem, but the above fix should work. There are a few other methods of getting the fonts to install if adding any of the hosts don’t work but they are quite hackish type fixes and it’s safer to just add the above hosts to the /etc/hosts/ but if you are still having problems feel free to comment and I’ll reply as soon as I can.