package tex-common 4.04 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

Bug #1311032 reported by David Baucum
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
tex-common (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This failed while updating from Ubuntu 12.04 to Ubuntu 14.04.

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: tex-common 4.04
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Tue Apr 22 00:20:09 2014
DuplicateSignature: package:tex-common:4.04:ErrorMessage: subprocess installed post-installation script returned error exit status 1
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2012-04-29 (723 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
SourcePackage: tex-common
Title: package tex-common 4.04 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to trusty on 2014-04-22 (0 days ago)

Revision history for this message
David Baucum (maxolasersquad) wrote :
Changed in tex-common (Ubuntu):
status: New → Confirmed
Revision history for this message
Jan Groenewald (jan-aims) wrote :
Download full text (3.3 KiB)

Setting up tex-common (4.04) ...
Ignoring /etc/texmf/texmf.d/05TeXMF.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/15Plain.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/45TeXinputs.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/55Fonts.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/65BibTeX.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/75DviPS.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/80DVIPDFMx.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/85Misc.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/90TeXDoc.cnf during generation of texmf.cnf, please remove manually!
Ignoring /etc/texmf/texmf.d/95NonPath.cnf during generation of texmf.cnf, please remove manually!
Unknown AddHypen directive USEFILE in line: ==USEFILE /usr/share/texmf-texlive/tex/generic/config/language.us /usr/share/texmf-texlive/tex/generic/config/
language.us.def==!
Unknown AddHypen directive USEFILE in line: ==USEFILE /usr/share/texmf-texlive/tex/generic/config/language.us /usr/share/texmf-texlive/tex/generic/config/
language.us.def==!
Unknown AddHypen directive USEFILE in line: ==USEFILE /usr/share/texmf-texlive/tex/generic/config/language.us /usr/share/texmf-texlive/tex/generic/config/
language.us.def==!
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time...
updmap-sys failed. Output has been stored in
/tmp/updmap.K5mR0Nsi
Please include this file if you report a bug.

Sometimes, not accepting conffile updates in /etc/texmf/updmap.d
causes updmap-sys to fail. Please check for files with extension
.dpkg-dist or .ucf-dist in this directory

dpkg: error processing package tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 tex-common

Error in function:

A fatal error occurred

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)

==========================================================================
0 root@waseem-desktop:/tmp#more updmap.K5mR0Nsi
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/tex
mf/web2c.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/tex
mf/web2c.
/usr/bin/updmap: 1096: .: Can't open /usr/share/tex-common/debianize-updmap
===================================================================================
0 root@waseem-desk...

Read more...

Revision history for this message
Jan Groenewald (jan-aims) wrote :
Revision history for this message
Jan Groenewald (jan-aims) wrote :
Revision history for this message
Jan Groenewald (jan-aims) wrote :

On precise, pre-upgrade, this file belonged to texlive-binaries, not tex-common:
0 root@muizenberg:/usr/bin#dpkg -S /usr/bin/updmap
texlive-binaries: /usr/bin/updmap
0 root@muizenberg:/usr/bin#dpkg -S /usr/bin/updmap-sys
texlive-binaries: /usr/bin/updmap-sys
0 root@muizenberg:/usr/bin#

On a trusty, post upgrade, this file belongs to texlive-base, not tex-common:
0 jan@hilaire-desktop:~$dpkg -S /usr/bin/updmap
texlive-base: /usr/bin/updmap

Possibly the file is missing during the upgrade as texlive-binaries has just been removed in the upgrade.

Revision history for this message
Jan Groenewald (jan-aims) wrote :

From tex-common postinst:

This looks OK
            if which updmap-sys >/dev/null; then
                    # we also have to check that texlive-base is installed
                    # and configured, otherwise we cannot be sure that
                    # all necessary basic files are present
                    #
                    # dpkg-query has two defects wrt not existing packages
                    # - it is noisy to stderr
                    # - it returns 1
                    # so shut both errors up
                    stat=$(dpkg-query -W -f='${Status}' texlive-base 2>/dev/null || true)
                    case "$stat" in
                        "install ok installed")
                            do_it=1
                            ;;
                        *)
                            do_it=0
                            ;;
                    esac
                    if [ "$do_it" = 0 ] ; then
                        echo "texlive-base is not ready, delaying updmap-sys call" >&2
                    else
but is maybe failing??? Perhaps the OLD texlive-base without updmap-sys is still installed OK, but the OLD texlive-binaries containing updmap-sys is already removed??? Though I would have though the earlier conditional "if which updmap-sys" would have exited already.

On a related note: This does not look OK, is it checking for texlive-base or for context?? Does this stanza perhaps also trigger updmap?

