Ubuntu – “Failure to download extra data files” with ttf-mscorefonts-installer on Ubuntu 16.04

downloadsfontsinternetnotificationupdates

I have been receiving notifications about "failure to download extra data files" from update notifier. It asked me to download fonts in request from the ttf-mscorefonts-installer package. However, whenever I click on the "run this action now", a window pop up (see figure below) and it never got downloaded.

enter image description here

It keeps "waiting for headers" until timeout. Same thing will happen if I use the wget in terminal to download the package:

wget downloads.sourceforge.net/corefonts/andale32.exe
--2016-05-02 11:57:32--  http://downloads.sourceforge.net/corefonts/andale32.exe
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 

It will fail again.

I have noticed similar issues like this one, but the known solutions never worked on me. The wired thing is that I can download the font package from a browser like Chrome, and run the following command to fix the font problem:

sudo dpkg-reconfigure ttf-mscorefonts-installer

with the fonts folder directed. But my question is do I have any problem with my package-data-downloader and terminal configuration? The sudo apt-get update command can run with a few errors and warning showing that but generally it can download data from internet. It only fails when the terminal connect to sourceforge or maybe similar websites.

Hopefully you have some idea on how to make the download from terminal work for all cases. Let me know what else information I can provide. Thanks!

Best Answer

Summary:

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb
sudo apt-get purge ttf-mscorefonts-installer -y
sudo apt install ./ttf-mscorefonts-installer_3.7_all.deb

This seems to be an Ubuntu server problem for now. Below is a temporary workaround to avoid this problem:

Download all the fonts except for wd97vwr32.exe from the sourceforge site using your favorite internet browser. Put all of the exe files in one folder.

Then run the command line in your terminal:

sudo dpkg-reconfigure ttf-mscorefonts-installer

with the fonts folder directed.

Notice that you may need to repeat this operation for a couple of times if there are more missing-fonts messages popping up. For all missing fonts, you should try searching for the missed fonts, download the exe files and put them in the fonts folder created in the previous step and redo the command line until no more error messages pop up.

The prompt will stop popping out after this. As pointed out in the other answer, this is a bug of the Ubuntu 16.04 system, and hopefully it will be fixed at the root soon.

Update on 2018-11-6: A better/easier workaround is to download the 3.7 or the latest version of ttf-mscorefonts-installer from Debian. Double clicking and installing that package with gnome's software center (and probably also ubuntu's software center) works perfectly. Or, if you would like to run some code, here you go:

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb -P ~/Downloads

will download the package to your Downloads folder, and

sudo apt install ~/Downloads/ttf-mscorefonts-installer_3.7_all.deb
Related Question