96

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!

Xiaodong Qi
  • 2,562

3 Answers3

114

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).

Manuel F
  • 168
Xiaodong Qi
  • 2,562
  • 6
    Thanks! The 30 Nov update (using the "code" you provided) seems to have solved this annoying problem for me (16.04 LTS). I tried many other proposed solutions, but this is the only one that worked. – Dɑvïd Dec 09 '16 at 10:10
  • Using the Debian package fixed it for me too on Xubuntu 16.04 LTS. – James M Dec 16 '16 at 14:11
  • 1
    Confirming this worked on 16.04 and 16.10. To test I used the normal ttf package and after 3 fail attempts and tested this one. It worked immediately, so, so far this is the only way of installing the ttf package and it's fonts. – Luis Alvarado Dec 24 '16 at 15:14
  • 3
    Thank you, looks like Dec 10 update works for me with just two commands – Nikolay Prokopyev Dec 30 '16 at 10:46
  • Thank you very much for the wget info - downloading and installing the .deb package fixed the problem immediately; in contrast to all the other solutions proposed elsewhere. – GhostCat Jan 10 '17 at 08:32
  • @XiaodongQi, what small world! Greeting from Kingston. Had the same problem on 16.10 (upgraded from 16.04). Installed the Debian package and it worked. Thanks! Hope all is well. – NahsiN Jan 14 '17 at 22:44
  • @NahsiN Glad this solved your problem! Yeah, Ubuntu is our common land. I wish everything is going well with you! – Xiaodong Qi Jan 14 '17 at 23:20
  • The debian package solved it for me in the simplest possible way. This should be marked as the answer, even when the problem is finally solved server side, this will remain valid for people that could not update for whatever reason. – Hatoru Hansou Jan 23 '17 at 18:52
  • This is still the solution for the exact same problem occurring in 18.10. By now we can use ttf-mscorefonts-installer_3.7_all.deb instead of 3.6, but the commands still work as described. – Jos Oct 22 '18 at 08:30
  • Doesn't matter what I use, gdebi, dpkg -i or apt install, the installation hangs and fails downloading content from sourceforge.net. – Shayan Sep 05 '19 at 08:58
  • Also solves the issue in 19.10. When will this get fixed? – starbeamrainbowlabs Oct 28 '19 at 20:33
  • Even if I successfully install this, it still only gives me Impact Condensed and not regular Impact. How do I get the Impact font? – Aaron Franke Dec 10 '19 at 03:32
18

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?

ItsTheBat
  • 333
  • For a temp fix, you can download the fonts in a folder and run command: sudo dpkg-reconfigure ttf-mscorefonts-installer – Xiaodong Qi May 05 '16 at 05:01
  • 1
    Just a side note: I reported to the bug you mentioned in your answer, developers have been focusing on the permission issue and such. – Xiaodong Qi May 05 '16 at 05:06
  • 4
    i get: `Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe
    Hash Sum mismatch Fetched 969 B in 1s (904 B/s)
    W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) E: Failed to fetch http://downloads.sourceforge.net/mirrorproblem?failedmirror=vorboss.dl.sourceforge.net Hash Sum mismatch

    E: Download Failed Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...`

    – sepplhans Nov 29 '16 at 09:48
  • Update worked for me a nice simple well explained solution. – RoyC Apr 25 '17 at 14:50
1

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!

Aaron Franke
  • 1,126