11

I have the package installed. Now I want to use it to install the ms ttfonts, as stated in the description:

"This package allows for easy installation of the Microsoft True Type Core Fonts for the Web including: [list of fonts]"

so, how do I install the fonts?

7

The packages comes with a post-install script (that is, literally a script that is executed after the package has been installed), which automatically downloads the fonts from Microsoft.

They should already be installed on your system, right after you have Accepted the end-user license agreement.

You can find the fonts in /usr/share/fonts/truetype/msttcorefonts/. You may (I'm really not sure) need to refresh the font-cache so that applications can use them, or maybe the script has done that for you. The easiest way to make sure everything is up to date is to reboot your computer.

If the folder /usr/share/fonts/truetype/msttcorefonts/ is empty try to use the command sudo apt-get install --reinstall ttf-mscorefonts-installer and agree the license

  • 2
    How do you accept the end user license? I can't click the "ok", I have tried enter and the space key with no luck. I can page up and page down through the license agreement but unable to accept it. – LukeS Apr 8 '14 at 4:07
  • 1
    The OK can be highlighted by pressing either the arrow keys or the TAB key. Once highlighted, press Enter key to press OK. – user68186 Oct 30 '17 at 20:45
  • The "--reinstall" worked! You're a life saver... Thank you! – Robin Hood Apr 27 '18 at 18:44
  • 1
    The --reinstall command fails in 18.10 with Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/andale32.exe Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror=netix.dl.sourceforge.net' is forbidden what a pain: bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1719863 – Ciro Santilli 新疆改造中心996ICU六四事件 Dec 16 '18 at 0:13
7

Just run the installer by:

sudo apt install ttf-mscorefonts-installer

To accept the license simply press Tab key until the 'O.k.' is highlighted and then Return.

In some cases the package ttf-mscorefonts-installer fails to install properly with a message:

E: Failed to fetch http://downloads.sourceforge.net/corefonts/arial32.exe HttpError400

In this case after the install finished do the following:

Create a temporary directory and navigate into it:

TMP=$(mktemp -d)
cd "$TMP"

After that you can use the following command to download all the fonts from their sourceforge location:

awk '/Url/ {system("wget "$2)}' /usr/share/package-data-downloads/ttf-mscorefonts-installer

Now run the updater to install them finaly:

sudo /usr/lib/msttcorefonts/update-ms-fonts "$TMP"/*

All left to do now is to clear out the file telling the system that the install was incomplete.

sudo touch /var/lib/update-notifier/package-data-downloads/ttf-mscorefonts-installer

And wrap up behind you, navigating out of the temporary directory and removing it:

cd ..
rm -r "$TMP"

In some cases you need to reboot to get the fonts recognized.

Tested and needed on Ubuntu 15.10, 16.04, 16.10, 17.04 and 17.10!

1

In my case, Linux Mint 19 (based on Ubuntu 18.04), I have used the command stated by @Videonauth:

sudo apt install ttf-mscorefonts-installer

...but the way to accept the license agreement is TAB key and then SPACE bar (TAB key and ENTER key was not working).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.