Fixing the ttf-mscorefonts package in Ubuntu 9.10


- Post was last modified on November 20th, 2009.
post-thumb

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. Problem is a lot of people have had problems with this package not being able to obtain the fonts from the download mirrors provided. Read more to fix this problem.

If you were getting an error something like this when Ubuntu attempted to download the fonts:

Resolving switch.dl.sourceforge.net... 130.59.138.21
Connecting to switch.dl.sourceforge.net|130.59.138.21|: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... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|: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... 130.59.138.21
Connecting to surfnet.dl.sourceforge.net|130.59.138.21|: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:

216.34.181.59 downloads.sourceforge.net
212.219.56.167 kent.dl.sourceforge.net

Your host file should now look like this:

127.0.0.1	localhost
127.0.1.1	james-compaq

216.34.181.59 downloads.sourceforge.net
212.219.56.167 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:

213.203.218.122 mesh.dl.sourceforge.net
208.122.28.29 voxel.dl.sourceforge.net
212.219.56.167 sunet.dl.sourceforge.net
213.203.218.122 sunet.dl.sourceforge.net
208.122.28.29 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.

8 Reader Comments, Why not join the party?

  •  
  • jefdebruges
    November 27th

    Thanks, man

  • tom101
    December 18th

    Thank you !

  • sumu
    December 21st

    Thanks a lot! A big life saver fix!

  • Dhilip89
    January 1st

    Thanks for this useful information, but it doesn't solve my problem yet.
    In order to solve the problem, I manually added more host in /etc/hosts.

    This is my hosts file:
    ------ Begin of file ------

    127.0.0.1 localhost
    127.0.1.1 dhilip89-pc

    216.34.181.59 downloads.sourceforge.net
    212.219.56.167 kent.dl.sourceforge.net
    213.203.218.122 mesh.dl.sourceforge.net
    208.122.28.29 voxel.dl.sourceforge.net
    212.219.56.167 sunet.dl.sourceforge.net
    213.203.218.122 sunet.dl.sourceforge.net
    208.122.28.29 sunet.dl.sourceforge.net
    211.79.60.17 nchc.dl.sourceforge.net
    130.59.138.21 switch.dl.sourceforge.net
    194.95.236.6 dfn.dl.sourceforge.net
    193.1.193.66 heanet.dl.sourceforge.net
    150.65.7.130 jaist.dl.sourceforge.net
    200.17.202.1 ufpr.dl.sourceforge.net
    150.101.135.12 internode.dl.sourceforge.net
    64.7.222.131 internap.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

    ------ End of file ------

  • tazztone
    January 4th

    thx

  • Adil
    January 30th

    Thanks a lot, I appreciate the post, it solved this nagging problem.

  • James
    January 30th

    Glad it helped!

  • Paul Bulger
    February 6th

    I have spent much time and tried many of the solutions listed here and other places. There may be many causes for this problem.
    However what I have noticed is courie32.exe seems to be just not there.
    wget http://sourceforge.net/projects/corefonts/files/the%20fonts/final/comic32.exe/download works

    but wget http://sourceforge.net/projects/corefonts/files/the%20fonts/final/courie32.exe/download just hangs up.

    This works http://sourceforge.net/projects/corefonts/files/the%20fonts/final/courie32.exe/download Wine will install this and all the other fonts but still Add/Remove and Synaptic hangs up not finding courie32.exe

Leave a Reply





Please Note:

Comments are moderated by both human and automatic resources, to help control the amount of spam comments, as well as unsuitable comments. When you post a comment it should appear instantly, but a comment may be held for moderation if it is deemed suspect for a variety of reasons such as spam, or contains content that may be unsuitable for display. If this is the case you will be notified when you post your comment. Comments are reviewed on a daily basis. For information about comments on James' Blog please click here to read the comments policy.