Ubuntu Logo

ttf-mscorefonts-installer fails to install/upgrade

In the article on What to do after installing Ubuntu 16.04 we went over installing some things to the default Ubuntu install and it seems one of the processes needs the ttf-mscorefonts-installer package. Well, it seems that something is broken in that process and this article will cover how to fix it and get your system back to full throttle…

What’s the error?

Here is what I’ve seen, sometimes it happens with different fonts as well.

ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
 Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB]
 Fetched 198 kB in 12s (15.8 kB/s)
 ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
 Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe
 Fetched 552 B in 11s (47 B/s)

E: Failed to fetch http://downloads.sourceforge.net/corefonts/arial32.exe Hash Sum mismatch

E: Download Failed
 Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...

How do I fix it?

If you encounter this problem, just run the following commands:

Note:
Found this new way to fix this problem, do not use the instructions below the line of hashtags (#).

Launch a terminal and remove the failed install:

sudo apt-get remove --purge ttf-mscorefonts-installer

Get the package and install it using the following three commands:

cd ~/Downloads/
sudo wget http://mirrors.linux.iu.edu/linux/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

Problem solved.

Did this help you out? Let us know in the comments below.

#############################################################################################

cd /var/lib/update-notifier/package-data-downloads/partial
grep Url: /usr/share/package-data-downloads/ttf-mscorefonts-installer | awk '{print $2}' | sudo xargs -n 1 'wget'
cd -
sudo /usr/lib/msttcorefonts/update-ms-fonts /var/lib/update-notifier/package-data-downloads/partial/*
sudo rm -f /var/lib/update-notifier/package-data-downloads/partial/*
sudo mv /var/lib/update-notifier/package-data-downloads/ttf-mscorefonts-installer.FAILED /var/lib/update-notifier/package-data-downloads/ttf-mscorefonts-installer
sudo rm /var/lib/update-notifier/user.d/data-downloads-failed

Run the installer again to make sure the fix completed properly

sudo apt-get install ttf-mscorefonts-installer
Advertisements

4 thoughts on “ttf-mscorefonts-installer fails to install/upgrade”

  1. Couldn’t figure this out for the life of me! Thanks for linking to this in the bug report, this issue plagued the world for too long. 🙂

    Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s