首页 > 代码库 > updmap-sys failed. Output has been stored in

updmap-sys failed. Output has been stored in

Ubuntu 12.04升级到Ubuntu 12.04lts的时候,出现错误:

Do you want to continue? [Y/n] y
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!
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.tgQfvGWl
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
dpkg: dependency problems prevent configuration of fonts-lmodern:
 fonts-lmodern depends on tex-common (>= 4); however:
  Package tex-common is not configured yet.

dpkg: error processing package fonts-lmodern (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of lmodern:
 lmodern depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.
 lmodern depends on fonts-lmodern (= 2.004.4-3); however:
  Package fonts-lmodern is not configured yet.

dpkg: error processing package lmodern (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of luatex:
 luatex depends on tex-common (>= 4.03); however:
  Package tex-common is not configured yet.

dpkg: error processing package luatex (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-extra:No apport report written because MaxReports is reached already

 texlive-fonts-extra depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing package texlive-fonts-extra (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-extra-doc:No apport report written because MaxReports is reached already

 texlive-fonts-extra-doc depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing package texlive-fonts-extra-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-luatex:No apport report written because MaxReports is reached already

 texlive-luatex depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.
 texlive-luatex depends on luatex (>= 0.70.1); however:
  Package luatex is not configured yet.

dpkg: error processing package texlive-luatex (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 tex-common
 fonts-lmodern
 lmodern
 luatex
 texlive-fonts-extra
 texlive-fonts-extra-doc
 texlive-luatex
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

解决办法:

1. 查看错误文件

sudo cat /tmp/updmap.tgQfvGWl

updmap is using the following updmap.cfg files (in precedence order):  /var/lib/texmf/web2c/updmap.cfg  /usr/share/texmf/web2c/updmap.cfg  /usr/share/texlive/texmf-dist/web2c/updmap.cfgupdmap is using the following updmap.cfg file for writing changes:  /etc/texmf/web2c/updmap.cfgdvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"ERROR:  The following map file(s) couldn‘t be found:	antp.map (in /var/lib/texmf/web2c/updmap.cfg)	fi4.map (in /var/lib/texmf/web2c/updmap.cfg)	slantcm.map (in /var/lib/texmf/web2c/updmap.cfg)	troff-updmap.map (in /var/lib/texmf/web2c/updmap.cfg)	Did you run mktexlsr?	You can disable non-existent map entries using the option	  --syncwithtrees.

 

2. 看到说忽略不存在的map就好了,所以,运行命令

sudo updmap-sys --syncwithtrees
3. 然后再sudo apt-get upgrade  就好了

updmap-sys failed. Output has been stored in