dpkg: error processing ttf-mathematica4.1 (--install)

Bug #299427 reported by moskaleff
570
This bug affects 22 people
Affects Status Importance Assigned to Milestone
ttf-mathematica4.1 (Debian)
Fix Released
Unknown
ttf-mathematica4.1 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: ttf-mathematica4.1

Selecting previously deselected package ttf-mathematica4.1.
(Reading database ... 160253 files and directories currently installed.)
Preparing to replace ttf-mathematica4.1 4 (using .../ttf-mathematica4.1_4_all.deb) ...
The license has already been accepted
Unpacking replacement ttf-mathematica4.1 ...
Setting up ttf-mathematica4.1 (4) ...
--2008-11-18 15:27:39-- http://support.wolfram.com/mathematica/systems/windows/general/files/MathFonts_TrueType_41.exe
Resolving support.wolfram.com... 140.177.205.40
Connecting to support.wolfram.com|140.177.205.40|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://support.wolfram.com/index.en.html [following]
--2008-11-18 15:27:40-- http://support.wolfram.com/index.en.html
Connecting to support.wolfram.com|140.177.205.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `./index.en.html'

    [<=> ] 0 --.-K/s [ <=> ] 4 017 19,2K/s [ <=> ] 9 777 23,4K/s [ <=> ] 19 186 34,1K/s in 0,5s

2008-11-18 15:27:41 (34,1 KB/s) - `./index.en.html' saved [19186]

