"Failure to download extra data files" after installing ttf-mscorefonts-installer

83,060

Solution 1

Solution 1:

Connect to the internet and run this command below, to fix the error

sudo apt-get install --reinstall ttf-mscorefonts-installer  

This will reinstall the package, and download the data files needed to configure the package. Wait for some times to finish downloading. The download size is approximately 4MB.

Solution 2:

  1. Connect to the internet and go to this sourceforge link and download all the .exe files there except wd97vwr32.exe file.

  2. Copy those files in your home directory.

  3. Run this command to configure the package

    sudo dpkg-reconfigure ttf-mscorefonts-installer
    
    • This will ask you whether you have downloaded microsoft fonts or not. Use Tab to select OK, and hit Enter.
    • Then again you will be asked to enter the directory name for the downloaded files, Type the location of your home directory and use Tab to select OK, and hit Enter.

      For example, if your login name is anwar, the location will be /home/anwar, because I copied the downloaded files there.

Done! you have successfully configured and setup the package.

Note: If the files cannot be downloaded due to 404 error, check the "Can't download?" section

What was the cause of the problem?

This package ttf-mscorefonts-installer is used to download Microsoft's font files (those files are made freely available by Microsoft) from the Internet and install them. Since you must accept the EULA of Microsoft to use those font files, those fonts cannot be included in the package like other Free (Free as freedom) packages.

The problem was, somehow you get disconnected from Internet before downloading those files. So, is the message asking to download more data files.

Can't download?

If you can't download the files due to 404 errors, I have prepared a tar.gz archive of the downloaded contents. You can download it from this dropbox link and extract it to a folder. If you extract it to /tmp/, you'll type that directory after the dpkg-reconfigure command in Solution 2.

Solution 2

I went to Debian's site and downloaded the ttf-mscorefonts-installer_3.6 and installed it using Gdeb, installed successfully.

Command-line example:

wget http://httpredir.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

None of the other solutions posted here worked for me.

Solution 3

I had the same issue... So, this is my workaround to fix it:

