我从 Ubuntu 12.04 升级到了 Ubuntu 14.04,每次使用apt-get install
任何包时,都会出现一堆关于处理某些 latex 包的错误。包括以下代码片段:
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 lmodern:
lmodern depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
通过使用进行复制sudo dpkg --configure -a
,并在此处包含了出现此错误的软件包的完整列表:
Errors were encountered while processing:
tex-common
texlive-publishers
tex-gyre
texlive-latex-extra-doc
texlive-fonts-extra-doc
texlive-lang-english
texlive-luatex
texlive-generic-recommended
texlive-pstricks-doc
texlive-fonts-recommended
latex2html
latex-xcolor
texlive-pictures
texlive-fonts-extra
texlive-pictures-doc
asymptote
texlive-bibtex-extra
texlive-latex-recommended-doc
texlive-latex-recommended
doxygen-latex
texlive-pstricks
tipa
texlive-latex-base
texlive-fonts-recommended-doc
latex-beamer
texlive-font-utils
texlive-latex-base-doc
texlive-latex-extra
texlive-extra-utils
texlive
texlive-publishers-doc
lmodern
有想法该怎么解决这个吗?
编辑1:添加尝试的结果sudo apt-get install -f
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
32 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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/80DVIPDFMx.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.DJoQcW7n
答案1
如果问题出在 apt-get 本身,请尝试检查您的软件存储库:
/etc/apt/sources.list
并根据您的位置用适当的存储库替换其内容然后执行以下操作:
sudo apt-get update
答案2
首先,在安装新软件包之前,你应该尝试修复依赖问题。尝试运行:
sudo apt-get install -f
然后再次尝试安装 desider 包。
答案3
删除有问题的软件包并重新安装它们(和依赖项)完全解决了该问题。
这显然是漏洞正如用户 Andrea 所指出的。