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

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,890
  • 56
  • 97
  • 151
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
  • 207,228
Hsquare
  • 941