checking MathFonts_TrueType_41.exe
Downloaded file looks corrupted!
dpkg: error processing ttf-mathematica4.1 (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ttf-mathematica4.1

Revision history for this message
D. Grady (fehknt) wrote :

So wolfram changed the download link to the mathfonts package. the bad thing is that it doesn't roll back the changes or anything, just leaves it in a state that you can't remove it and you can't actually get it to install either.

I can't find it for download on the wolfram website but i did find it on sourceforge:

http://math-linux.svn.sourceforge.net/viewvc/math-linux/MathFonts_TrueType_41.exe

Revision history for this message
GiuseppeVerde (launchpad-digitasaru) wrote :

Fonts are available from http://support.wolfram.com/technotes/latestfonts.en.html, including a tgz for Linux users.

Debian bug for this is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505847

Revision history for this message
GiuseppeVerde (launchpad-digitasaru) wrote :

There is an updated Debian package that allows the package to be un-installed. Recommend this get pushed through ASAP to fix the core horkage (i.e. that the package is unremovable if an external dependency (i.e. the mathematica site) breaks.

Revision history for this message
David D Short (chameleondave) wrote :

This is affecting me too. Until it is fixed, here is the workaround:

sudo rm -fv /var/lib/dpkg/info/ttf-mathematica*
sudo dpkg --purge --force-all ttf-mathematica4.1
sudo apt-get remove -f

Then install the font manually if desired.

Revision history for this message
Eric Berlin (ecjb) wrote :

TYVM for the manual removal instructions. I downloaded the .tgz and added the fonts manually, but couldn't figure out how to remove the half-installed package.

God bless you DDS.

- Eric.

Revision history for this message
Crazyness (crazyness) wrote :

Thanks for the remove instructions David.

Revision history for this message
gianluca.pettinello (g-pet) wrote :

I found a solution to uninstall ttf-mathematica:

- create the folder /usr/share/fonts/truetype/ttf-mathml

- create inside the 16 fonts: math1b__.ttf math2b__.ttf math3b__.ttf math4b__.ttf math1mb__.ttf math2mb__.ttf math3mb__.ttf math4mb__.ttf math1m__.ttf math2m__.ttf math3m__.ttf math4m__.ttf
math1__.ttf math2__.ttf math3__.ttf math4__.ttf
by copying a generic truetype font (es. ttf-liberation) and renaming it

- launch: sudo defoma-font register-all /etc/defoma/hints/ttf-mathematica4.1.hints

At this point you have registered the fonts and you can safely uninstall the package

Gianluca
Ubuntu is the freedom to use the brain work of the others
Linux is the freedom to use your own brain

--------------------------------------
MOLON LAVE

Revision history for this message
Alan (28481k) (28481k) wrote :

I have had the same problem and reported the bug (before knowing such bug already here). Thank you for your detailed removal method and I'd manually clear them to prevent clogging system up.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This is fixed in Jaunty. if you want to pursue a fix in Intrepid please read and follow https://wiki.ubuntu.com/StableReleaseUpdates.

Changed in ttf-mathematica4.1:
importance: Undecided → High
status: New → Triaged
status: Triaged → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Back to triaged. This is not really fixed. The fix allow one to uninstall the package not to install it since wolfram.com has removed the font.

Changed in ttf-mathematica4.1:
status: Fix Released → Triaged
Revision history for this message
N7DR (doc-evans) wrote :

Just wanted to comment that this just bit me in intrepid. Can you maybe completely remove the package from the repositories (at least for now) so that people like me don't come along and try to install it?

Revision history for this message
Mateosan (lingerhaus) wrote :

I second that motion. It's not needed to run Mathematica version 6.0.1 and up.

Revision history for this message
Sigmund Baginov (dr-sigmund-baginov) wrote :

As Gianluca Pettinello underlined, it is easy to create the fonts for removal, you do not even need to use a real one, but simply touch them:

mkdir /usr/share/fonts/truetype/ttf-mathml
cd /usr/share/fonts/truetype/ttf-mathml

touch math1b__.ttf math2b__.ttf math3b__.ttf math4b__.ttf math1mb__.ttf math2mb__.ttf math3mb__.ttf math4mb__.ttf math1m__.ttf math2m__.ttf math3m__.ttf math4m__.ttf

defoma-font register-all /etc/defoma/hints/ttf-mathematica4.1.hints

Revision history for this message
Hilton Garcia Fernandes (fernandesh) wrote : Re: [Bug 299427] Re: dpkg: error processing ttf-mathematica4.1 (--install)

indeed, it works. Thanks, Sigmund.

that said, it would be nice to have these fonts. while the package is not corrected, it seems the howto named "Linux XFT and MathML", at
http://kb.mozillazine.org/Linux_XFT_and_MathML

is a good place to start.

all the best,
hilton

--- On Thu, 2/26/09, Sigmund Baginov <email address hidden> wrote:
From: Sigmund Baginov <email address hidden>
Subject: [Bug 299427] Re: dpkg: error processing ttf-mathematica4.1 (--install)
To: <email address hidden>
Date: Thursday, February 26, 2009, 12:44 PM

As Gianluca Pettinello underlined, it is easy to create the fonts for
removal, you do not even need to use a real one, but simply touch them:

mkdir /usr/share/fonts/truetype/ttf-mathml
cd /usr/share/fonts/truetype/ttf-mathml

touch math1b__.ttf math2b__.ttf math3b__.ttf math4b__.ttf math1mb__.ttf
math2mb__.ttf math3mb__.ttf math4mb__.ttf math1m__.ttf math2m__.ttf
math3m__.ttf math4m__.ttf

defoma-font register-all /etc/defoma/hints/ttf-mathematica4.1.hints

--
dpkg: error processing ttf-mathematica4.1 (--install)
https://bugs.launchpad.net/bugs/299427
You received this bug notification because you are a direct subscriber
of a duplicate bug.

Status in “ttf-mathematica4.1” source package in Ubuntu: Triaged
Status in “ttf-mathematica4.1” source package in Debian: Unknown

Bug description:
Binary package hint: ttf-mathematica4.1

Selecting previously deselected package ttf-mathematica4.1.
(Reading database ... 160253 files and directories currently installed.)
Preparing to replace ttf-mathematica4.1 4 (using
..../ttf-mathematica4.1_4_all.deb) ...
The license has already been accepted
Unpacking replacement ttf-mathematica4.1 ...
Setting up ttf-mathematica4.1 (4) ...
--2008-11-18 15:27:39--
http://support.wolfram.com/mathematica/systems/windows/general/files/MathFonts_TrueType_41.exe
Resolving support.wolfram.com... 140.177.205.40
Connecting to support.wolfram.com|140.177.205.40|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://support.wolfram.com/index.en.html [following]
--2008-11-18 15:27:40-- http://support.wolfram.com/index.en.html
Connecting to support.wolfram.com|140.177.205.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `./index.en.html'

    [<=> ] 0 --.-K/s
         [ <=> ] 4 017 19,2K/s
             [ <=> ] 9 777 23,4K/s
                 [ <=> ] 19 186
34,1K/s in 0,5s

2008-11-18 15:27:41 (34,1 KB/s) - `./index.en.html' saved [19186]

checking MathFonts_TrueType_41.exe
Downloaded file looks corrupted!
dpkg: error processing ttf-mathematica4.1 (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ttf-mathematica4.1

Revision history for this message
Florian Hars (hars) wrote :

As an option, you can download the fonts from the Wolfram site and then almost follow the instructions to make the package removable:

mkdir /usr/share/fonts/truetype/ttf-mathml
cd /usr/share/fonts/truetype/ttf-mathml
unzip path/to/MathFonts_TrueType_41.exe
defoma-font register-all /etc/defoma/hints/ttf-mathematica4.1.hints

Only now you no longer need to uninstall the broken package, as you got the fonts where they are needed.

Revision history for this message
Hilton Garcia Fernandes (fernandesh) wrote :

thanks a lot.

--- On Sat, 2/28/09, Florian Hars <email address hidden> wrote:

> From: Florian Hars <email address hidden>
> Subject: [Bug 299427] Re: dpkg: error processing ttf-mathematica4.1 (--install)
> To: <email address hidden>
> Date: Saturday, February 28, 2009, 11:55 AM
> As an option, you can download the fonts from the Wolfram
> site and then
> almost follow the instructions to make the package
> removable:
>
> mkdir /usr/share/fonts/truetype/ttf-mathml
> cd /usr/share/fonts/truetype/ttf-mathml
> unzip path/to/MathFonts_TrueType_41.exe
> defoma-font register-all
> /etc/defoma/hints/ttf-mathematica4.1.hints
>
> Only now you no longer need to uninstall the broken
> package, as you got
> the fonts where they are needed.
>
> --
> dpkg: error processing ttf-mathematica4.1 (--install)
> https://bugs.launchpad.net/bugs/299427
> You received this bug notification because you are a direct
> subscriber
> of a duplicate bug.
>
> Status in “ttf-mathematica4.1” source package in
> Ubuntu: Triaged
> Status in “ttf-mathematica4.1” source package in
> Debian: Unknown
>
> Bug description:
> Binary package hint: ttf-mathematica4.1
>
> Selecting previously deselected package ttf-mathematica4.1.
> (Reading database ... 160253 files and directories
> currently installed.)
> Preparing to replace ttf-mathematica4.1 4 (using
> .../ttf-mathematica4.1_4_all.deb) ...
> The license has already been accepted
> Unpacking replacement ttf-mathematica4.1 ...
> Setting up ttf-mathematica4.1 (4) ...
> --2008-11-18 15:27:39--
> http://support.wolfram.com/mathematica/systems/windows/general/files/MathFonts_TrueType_41.exe
> Resolving support.wolfram.com... 140.177.205.40
> Connecting to support.wolfram.com|140.177.205.40|:80...
> connected.
> HTTP request sent, awaiting response... 301 Moved
> Permanently
> Location: http://support.wolfram.com/index.en.html
> [following]
> --2008-11-18 15:27:40--
> http://support.wolfram.com/index.en.html
> Connecting to support.wolfram.com|140.177.205.40|:80...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/html]
> Saving to: `./index.en.html'
>
> [<=> ] 0
> --.-K/s [ <=>
> ] 4 017 19,2K/s [
> <=> ] 9 777
> 23,4K/s [ <=>
> ] 19 186 34,1K/s in 0,5s
>
> 2008-11-18 15:27:41 (34,1 KB/s) - `./index.en.html'
> saved [19186]
>
> checking MathFonts_TrueType_41.exe
> Downloaded file looks corrupted!
> dpkg: error processing ttf-mathematica4.1 (--install):
> subprocess post-installation script returned error exit
> status 1
> Errors were encountered while processing:
> ttf-mathematica4.1

Revision history for this message
Florian Hars (hars) wrote : Re: [Bug 299427] Re: dpkg: error processing ttf-mathematica4.1 (--install)

Oh, and you should probably add the statement

exit 0

as one of the first statements to /var/lib/dpkg/info/ttf-mathematica4.1.postinst
Otherwise you will get an error message every time you update or install something.
(And remember that messing around with the package database is done at your
own risk :-))

- Florian.

Revision history for this message
R (Chandra) Chandrasekhar (chandra) wrote :

I can report the same problem and second the motion to have this package removed so that it is not a nuisance.

Thanks.

Revision history for this message
Dmitry Kirzhanov (kirzhanov-deactivatedaccount) wrote :

It seems, the manual solutions listed above work fine. For me, Maybe, it is better to remove the package from the repository? Is it necessary to repackage the fonts? I did not encounter a need of them. For me I used

    sudo rm -fv /var/lib/dpkg/info/ttf-mathematica*
    sudo dpkg --purge --force-all ttf-mathematica4.1
    sudo apt-get remove -f

without a manual installation of the fonts after their removal.

Revision history for this message
Adam B Butler (adambbutler) wrote :

Thanks for the manual removal instructions, DDS, Dmitry (and all those in-between) -- was hit with this bug in Intrepid, during an acute case of "Hey I'm new to Ubuntu -- boy don't these repositories full of software remind me like Christmas morning, click click click..."-Disorder.

In what's probably an over-zealous urge to contribute (without really knowing the best method for doing so), here's my "me, too" post re: removing the font package from the repository. In the midst of migrating from other linux distros (and other package managers, eg, yum/rpm), I found apt-get/aptitude (et al) relatively straightforward and intuitive until I ran into this repetitive bug/error that, until now, I haven't been able to correct.

Like I said, there's probably a mechanism by which one votes on stuff like this, saying "Hey that bugfix worked for me," or "My firstborn to DDS, in gratitude," (etc) but I can't find it to save my life...and it seems like using the fix (without saying a word) would be poor form, as well.

So what I suppose this post *should* have said was "Ignore this post, new Ubuntu user coming through, trying to be helpful and potentially failing -- but hey, he's a nice guy so let's not be too hard on him..." :)

