package texlive-metapost 2009-15 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1107347 reported by Pascal Mons
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 12.04.1 LTS
Release: 12.04
Architeture: amd64

$ apt-cache policy texlive-metapost
texlive-metapost:
  Installed: 2009-15
  Candidate: 2009-15
  Version table:
 *** 2009-15 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

The day before I installed TeX Live 2012 by running their installation script. Everything was OK and working fine. Then today I tried to install the package asymptote (which interfaces with LaTeX) and package context at the same time from a CLI. A lot of other pacakages were needed, one of them was texlive-metapost.

$ sudo apt-get install asymptote context

During the install process in the Terminal I had this first error message:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
Setting up tex-gyre (2.004.1-2.1ubuntu1) ...
Setting up python-imaging-tk (1.1.7-4) ...
Setting up asymptote (2.15-1) ...
Setting up asymptote-doc (2.15-1) ...
Setting up texlive-metapost (2009-15) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-metapost.cnf.
 This may take some time...
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.vNuqvnl8
Please include this file if you report a bug.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Then the error messages pertaining to dpkg [consequence of the above]
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
dpkg: error processing texlive-metapost (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of context:
 context depends on texlive-metapost (>= 2009); however:
  Package texlive-metapost is not configured yet.
dpkg: error processing context (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of context-modules:
 context-modules depends on context; however:
  Package context is not configured yet.
dpkg: error processing context-modules (--configure):
 dependency problems - leaving unconfigured
Setting up feynmf (1.08-7) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Then the others post-installation processes terminating without problems
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Setting up fonts-gfs-artemisia (1.1-4) ...
Setting up fonts-gfs-baskerville (1.1-4) ...
Setting up fonts-gfs-bodoni-classic (1.1-4) ...
Setting up fonts-gfs-didot (1.1-5) ...
Setting up fonts-gfs-didot-classic (1.1-4) ...
Setting up fonts-gfs-gazis (1.1-4) ...
Setting up fonts-gfs-neohellenic (1.1-4) ...
Setting up fonts-gfs-olga (1.1-3) ...
Setting up fonts-gfs-porson (1.1-5) ...
Setting up fonts-gfs-solomos (1.1-4) ...
Setting up fonts-gfs-theokritos (1.1-4) ...
Setting up fonts-sil-gentium (20081126:1.02-12) ...
Setting up texlive-metapost-doc (2009-15) ...
Setting up ttf-gfs-artemisia (1.1-4) ...
Setting up ttf-gfs-baskerville (1.1-4) ...
Setting up ttf-gfs-bodoni-classic (1.1-4) ...
Setting up ttf-gfs-didot (1.1-5) ...
Setting up ttf-gfs-didot-classic (1.1-4) ...
Setting up ttf-gfs-gazis (1.1-4) ...
Setting up ttf-gfs-neohellenic (1.1-4) ...
Setting up ttf-gfs-olga (1.1-3) ...
Setting up ttf-gfs-porson (1.1-5) ...
Setting up ttf-gfs-solomos (1.1-4) ...
Setting up ttf-gfs-theokritos (1.1-4) ...
Setting up ttf-sil-gentium (20081126:1.02-12) ...
Processing triggers for tex-common ...
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Errors were encountered while processing:
 texlive-metapost
 context
 context-modules
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The error message in /tmp/fmtutil.vNuqvnl8 reads as:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
fmtutil: running `mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' ...
This is MetaPost, version 1.504 (kpathsea version 6.1.0)
(/usr/local/texlive/2012/texmf-dist/metapost/config/mfplain.ini
(/usr/local/texlive/2012/texmf-dist/metapost/base/mfplain.mp
Preloading the plain base, version 0.99: preliminaries,
 basic constants and mathematical macros,
 macros for converting units,
 macros and tables for various modes of operation,
 macros for drawing and filling,
 macros for proof labels and rules,
 macros for character and font administration,
and a few last-minute items.) )
Transcript written on mfplain.log.
Error: `mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' failed
fmtutil: running `mpost -ini -jobname=mpost -progname=mpost mpost.mp' ...
This is MetaPost, version 1.504 (kpathsea version 6.1.0)
(/usr/local/texlive/2012/texmf-dist/metapost/base/mpost.mp
(/usr/local/texlive/2012/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) )
Transcript written on mpost.log.
Error: `mpost -ini -jobname=mpost -progname=mpost mpost.mp' failed

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/local/texlive/2012/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages:
`mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' failed
`mpost -ini -jobname=mpost -progname=mpost mpost.mp' failed
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
In the web2c directory the likely file is the fmutil.cnf configuration file. However it is automatically generated by /usr/local/bin/tlmgr [Tex Live Manager]

At first I was tryning to install 2 packages : asymptote and context on the same command line.

Then I tried to remove context running:
$ sudo apt-get remove context

And I got the same error...
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$ sudo apt-get remove context
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  context context-modules
0 upgraded, 0 newly installed, 2 to remove and 6 not upgraded.
3 not fully installed or removed.
After this operation, 62.1 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 498760 files and directories currently installed.)
Removing context-modules ...
Removing context ...
Processing triggers for tex-common ...
Running mktexlsr. This may take some time... done.
Processing triggers for man-db ...
Processing triggers for fontconfig ...
Setting up texlive-metapost (2009-15) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-metapost.cnf.
 This may take some time...
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.9pXpP9ll
Please include this file if you report a bug.

dpkg: error processing texlive-metapost (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 texlive-metapost
E: Sub-process /usr/bin/dpkg returned an error code (1)
$
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The /tmp/fmtutil.9pXpP9ll error message reads:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
fmtutil: running `mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' ...
This is MetaPost, version 1.504 (kpathsea version 6.1.0)
(/usr/local/texlive/2012/texmf-dist/metapost/config/mfplain.ini
(/usr/local/texlive/2012/texmf-dist/metapost/base/mfplain.mp
Preloading the plain base, version 0.99: preliminaries,
 basic constants and mathematical macros,
 macros for converting units,
 macros and tables for various modes of operation,
 macros for drawing and filling,
 macros for proof labels and rules,
 macros for character and font administration,
and a few last-minute items.) )
Transcript written on mfplain.log.
Error: `mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' failed
fmtutil: running `mpost -ini -jobname=mpost -progname=mpost mpost.mp' ...
This is MetaPost, version 1.504 (kpathsea version 6.1.0)
(/usr/local/texlive/2012/texmf-dist/metapost/base/mpost.mp
(/usr/local/texlive/2012/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) )
Transcript written on mpost.log.
Error: `mpost -ini -jobname=mpost -progname=mpost mpost.mp' failed

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/local/texlive/2012/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages:
`mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' failed
`mpost -ini -jobname=mpost -progname=mpost mpost.mp' failed
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I cannot find any of the log files mpost.log mentionned in /usr/local/texlive/2012/texmf-dist/metapost/base.

At last I removed asymptote:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$ sudo apt-get remove asymptote
[sudo] password for jean:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asymptote
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 5,612 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 496199 files and directories currently installed.)
Removing asymptote ...
Processing triggers for man-db ...
Processing triggers for tex-common ...
Running mktexlsr. This may take some time... done.
Setting up texlive-metapost (2009-15) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-metapost.cnf.
 This may take some time...
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.tdaRbZVt
Please include this file if you report a bug.

dpkg: error processing texlive-metapost (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 texlive-metapost
E: Sub-process /usr/bin/dpkg returned an error code (1)
$
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The /tmp/fmtutil.tdaRbZVt file reads:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
fmtutil: running `mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' ...
This is MetaPost, version 1.504 (kpathsea version 6.1.0)
(/usr/local/texlive/2012/texmf-dist/metapost/config/mfplain.ini
(/usr/local/texlive/2012/texmf-dist/metapost/base/mfplain.mp
Preloading the plain base, version 0.99: preliminaries,
 basic constants and mathematical macros,
 macros for converting units,
 macros and tables for various modes of operation,
 macros for drawing and filling,
 macros for proof labels and rules,
 macros for character and font administration,
and a few last-minute items.) )
Transcript written on mfplain.log.
Error: `mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' failed
fmtutil: running `mpost -ini -jobname=mpost -progname=mpost mpost.mp' ...
This is MetaPost, version 1.504 (kpathsea version 6.1.0)
(/usr/local/texlive/2012/texmf-dist/metapost/base/mpost.mp
(/usr/local/texlive/2012/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) )
Transcript written on mpost.log.
Error: `mpost -ini -jobname=mpost -progname=mpost mpost.mp' failed

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/local/texlive/2012/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages:
`mpost -ini -jobname=mfplain -progname=mfplain mfplain.ini' failed
`mpost -ini -jobname=mpost -progname=mpost mpost.mp' failed
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before removing asymptote I asked TeX Live to regenerate fmtutil:

$ sudo tlmgr generate fmtutil
To make the newly-generated fmtutil.cnf take effect, run fmtutil-sys --all.

which I did:

$ sudo fmtutil-sys --all
[...]
Transcript written on pdfxmltex.log.
fmtutil: /usr/local/texlive/2012/texmf-var/web2c/pdftex/pdfxmltex.fmt installed.
$

This pdfxmltex.log file exists and reflects the standard output.
However that did not change the error again when removing the package asymptote.

One way or another it looks like "Not all formats have been built successfully" while "fmtutil-sys failed" on all occasions. It looks like something is broken somewhere in this program. As I have rebuild the fmtutil with TeX Live as directed with no error.

Or otherwise let me know what else I can do.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: texlive-metapost 2009-15
ProcVersionSignature: Ubuntu 3.2.0-36.57-generic 3.2.35
Uname: Linux 3.2.0-36-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Sun Jan 27 19:06:34 2013
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: texlive-base
Title: package texlive-metapost 2009-15 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Pascal Mons (anton+) wrote :
tags: removed: need-duplicate-check
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.