ttf-mscorefonts-installer 3.6ubuntu2 fails to install core fonts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
msttcorefonts (Ubuntu) |
Fix Released
|
Medium
|
Phan Van Cuong |
Bug Description
[Symptoms]
When installing or updating the package ttf-mscorefonts
If installing or updating from the command line, additional failure information is given in an error message prefixed by "E:", but this error message depends on the mirror server which is contacted for the download: "404 Not Found" is common, but there is also "Protocol http not supported or disabled in libcurl", and complains about invalid Content-Range headers.
[Cause]
The current 3.4 version of ttf-mscorefonts
Unfortunately, the program apt-helper has a bug in the way it treats redirections. This bug makes apt-helper keep a space in the URL instead of encoding it to %20 before contacting the mirror. It is more extensively documented in bug 1655431 and bug 1651923. The mirror replies to this malformed request with an error message (e.g. "404 Not Found"), and download fails.
Some mirrors appear to understand the malformed request nonetheless, and send the requested font file, however since there are 11 fonts to download, the chances of getting 11 understanding mirrors are low. Hence why the error message usually concerns andale32.exe or arial32.exe instead of webdin32.exe.
[Workaround 1]
Download the fonts manually and put them all in the same directory. You can use wget for that, because contrary to apt-helper, it handles redirections fine (command line formatted for readability, do not include line breaks and line indents):
$ wget http://
{
georgi32.
webdin32.exe}
Or you can use your browser: point it to https:/
Make sure the package is purged and no remaining setup triggers are remaining, using your favorite package manager or command-line APT:
$ sudo apt-get purge ttf-mscorefonts
Then reinstall the package, this time pointing to the previously-
$ sudo apt-get install ttf-mscorefonts
# (this will most likely fail again)
$ sudo dpkg-reconfigure ttf-mscorefonts
The second command should return a "graphical" interface in the terminal. Use it to point to the directory where you downloaded the fonts (/path/
If a pop-up shows up for a post-install action later, just let it run, it shouldn't come back. It may triggered by the file /var/lib/
Once everything is working, you can delete the downloaded fonts in .exe format, they have been uncompressed and installed in /usr/share/
Adapted from: Vincent Gerris (comment 17), Lesley Binks (comment 18).
[Workaround 2]
Remove Ubuntu's version of ttf-mscorefonts
Download the package from https:/
To download the package with wget (command line formatted for readability, do not include line break and line indent):
$ wget http://
msttcoref
Purge your currently-installed Ubuntu version of the package using your favorite package manager or command-line APT, and install the Debian version with dpkg:
$ sudo apt-get purge ttf-mscorefonts
$ sudo dpkg --install /path/to/
When this bug is fixed in Ubuntu 16.04 and 16.10, you can uninstall Debian's version of the package and go back to Ubuntu's version:
$ sudo dpkg --purge ttf-mscorefonts
$ sudo apt-get install ttf-mscorefonts
Adapted from: yas (comment 19), Richard Elkins (comment 40)
[Fix]
The bug was fixed by Julian Klode in package apt-transport-https 1.4~beta3ubuntu1, released 2017-01-11, for the then-upcoming 17.04 (zesty) release, see bug 1651923 comments 24 25.
The fix was backported to apt-transport-https 1.3.4 and 1.2.19, released 2017-01-26, for the previous 16.10 (yakkety) and 16.04 (xenial) releases, respectively, see bug 1651923 comments 57 58.
If you are still affected by it, update apt-transport-https to the appropriate version and reinstall Ubuntu's version of ttf-mscorefonts
You should also remove Debian's version of ttf-mscorefonts
$ sudo dpkg --purge ttf-mscorefonts
[Important remarks]
If you run into Content-Range errors when reinstalling ttf-mscorefonts
You may also run into warnings about a user _apt and their privileges: these are non-blocking and don't impact the successful download and installation of the fonts, as you can check at the end of the installation log. They have been reported in several other bug reports (e.g. bug 1658707), but not investigated yet.
This bug used to be a duplicate of bug 1651923, but it has been de-duplicated to hopefully make it easier for people to find it, instead of reporting the issue as a new bug. Otherwise, duplicates are hidden.
affects: | ubuntu → msttcorefonts (Ubuntu) |
tags: | added: xenial |
Changed in msttcorefonts (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
ttf-mscorefonts-installer 3.4+nmu1ubuntu2 fails to install core fonts - and should be updated to version 3.6 from Debian |
description: | updated |
Changed in msttcorefonts (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- ttf-mscorefonts-installer 3.4+nmu1ubuntu2 fails to install core fonts + ttf-mscorefonts-installer 3.6ubuntu2 fails to install core fonts |
Changed in msttcorefonts (Ubuntu): | |
assignee: | nobody → Phan Van CUong (cuongphan92017) |
Status changed to 'Confirmed' because the bug affects multiple users.