TeX Live 2012 使用 tlmgr 更新后出现 apt-get 错误

TeX Live 2012 使用 tlmgr 更新后出现 apt-get 错误

我在 Ubuntu Precise 上运行 TeX Live 2012。安装时我遵循本教程。昨天,我使用以下工具更新了 Tex Live 2012 的软件包(大约 40 个)。

$ sudo tlmgr --gui

更新已成功安装并且一切仍正常运行。

今天,我注意到apt-get运行sudo apt-get install something或时输出错误sudo apt-get autoremove。这是后一个命令的控制台输出。

$ sudo apt-get autoremove 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.
Setting up texlive-base (2009-15) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.

texconfig: unknown option `paperconf' given as argument for `texconfig dvips'
texconfig: try `texconfig dvips' for help
texconfig: unknown option `paperconf' given as argument for `texconfig dvipdfmx'
texconfig: try `texconfig dvipdfmx' for help
texconfig: unknown option `paperconf' given as argument for `texconfig xdvi'
texconfig: try `texconfig xdvi' for help
texconfig: unknown option `paperconf' given as argument for `texconfig pdftex'
texconfig: try `texconfig pdftex' for help
texconfig: unknown option `paperconf' given as argument for `texconfig dvips'
texconfig: try `texconfig dvips' for help

dpkg: error processing texlive-base (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on texlive-base (>= 2009-1); however:
  Package texlive-base is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-bibtex-extra:
 texlive-bibtex-extra depends on texlive-latex-base (>= 2009-1); however:
  Package texlive-latex-base is not configured yet.
dpkg: error processing texlive-bibtex-extra (--configure):
 dependency problems - leaving unconfigured

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.

Errors were encountered while processing:
 texlive-base
 texlive-latex-base
 texlive-bibtex-extra

据我所知,LaTeX 本身仍然运行良好。

笔记:以防万一以下内容与主要问题有关。我不久前还注意到 man 路径不再指向通常的文件夹。MANPATH 问题之前已经描述过。但是,我无法在我的机器上解决它。

$ echo $MANPATH
/usr/local/texlive/2012/texmf/doc/man

答案1

最后,我卸载了所有与 TexLive 相关的软件包,错误消息就消失了。以下是我所做的...

sudo apt-get remove tex-common texlive-base texlive-binaries texlive-common \
  texlive-doc-base texlive-latex-base texlive-local texlive-latex-base-doc
sudo apt-get autoremove
sudo apt-get autoclean

我可能会使用广告中的texlive-backports PPA重新安装 TexLive。

我还发现 MANPATH 问题源于我某次自定义配置。这是从我的.zshrc文件中间接加载的。

# TexLive 2012
export MANPATH=/usr/local/texlive/2012/texmf/doc/man

相关内容