Fonts – Fix Mscorefonts Problems on Ubuntu 14.10

14.10fonts

I tried installing ttf-mscorefonts-installer from the terminal, because I want to use Wine.

It looked kind of like it failed on the Comic Sans part. Viewing it just displays the text in another font.

Then this Failure to download extra data files window popped up.

enter image description here

I tried uninstalling ttf-mscorefonts-installer from the terminal and then reinstalling it by following the instructions in this answer. This time it failed to fetch the first font, andale32.exe. I got an error message that said: invalid content-range header.

What should I do?

Best Answer

Same problem, found a solution

  1. Install the package ttf-mscorefonts-installer, we need some things from the package later

    sudo apt-get install ttf-mscorefonts-installer
    
  2. Download and install the fonts

    TMP=$(mktemp -d)
    cd "$TMP"
    awk '/Url/ {system("wget "$2)}' /usr/share/package-data-downloads/ttf-mscorefonts-installer
    sudo /usr/lib/msttcorefonts/update-ms-fonts "$TMP"/*
    
  3. Avoid future error message

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

    cd ..
    rm -r "$TMP"
    

primary source

Problem solved ;)