"Failure to download extra data files" with ttf-mscorefonts-installer on Ubuntu 16.04

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!


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

Update on 2021-09-27: Download the last version of ttf-mscorefonts-installer (3.8 as of this date). Right click to Open With Software Install (GNOME Shell 3.36.9 / Ubuntu 20.04.3 LTS).


This is a confirmed bug in Xenial Xerus (16.04). Same error persists for me. I tried installing the ms-fonts separately using the command line which also failed. But installing by downloading the packages from the Internet through browser is possible.

For the bug tracking and the solution for the bug can be tracked through the thread link below. The bug is still open and it has not yet been solved.

https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1543280

Please report any solutions found for the bug.

UPDATE :

I found a way removing the temp files in the partial folder and installing the fonts through terminal. This worked for me.

sudo dpkg -P ttf-mscorefonts-installer
sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer

Please see the link below.

How to make ttf-mscorefonts-installer package download fonts, after it says it installed?


The solution I've found is to download Debian's version of this package:

https://packages.debian.org/en/sid/all/ttf-mscorefonts-installer/download

Then the fonts install without any problems! Hooray, and it's sad that Ubuntu failed to create a functional package when they could've just copied Debian's version and had it work!