Comment 12 for bug 1655431

Revision history for this message
Jonathan Kamens (jik) wrote :

The bug of which this one was previously marked a duplicate (I unmarked it) was fixed months ago, and yet I'm still getting this email from cron.daily every single day:

>/etc/cron.daily/update-notifier-common:
>ttf-mscorefonts-installer: processing...

The problem at this point seems to have nothing whatsoever to do with spaces in URLs or anything like that. Rather, the problem is that when the package ttf-mscorefonts-installer is installed non-interactively, the license is not accepted, and the downloader for the package silently fails to download any fonts if the license hasn't been accepted.

Note this stanza at the end of /usr/share/package-data-downloads/ttf-mscorefonts-installer:

>Script: /usr/lib/msttcorefonts/update-ms-fonts
>Should-Download: msttcorefonts/accepted-mscorefonts-eula

On my system, msttcorefonts/accepted-mscorefonts-eula is false, because the package was installed non-interactively.

The code which silently refuses to download fonts if that setting is false is in /usr/lib/update-notifier/package-data-downloader:

> if 'Should-Download' in para:
> db = debconf.DebconfCommunicator('update-notifier')
> try:
> should = db.get(para['Should-Download'])
> if should == "false":
> # Do nothing with this file.
> break
> except:
> pass
> finally:
> db.shutdown()

Furthermore, maybe I'm missing something, but I can't find any supported way of accepting this license once the package has been installed, because the code that prompts the user to accept the license is in /var/lib/dpkg/info/ttf-mscorefonts-installer.preinst, and as far as I can tell, dpkg-reconfigure doesn't rerun preinst files.