run_mtxrun_if_possible()
{
    # code from postinst-tex
    if dhit_libkpathsea_configured; then
        if which mtxrun >/dev/null; then
            # we also have to check that texlive-base is installed
            # and configured, otherwise we cannot be sure that
            # all necessary basic files are present
            #
            # dpkg-query has two defects wrt not existing packages
            # - it is noisy to stderr
            # - it returns 1
            # so shut both errors up
            stat=$(dpkg-query -W -f='${Status}' context 2>/dev/null || true)
            case "$stat" in
                "install ok installed")
                    do_it=1
                    ;;
                *)
                    do_it=0
                    ;;
            esac
            if [ "$do_it" = 1 ] ; then
                tempfile=$(mktemp -p /tmp mtxrun.XXXXXXXX)

Revision history for this message
Russell Jones (russell-jones-oxphys) wrote :

This looks pretty similar to the problem I had. I did the following
apt-get remove libkpathsea5
vim /var/lib/texmf/web2c/updmap.cfg
(removed lines referring to comicvn.map and mscorevn.map)
updmap-sys
dpkg --configure -a
(use dpkg --configure tex-common for less output if things go wrong)

It spits out
Warning: Please see /usr/share/doc/tex-common/NEWS.Debian.gz
Warning: found file: /etc/texmf/updmap.d/00updmap.cfg
Warning: found file: /etc/texmf/updmap.d/10lmodern.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-base.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-fonts-extra.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-fonts-recommended.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-games.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-african.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-arabic.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-cyrillic.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-czechslovak.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-french.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-greek.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-hebrew.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-indic.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-lithuanian.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-mongolian.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-polish.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-lang-vietnamese.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-latex-base.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-latex-extra.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-math-extra.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-omega.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-pictures.cfg
Warning: found file: /etc/texmf/updmap.d/10texlive-science.cfg
Warning: found file: /etc/texmf/updmap.d/20latex-fonts-thai-tlwg.cfg
Warning: found file: /etc/texmf/updmap.d/20tex-gyre.cfg
Warning: found file: /etc/texmf/updmap.d/50cm-super-minimal.cfg
Warning: found file: /etc/texmf/updmap.d/50cm-super.cfg

each time any package to do with tex is configured, but the install seems to be continuing OK. I guess those files can be removed once the install has finished (I think the newer, equivalent config files go somewhere else).

Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 1311032] Re: package tex-common 4.04 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
Download full text (3.2 KiB)

I just purge tex-common, then finish the do-release-upgrade using apt-get
dist-upgrade. Sometimes a few iterations to finish. This will show up on
ALL our institutional laptops though, I'd like to see a fix.

On 23 April 2014 20:38, Russell Jones <email address hidden>wrote:

> This looks pretty similar to the problem I had. I did the following
> apt-get remove libkpathsea5
> vim /var/lib/texmf/web2c/updmap.cfg
> (removed lines referring to comicvn.map and mscorevn.map)
> updmap-sys
> dpkg --configure -a
> (use dpkg --configure tex-common for less output if things go wrong)
>
> It spits out
> Warning: Please see /usr/share/doc/tex-common/NEWS.Debian.gz
> Warning: found file: /etc/texmf/updmap.d/00updmap.cfg
> Warning: found file: /etc/texmf/updmap.d/10lmodern.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-base.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-fonts-extra.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-fonts-recommended.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-games.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-african.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-arabic.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-cyrillic.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-czechslovak.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-french.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-greek.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-hebrew.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-indic.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-lithuanian.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-mongolian.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-polish.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-lang-vietnamese.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-latex-base.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-latex-extra.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-math-extra.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-omega.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-pictures.cfg
> Warning: found file: /etc/texmf/updmap.d/10texlive-science.cfg
> Warning: found file: /etc/texmf/updmap.d/20latex-fonts-thai-tlwg.cfg
> Warning: found file: /etc/texmf/updmap.d/20tex-gyre.cfg
> Warning: found file: /etc/texmf/updmap.d/50cm-super-minimal.cfg
> Warning: found file: /etc/texmf/updmap.d/50cm-super.cfg
>
> each time any package to do with tex is configured, but the install
> seems to be continuing OK. I guess those files can be removed once the
> install has finished (I think the newer, equivalent config files go
> somewhere else).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1311032
>
> Title:
> package tex-common 4.04 failed to install/upgrade: ErrorMessage:
> subprocess installed post-installation script returned error exit
> status 1
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/tex-common/+bug/13110...

Read more...

Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make this software better. This particular crash has already been reported and is a duplicate of bug #1236951, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
Revision history for this message
Russell Jones (russell-jones-oxphys) wrote :

Absolutely, same here. I was just trying to help isolate the cause.

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.