Well, nothings perfect.  There's a bug I didn't notice because I ran the
script inside the directory where the fonts go.  It's important that the
script not be there, so it's better with an added 'cd' command:

> #!/bin/bash
>
> # grab the raw fonts required by mscorefonts-installer
>
> if [ $# -ne 1 ] ; then
>   echo " *** Error: $0 needs exactly one argument: the name of an empty
> directory where the fonts will go"
>   exit 1
> fi
>
> cd $1
>
> for font in andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe
> georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32+++ \.exe
> webdin32.exe ; do
>   wget
> https://freefr.dl.sourceforge.net/project/corefonts/the%20fonts/final/$font
> done
>
> sudo apt-get remove --purge ttf-mscorefonts-installer
> sudo apt-get install ttf-mscorefonts-installer
> sudo dpkg-reconfigure ttf-mscorefonts-installer
>
>
On Thu, Dec 8, 2016 at 12:09 PM, Kevin O'Gorman <kogor...@gmail.com> wrote:

>
>
> On Wed, Dec 7, 2016 at 8:51 AM, mirohe <miguelrodriguezherna...@gmail.com>
> wrote:
>
>> Sorry, I wrote this wrong
>>
>> Url in debian package the url is:
>>
>> https://freefr.dl.sourceforge.net/project/corefonts/the%20fo
>> nts/final/andale32.exe
>> -> OK
>>
>> and ubuntu package the url is like this:
>>
>> https://freefr.dl.sourceforge.net/project/corefonts/the
>> fonts/final/andale32.exe  -> ERROR
>>
>> result ubuntu
>>
>> Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe
>>   404 Not Found
>> E: Impossible de récupérer https://freefr.dl.sourceforge.
>> net/project/corefonts/the fonts/final/andale32.exe 404 Not Found
>>
>>
>> The difference is:
>> Debian package -> "....corefonts/the%20fonts/final...." OK
>> Ubuntu package -> "....corefonts/the fonts/final...." ERROR
>>
>> "%20" no exist in ubuntu package and fail.
>>
>>
>>
>> This is one of the reasons I like to reduce things like this to a
> script.  Here's what I used:
>
> #!/bin/bash
>> # work around problems in ttf-mscorefonts-installer
>>
>> if [ $# -ne 1 ] ; then
>>   echo " *** Error: $0 needs exactly one argument: the name of an empty
>> directory where the fonts will go"
>>   exit 1
>> fi
>> for font in andale32.exe arial32.exe arialb32.exe comic32.exe
>> courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe
>> verdan32.exe webdin32.exe ; do
>>   wget https://freefr.dl.sourceforge.net/project/corefonts/the%
>> 20fonts/final/$font
>> done
>>
>> sudo apt-get remove --purge ttf-mscorefonts-installer
>> sudo apt-get install ttf-mscorefonts-installer
>> sudo dpkg-reconfigure ttf-mscorefonts-installer
>>
>
>
>
> --
> Kevin O'Gorman
> #define QUESTION ((bb) || (!bb))   /* Shakespeare */
>
> Please consider the environment before printing this email.
>


-- 
Kevin O'Gorman
#define QUESTION ((bb) || (!bb))   /* Shakespeare */

Please consider the environment before printing this email.


** Attachment added: "unnamed"
   https://bugs.launchpad.net/bugs/1607535/+attachment/4789234/+files/unnamed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1607535

Title:
  ttf-mscorefonts-installer 3.4+nmu1ubuntu2 fails to install core fonts
  and should be updated to version 3.6 from Debian

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1607535/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to