sudo apt-get remove --purge ttf-mscorefonts-installer
cd /var/lib/update-notifier/package-data-downloads
sudo rm partial/*
sudo rmdir partial
sudo mkdir partial
sudo chmod 777 partial
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer
sudo rm partial/*
sudo rmdir partial
sudo mkdir partial
sudo chmod 744 partial

Solution 4

If you're getting:

Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [969 B] Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe
Hash Sum mismatch Fetched 969 B in 1s (660 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/mir...ourceforge.net Hash Sum mismatch

E: Download Failed

Try this:

sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*

Followed by:

sudo apt-get --purge --reinstall install ttf-mscorefonts-installer

See this thread for more details.

Solution 5

Mine works with reinstalling it (found the command here and just try it out but then it worked. lol)

Uninstall command

sudo apt-get remove --purge ttf-mscorefonts-installer

Install command

sudo apt-get install --reinstall ttf-mscorefonts-installer  
Share:
83,060

Related videos on Youtube

armanke13
Author by

armanke13

yet another #random Indonesian trying to get around using some things on this ever-changing techs.

Updated on September 18, 2022

Comments

  • armanke13
    armanke13 almost 2 years

    After fresh install 12.04 I && updating apt and system restart, I always get this annoying message after reboot :

    Failure to download extra data files

    The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed.

    ttf-mscorefonts-installer

    The download will be attempted again later, or you can try the download again now. Running this command requires an active Internet connection.

    But if I run attempt now, it shows flashing terminal window and like nothing happen. It'll happen again when I restart system.

    I found someone have this problem too, but he haven't replied yet.

    • I'm a newbie here, please help.
  • Anwar
    Anwar almost 12 years
    Why should he uninstall the package ttf-mscorefonts-installer, any reason? note that ubuntu-restricted-extras also install it as a dependency. So, what is the point?
  • rubo77
    rubo77 almost 12 years
    yes, there is a reason, becouse it works!
  • nanofarad
    nanofarad almost 12 years
    @rubo77 I cannot really confirm this...
  • rubo77
    rubo77 almost 12 years
    it only worked, cause on my computer gksudo was installed. i added a new answer, that should work on kubuntu fresh install too
  • Registered User
    Registered User over 10 years
    Please have a look at this question.
  • rubo77
    rubo77 over 10 years
    I guess, you can uninstall ubuntu-restricted-extras and flashplugin-installer after al problems are solved
  • Walter Tross
    Walter Tross about 10 years
    Solution 1 solved my problem on 14.04 LTS (Trusty Tahr). Shift-Tab to select "OK", then Enter and Enter again.
  • Walter Tross
    Walter Tross about 10 years
    For the benefit of people looking for this solution, I'll add that you can get into this problem by installing Wine (wine is not mentioned on this page yet).
  • Niaz Bin Siraj
    Niaz Bin Siraj almost 9 years
    Solution 1 didn't work for me. I get the message "Hashtype mismatch" when it tried to download the font andale.ttf. Apparently the same problem is discussed and fixed at askubuntu.com/questions/543673/mscorefonts-problems
  • JohnnyBizzle
    JohnnyBizzle over 7 years
    Just tried that but now I get an issue with arial: Err:1 downloads.sourceforge.net/corefonts/arial32.exe Hash Sum mismatch
  • Alex
    Alex over 7 years
    Thanks, I've been getting this bug on Ubuntu 16.04 and 16.10 and most solutions weren't helping me. This one seemed to fix it right away, got Times New Roman working in Libre Office Writer, and got texts to display properly again in Firefox. Big help.
  • Uilian
    Uilian over 7 years
    Worked fine on Lubuntu 16.04! Thx!
  • Satya Prakash
    Satya Prakash over 7 years
    _apt privilege error came again but this time it was far better. I saw fonts installing one by one. No Error. Only Warnings. Now Fonts appear in LibreOffice.
  • marianoju
    marianoju over 7 years
    Solution 1 fails for me because of an error 404 (file not found) regarding downloads.sourceforge.net/corefonts/andale32.exe. Solution 2 fails for me because the command sudo dpkg-reconfigure ttf-mscorefonts-installer does not allow me to configure the package. (Ubuntu 16.04 LTS)
  • Anwar
    Anwar over 7 years
    @marianoju I just clicked the link and the font file is downloaded without any problem!! And sudo dpkg-reconfigure didn't allow you to configure because the font is already configured or you didn't agreed with the EULA
  • marianoju
    marianoju over 7 years
    @Anwar a) I am glad that the SourceForge link works for you, but please see answers.launchpad.net/ubuntu/+question/404484 for a log file with multiple error 404 I encountered while trying to reinstall (not only with andale32, but also comic32 and arial32). b) Shouldn't sudo dpkg-reconfigure allow me to reconfigure even if the font has already been configured? c) I did check and mscorefonts-eula license has already been accepted, so that is not the issue here.
  • Anwar
    Anwar over 7 years
    b) dpkg-reconfigure doesn't do anything if the package is already configured. In this case, i simply suggest to remove the package using sudo apt-get purge command and re-install.
  • Yuri Gor
    Yuri Gor over 7 years
    This answer works for me unlike accepted one. Purge before reinstal is a key.
  • Anwar
    Anwar over 7 years
    @marianoju I've made the font links available from dropbox now. Try that link if you can't
  • Teknogrebo
    Teknogrebo over 7 years
    As previous comment, worked for me on 16.04 when others didn't. Thanks :)
  • Ciro Santilli OurBigBook.com
    Ciro Santilli OurBigBook.com over 7 years
    That was not my problem, I've reacepted the EULA after using some other reinstall method, and problem persists. OMG, Ubuntu...
  • blong
    blong over 7 years
    Should be the accepted answer ;)
  • Edgar Magallon
    Edgar Magallon over 7 years
    If you're using solution #2 you might find this useful instead of downloading each file manually stackoverflow.com/a/41040791/773263
  • Mark
    Mark over 7 years
    Works well, is there any https link though?
  • Muaad ElSharif
    Muaad ElSharif over 7 years
    @Mark I had it before Zanna edited the answer, here you go: packages.debian.org/sid/all/ttf-mscorefonts-installer/downlo‌​ad
  • Luchostein
    Luchostein over 7 years
    Solution 1 failed for me, but Solution 2 did the thing. No checksum errors.
  • retrixe
    retrixe over 7 years
    +1 this works really good :) but why hasn't this version ended up in Ubuntu's repository tho..
  • Muaad ElSharif
    Muaad ElSharif over 7 years
    @angulared I don't know to be honest, but I'm glad it works for everyone :)
  • eri0o
    eri0o over 7 years
    I installed this using gdebi and worked!
  • Cerin
    Cerin over 7 years
    The problem is caused by broken permissions as a result of an upgrade from Trusty to Xenial, so reinstalling the package won't accomplish anything except show you the permission error.
  • Cerin
    Cerin over 7 years
    This worked once for me, but now I'm getting E: Failed to fetch https://iweb.dl.sourceforge.net/project/corefonts/the fonts/final/arialb32.exe 404 Not Found. It looks like good old Sourceforge is removing the necessary files.
  • Anwar
    Anwar over 7 years
    @Cerin the main question was about 'failure to download extra data file' error and that can be fixed following this answer, so this cannot be downvoted for that reason. If you have different error, ask another question
  • Barett
    Barett over 7 years
    Anwar, I am in the same situation as marianoju. None of these worked for me and none of the "this is why this happens" applies, either. The below Debian .deb solution worked fine, however.
  • Todd
    Todd over 7 years
    The thought of getting hung up on linux for anything having to do with Microsoft makes me sort of sick inside. What is the consequence of removing ttf-mscorefonts-installer from my system / apt sources?
  • Anwar
    Anwar over 7 years
    @Todd not very drastic. You lose some MS fonts only. Arial, Tahoma, Times new roman are some of them.
  • Mikko Rantalainen
    Mikko Rantalainen over 7 years
  • Mikko Rantalainen
    Mikko Rantalainen over 7 years
    Real cause is bug bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1607535 - it may be fixed in Ubuntu because backporting takes too much time for some reason.
  • rayryeng
    rayryeng over 7 years
    +1. Thank you. This worked for me on Ubuntu 16.04.
  • Aaron Franke
    Aaron Franke over 7 years
    Solution 1 fails on my system with Protocol "http" not supported or disabled in libcurl, full error: "Err:1 downloads.sourceforge.net/corefonts/andale32.exe Protocol "http" not supported or disabled in libcurl W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/and‌​ale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) E: Failed to fetch dronedata.dl.sourceforge.net/project/corefonts/the fonts/final/andale32.exe Protocol "http" not supported or disabled in libcurl E: Download Failed"
  • Anwar
    Anwar over 7 years
    @AaronFranke Try solution 2. Even other answers
  • Marses
    Marses almost 6 years
    For me solution 1 failed with the python script that does the installation giving a FileNotFoundError: FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/update-notifier/package-data-downloads/partial/cou‌​rie32.exe'. It seemed like everything else worked and I don't know if the fonts were actually downloaded, but the missing ttf files were still causing me errors for other stuff (i.e when calling ubuntu-support-status). In case this happens to you, I recommend also trying @muaad-elsharif 's answer, it worked for me.
  • Viesturs
    Viesturs over 5 years
    When I run sudo apt-get install --reinstall ttf-mscorefonts-installer I get Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror‌​=netix.dl.sourceforg‌​e.net' is forbidden [IP: 87.121.121.2 443] E: Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/andale32.exe Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror‌​=netix.dl.sourceforg‌​e.net' is forbidden [IP: 87.121.121.2 443] E: Download Failed
  • Bitclaw
    Bitclaw over 5 years
    Worked for me on Ubuntu 18.04
  • Serge Stroobandt
    Serge Stroobandt over 5 years
    Fails with: Err:1 http://downloads.sourceforge.net/corefonts/arialb32.exe Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror‌​=vorboss.dl.sourcefo‌​rge.net' is forbidden [IP: 5.10.152.194 443] E: Failed to fetch https://vorboss.dl.sourceforge.net/project/corefonts/the fonts/final/arialb32.exe Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror‌​=vorboss.dl.sourcefo‌​rge.net' is forbidden [IP: 5.10.152.194 443] E: Download Failed
  • Andrew
    Andrew over 4 years
    Download Failed
  • FabianoLothor
    FabianoLothor about 4 years
    Same here @SergeStroobandt
  • Serge Stroobandt
    Serge Stroobandt about 4 years
    @FabianoLothor Try my answer instead!