107

This is an old problem that deserves a bugfix, but it's getting beyond a joke now and I can't seem to work around it.

I keep getting the dreaded failed To download extra data files error in relation to ttf-mscorefonts-installer:

screenshot1

Repeatedly asking it to try again doesn't help, additionally, repeatedly trying-

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

Isn't working either. I just get at least one 404 error from one of the sourceforge links that stops it working-

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 20 not to upgrade.
Need to get 0 B/29.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 352049 files and directories currently installed.)
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
mscorefonts-eula license has already been accepted
Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) over (3.4+nmu1ubuntu2) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
Processing triggers for update-notifier-common (3.168.2) ...
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB]
Fetched 198 kB in 0s (339 kB/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)
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe [554 kB]
Fetched 554 kB in 0s (575 kB/s)                                                
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe
Get:1 http://downloads.sourceforge.net/corefonts/arialb32.exe [168 kB]
Fetched 168 kB in 0s (306 kB/s)                                                
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arialb32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe
Err:1 http://downloads.sourceforge.net/corefonts/comic32.exe
  404  Not Found
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/comic32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/comic32.exe  404  Not Found

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

The specific point at which it fails to download changed - it seems to be a sourceforge reliability problem, but this has now been going on weeks and results in annoying popups as above all the time.

How do we get this fixed and/or how can I work around it for now.

TheOdd
  • 3,012
  • It's a SourceForge issue; related discussion in bug #1607535. – Gunnar Hjalmarsson Nov 22 '16 at 13:49
  • @Anwar: Not a duplicate. The answer in the linked question doesn't seem to work any more – user000001 Nov 23 '16 at 08:50
  • You can check my answer to the source of the issue here: https://askubuntu.com/a/857970/585518 The above solution will only work if the download location will respond properly, which it still does not seem to. The link explains how to rerun the package with the files downloaded locally. – Vincent Gerris Dec 07 '16 at 09:52

2 Answers2

98

Launchpad bug #1607535 #1651923 is fixed in the “updates” repositories of Apt for Xenial and Yakkety.

  1. If you're on Ubuntu Xenial or later (16.04+) make sure that the “updates” repository is enabled and update the repository information and your packages:

    sudo apt update
    sudo apt upgrade -f
    

    This tells Apt to

    • upgrade all packages that can be replaced trivially by a new version, and
    • try to fix all inconsistent packages in the process (-f).
  2. If the fixed versions are not available for your Ubuntu release you can download the Debian version of ttf-mscorefonts-installer which doesn't suffer from this bug and install it with Software Center or on the command-line.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
  • 1
    Thanks! For 16.04 LTS installing the 3.6 deb file (with gdebi) does seem to work. :) – Julie Brandon Dec 05 '16 at 10:56
  • 2
    Nope: ttf-mscorefonts-installer is already the newest version (3.4+nmu1ubuntu2). it's so annoying! – mdesantis Dec 12 '16 at 13:28
  • 3
    @mdesantis: Yes, like I said there's no new version available in Canonical's repositories yet. Did you read any further than step 1? – David Foerster Dec 12 '16 at 13:40
  • No i didn't notice step 2 :P anyway, I solved with this solution https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1607535/comments/17 – mdesantis Dec 12 '16 at 14:47
  • 1
    @mdesantis: I'm aware of that work-around but I found it to be more difficult and fragile than a simple manual package installation. – David Foerster Dec 12 '16 at 14:51
  • After completing these steps, what is the surest way to verify that the fonts are installed? – Erel Segal-Halevi Dec 16 '16 at 09:37
  • (the way I used was to open LibreOffice and see that the fonts are there. But this may require another step of refreshing LibreOffice). – Erel Segal-Halevi Dec 16 '16 at 09:51
  • @ErelSegal-Halevi: Could you please open a new question if you have a new or follow-up question? The comment section is not suitable or meant for new questions or extended discussion. Thanks. – David Foerster Dec 16 '16 at 10:16
  • @DavidFoerster for me, as a programmer, testing is an integral part of programming... the answer provides a "program" for solving a problem, so I think it should include a procedure for testing that the program really works. – Erel Segal-Halevi Dec 16 '16 at 11:04
  • 1
    @ErelSegal-Halevi: In short, watch the output of the package manager (or its status code if you wish) and ultimately look for the fonts in the list of installed fonts. gnome-font-viewer is the default for that on Unity- or Gnome-based Ubuntu systems. – David Foerster Dec 16 '16 at 11:22
  • @DavidFoerster Please take a look at Bug #1607535, comment #65. There it is mentioned that bug #1651923 tracks the fix for that bug, there is also a mention, that bug #1607535 is actually a duplicate of bug #1651923 but that duplicate flag has been temporarily removed. – lanoxx Jan 17 '17 at 12:17
  • I have APT 1.3.4 on Yakkety and the problem persists – Mark Thornton Feb 04 '17 at 09:06
  • How did you know that -f is a "fix option"? Could you please say, where had you got the docs, because there is no mention of keys neither in the apt upgrade -h nor man apt – d.k Oct 27 '17 at 10:03
  • while I was writing the question, I found, that it had already been asked here. If you can answer it, please, do. – d.k Oct 27 '17 at 12:11
  • 1
    @user907860: Good find! See this answer which cites a manual section that defers to the manual of apt-get(8) which in turn lists the -f option. Could you please remove your comments to relieve this comment section of some clutter (hover the cursor over them to reveal the delete button with the cross mark symbol)? Thanks. – David Foerster Oct 27 '17 at 12:28
  • Repost your answer on the duplicate: https://askubuntu.com/questions/766491/failure-to-download-extra-data-files-with-ttf-mscorefonts-installer-on-ubuntu – Ciro Santilli OurBigBook.com Dec 16 '18 at 10:08
94

Had the same problem, found a solution in the web that worked for me, the other "solutions" did not work:

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
muru
  • 197,895
  • 55
  • 485
  • 740
Hsquare
  • 941