Revision history for this message
Brian Vaughan (bgvaughan) wrote :

It seems to me to be self-evident that a buggy package should be fixed or removed from the repository, once it's been identified as buggy.

Thanks for the removal instructions.

I was trying to install this package because I'd read a little about Wikipedia offering the option of displaying mathematics via MathML, which sounded useful, so I tried to install the relevant fonts. There are alternatives -- in fact, MathML support is listed as "experimental" -- so it's not a necessity.

Revision history for this message
dehstil (dehstil) wrote :
Revision history for this message
kFuQ (derek-kfuq) wrote :

From: http://support.wolfram.com/technotes/latestfonts.en.html

Mathematica 7.0

Windows: http://support.wolfram.com/technotes/MathematicaV7FontsWindows.zip
Mac OS X: http://support.wolfram.com/technotes/MathematicaV7FontsMac.zip
Linux/Unix: http://support.wolfram.com/technotes/MathematicaV7FontsLinux.tar.gz

couldn't someone update the postinst script to reflect the new url & file names as well as re-generate/check the md5 sums of the .ttf files?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Finally, this bug has been fixed in the latest development version of Ubuntu - Lucid Lynx - in version 10 of the package.
ttf-mathematica4.1 is obsolete and replaced by mathematica-fonts .

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions at https://wiki.ubuntu.com/StableReleaseUpdates

Changed in ttf-mathematica4.1 (Ubuntu):
status: Triaged → Fix Released
Changed in ttf-mathematica4.1 (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.