116

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.
armanke13
  • 1,263

12 Answers12

104

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.

Anwar
  • 77,855
85

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.

Zanna
  • 72,312
8

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
Chris Carter
  • 3,057
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.

Luke
  • 301
  • 3
  • 6
2

Stop the nagging, install & refresh font cache

To stop the nagging about Failure to download extra data files, first remove the partial download:

$ sudo rm -R /var/lib/update-notifier/package-data-downloads/partial/

Then, download and install the Debian version of this package:

$ 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
$ rm ttf-mscorefonts-installer_3.6_all.deb

Finally, grab this opportunity to update the font cache:

$ sudo fc-cache -f -v

For Ansible automation

- name: 'Removing buggy MicroSoft™ core fonts installer.'
  apt:
    pkg: ttf-mscorefonts-installer
    state: absent

- name: 'Removing partial download of MicroSoft™ core fonts.'
  file:
    path: '/var/lib/update-notifier/package-data-downloads/partial/'
    state: absent

- name: 'Installing Debian MicroSoft™ core fonts installer.'
  # https://askubuntu.com/a/1127190/164341
  apt:
      deb: 'http://httpredir.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb'
Serge Stroobandt
  • 5,719
  • 1
  • 54
  • 59
2

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  
egotopia
  • 129
1

I went to enter link description here and downloaded the tf-mscorefonts-installer_3.6 and installed it using Gdeb, installed successfully.

None of the solutions above worked for me by the way..

0

I encountered the “Failure to download extra data files” problem after running 'sudo apt install ubuntu-restricted-extras' in Ubuntu 18.04.

I fixed the problem with these two terminal commands issued while in ~/Downloads: wget http://httpredir.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb sudo gdebi ttf-mscorefonts-installer_3.7_all.deb

Good Luck. (If gdebi is not already installed then 'sudo apt install gdebi' beforehand.

Dig
  • 341
0

Uninstall the package ttf-mscorefonts-installer and then install ubuntu-restricted-extras.

Connect to the internet and run this command:

sudo apt-get remove --purge ttf-mscorefonts-installer
sudo apt-get install ubuntu-restricted-extras

After the next start-up of your system, the message will be gone.

(I had the same problem but with even one more package in the message: flashplugin-installer) this is the annoying message I get every start: enter image description here

The whole message is very long, rightklick to download it: this is the annoying message i get every start

Maybe you have to restart the system before install the ubuntu-restricted-extras

rubo77
  • 34,024
  • 52
  • 172
  • 299
0

The above question is related to this other one.

None of the solutions provided at both questions worked for me. Hence, I decided to:

Manually install the truetype fonts

Below are the 10 steps you need to follow in order to manually install the Microsoft core truetype fonts. Unless otherwise indicated, all commands must be executed inside a shell terminal window. In most *Ubuntu distros, the Ctrl Alt T key combo (keyboard shortcut) is one of the ways you can open a new shell terminal window.

  1. Purge the ttf-mscorefonts-installer package and clean your APT cache of DEB packages:

    sudo apt-get purge ttf-mscorefonts-installer -y ; sudo apt-get update ; sudo apt-get check ; sudo apt-get clean ; sudo apt-get autoremove -y
    
  2. Install/update the Thunar file manager (it will be further needed to rename all downloaded truetype fonts):

    sudo add-apt-repository ppa:yuri-sucupira/thunar1.6.10-fix ; sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv AF8C7F18 ; sudo apt-get update ; sudo apt-get check ; sudo apt-get install thunar --reinstall -y ; sudo apt-get dist-upgrade -y
    
  3. Install/update the 7z file archiver (it's a file compactor/compressor and extractor/decompressor required to extract the truetype fonts from inside the EXE files that you'll have to download):

    sudo apt-get install p7zip p7zip-full --reinstall -y
    
  4. Create a temporary fonts folder by running this shell command:

    mkdir /tmp/fonts
    
  5. Start a web browser (like Mozilla Firefox, Google Chrome or any other one you might be using), then go to https://sourceforge.net/projects/corefonts/files/the%20fonts/final/ and download all EXE files except wd97vwr32.exe (because wd97vwr32.exe is a Word 97 Viewer: not a truetype font file). All the downloaded EXE files must be placed at /tmp/fonts

  6. Change directory (CD) into that temporary folder:

    cd /tmp/fonts
    
  7. Extract the contents of all the downloaded EXE files:

    7z e andale32.exe ; 7z e arial32.exe ; 7z e arialb32.exe ; 7z e comic32.exe ; 7z e courie32.exe ; 7z e georgi32.exe ; 7z e impact32.exe ; 7z e times32.exe ; 7z e trebuc32.exe ; 7z e verdan32.exe ; 7z e webdin32.exe
    
  8. Copy all TTF (truetype font) files into your system's Microsoft truetype fonts folder:

    sudo cp /tmp/fonts/*.TTF /usr/share/fonts/truetype/msttcorefonts/
    
    • Note: if /usr/share/fonts/truetype/msttcorefonts/ doesn't exist, create it by running the shell command sudo mkdir /usr/share/fonts/truetype/msttcorefonts/
  9. Start Thunar in superuser mode, inside the Microsoft truetype fonts folder:

    sudo thunar /usr/share/fonts/truetype/msttcorefonts/
    
  10. Now, at the new Thunar window (path: /usr/share/fonts/truetype/msttcorefonts/), go to the Thunar menu and then select the option Edit and then hit Select all files. Then hit the F2 key (or go to the Edit menu option and click on Rename..., or still right-click onto the area where the files were selected and choose the Rename... option), change the first field on the left to Uppercase / Lowercase (if you need an example, take a look at this picture) and then change the right-side field to Name and suffix. Finally, at the Convert to: field, change its parameter to lowercase and then hit the Rename files button.

...and that's it!

If you did everything as explained here, you'll now have all the Microsoft core truetype fonts installed. Start e.g. LibreOffice Writer and check if fonts such as Arial and Comic Sans are available. If they are, the fonts were correctly added to your system.

PS: the leftovers at /tmp/fonts will be eliminated on the next system (re)boot. Hence, you don't need to worry about them.

Yuri Sucupira
  • 1,024
  • 2
  • 15
  • 28
-1

look for the file gksudo

which gksudo

and for kdesudo

which kdesudo

since i use kubuntu, gksudo is missing when the automated script is trying to download the missing files.

that's the bug!!

workaround: i solved it with a symlink:

ln -s /usr/bin/kdesudo /usr/bin/gksudo
sudo apt-get remove --purge ubuntu-restricted-extras ttf-mscorefonts-installer flashplugin-installer
sudo restart

after the restart:

sudo apt-get install ubuntu-restricted-extras flashplugin-installer

later you can remove that ugly workaround-symlink again with:

sudo rm -i /usr/bin/gksudo

Quite a hammermethod but it works

rubo77
  • 34,024
  • 52
  • 172
  • 299
-1

You might have trouble getting ttf-mscorefonts-installer to accept the EULA.

These commands will accept the EULA and reinstall the packages (assuming you downloaded the individual font .exes):

echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo dpkg-reconfigure ttf-mscorefonts-installer
David Foerster
  • 36,890
  • 56
  • 97
  • 151
Jack
  • 1