ttf-mscorefonts-installer tries to install in 16.04 [duplicate]

Solution 1:

What you are seeing is probably the download part of the installer, which will keep trying indefinitely. This is because the location of the font files has been changed on Sourceforge, but the hard-coded location in the installer itself has not. There is a launchpad bug for this problem at https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1371783. Comment #45 in the bug report https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1371783/comments/45 explains what has happened.

The solution which worked for me (on a clean 16.04 install) and which resulted in the fonts being installed was:

# Due to a bug in ttf-mscorefonts-installer, this package must be downloaded from Debian at a later version and installed before the rest of the packages:
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

If you have already tried to install ttf-mscorefonts-installer, then it should be uninstalled first.

Solution 2:

I had the same problem after installing Ubuntu 16.04 fresh and then installing Battle.net. Launching it gave the same error message + crash. Using

sudo apt-get install --reinstall ttf-mscorefonts-installer 

...did NOT work but I finally managed to fix it using this approach:

remove first:

sudo apt-get remove ttf-mscorefonts-installer

then reinstall from new place:

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb

sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

The problem seems to be that the location of the font files has been changed on Sourceforge, and the location of the installer has not been updated (heard of using persistent URI:s anyone??). It's been explained here:

https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1371783/comments/45

Solution 3:

The msfonts server at sourceforge was down yesterday, its back now, had issues installing it in both Ubuntu and Arch but its fixed thankfully.

Solution 4:

I have the same issue on Ubuntu 16.04 LTS. Options I am trying are to:

  1. reinstall it, and
  2. if it fails I will remove it.

A. I just reinstalled ttf-mscorefonts-installer with command sudo apt-get install --reinstall ttf-mscorefonts-installer

Outcome from the apt-get log in the terminal:

ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
0% [Working]terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 56) > this->size() (which is 55)
Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...

B. If I continue to see the below message, I plan to remove it with command: sudo apt-get remove ttf-mscorefonts-installer.

Failure to download extra data files

    The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed.

    ttf-mscorefonts-installer

    The download will be attempted again later, or you can try the download again now.  Running this command requires an active Internet connection.

Hope this answer helps. If you have a better answer, pls let me know. As solution B means MS core fonts will not be available for use.

Solution 5:

For me, the following worked like a charm:

sudo apt-get remove ttf-mscorefonts-installer

then reinstall :

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb