Comment 7 for bug 1222654

Revision history for this message
RichardNeill (ubuntu-richardneill) wrote :

In a related manner, can I suggest that when apt-get is invoked with "-y", that means that the user really really wants the installer to proceed assuming yes, and without asking questions, and has probably written an unattended shell-script, which is not allowed to require user-interaction to confirm. In other words, the "-y" explicitly includes acceptance of the EULA.
(Under no circumstances is "apt-get -y" allowed to hang, wating for interactive input).

Workaround:

echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula boolean true" | debconf-set-selections
apt-get -y ttf-mscorefonts-installer

Also, the installer does not fetch tahoma. However, the following script fragment will, I add it here in case it's useful:

echo "Installing Tahoma font"
cd /tmp
which cabextract >/dev/null || apt-get -y install cabextract
[ ! -f /usr/share/fonts/truetype/msttcorefonts/tahoma.ttf -o ! -f /usr/share/fonts/truetype/msttcorefonts/tahomabd.ttf ] &&
wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB &&
cabextract -F 'tahoma*ttf' IELPKTH.CAB &&
mkdir -p /usr/share/fonts/truetype/msttcorefonts/ &&
mv -f tahoma*ttf /usr/share/fonts/truetype/msttcorefonts/ &&
 chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma* &&
fc-cache && rm -f IELPKTH.CAB && echo "Installed Tahoma"
cd -

[I wrote this script, I just tested it successfully on Trusty, and I release it into the public domain]