关于Ubuntu 14.04 LTS的Tex常见故障排除

我最近将我的计算机从12.02 LTS升级到14.04 LTS,但在启动Google Chrome并能够使用Rhythmbox方面遇到了问题。 Rhythmbox询问我是否要安装其他软件,但安装失败并返回此错误消息:

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

我在启动板上找到了关于这个bug的这个post:

https://bugs.launchpad.net/ubuntu/+source/tex-common/+bug/1236951

这提供了一些关于修复错误的建议,但是我尝试过的并没有为我工作。

首先,我尝试了这些命令(虽然我认为rm / etc / texmf /不起作用,但我收到一条错误消息,告诉我这是一个目录)。 这似乎没有解决错误。

 sudo apt-get remove --purge tex-common texlive-* sudo rm /etc/texmf/ sudo apt-get install tex-common sudo apt-get install texlive-base sudo apt-get install texlive-latex-recommended 

然后我尝试了:

 sudo apt-get purge tex-common sudo -E do-release-upgrade -d sudo -E apt-get -y install tex-common texlive-base texlive-latex-recommended 

但同样,它似乎没有解决问题。

最后,我尝试了线程中的最后一个建议:

  • 卸载与emacs和xemacs有关的一切(我使用了synaptic包管理器,找到要删除的内容并完全删除)

    我实际上并没有这样做,因为a。)我不知道我是否与emacs和xemacs有任何问题,而b。)因为我不知道如何使用Synaptic只卸载emacs和xemacs的东西。

  • 卸载tex-common和所有texlive- *文件并:

      sudo rm -rf /etc/texmf 

    这次命令工作,我假设是因为这个删除了texmf中的文件,而不是目录本身。

  • 删除所有texlive文件(如果有),例如:

     sudo rm -rf /usr/local/texlive/2014 rm -rf ~/.texlive2014 
  • 使用synaptic包管理器安装emacs24然后auctex

  • 使用synaptic包管理器安装tex-common

    再一次,我没有安装emacs24auctex ,当涉及到安装tex-common时,我试过:

     sudo apt-get install tex-common 
  • 按照http://tug.org/texlive/上的说明安装texlive(从dpkg或Ubuntu软件中心或synaptic包管理器安装对我不起作用。)

  • 按照安装程序之前的建议添加到/etc/environment路径。 也就是说,对于我安装的版本,在PATH行的末尾添加:/usr/local/texlive/2014/bin/x86_64-linux就在关闭之前“并添加2个新行

     INFOPATH=":/usr/local/texlive/2014/texmf-dist/doc/info" MANPATH=":/usr/local/texlive/2014/texmf-dist/doc/man" 

    (没有冒号,除了tex之外的所有东西的人行道都会被打破)

    我想我已经理解了如何做这个部分,虽然这是我第一次尝试设置路径。 另外,基于另一个线程,我使用i386-linux而不是x86_64-linux。

  • 通过添加行来编辑/etc/manpath.config

     MANPATH_MAP /usr/local/texlive/2014/bin/x86_64-linux /usr/local/texlive/2014/texmf-dist/doc/man 

    在最后一个已存在的MANPATH_MAP行之后。

最初我无法编辑manpath.config文件,因为它是只读的,所以我不得不用sudo vim打开文件进行编辑。

在完成所有这些步骤并重新启动之后,问题现在变得更糟了,因为我必须使用Linux 3.13.0-34-generic(恢复模式)来运行Ubuntu以实现任何工作。 否则屏幕顶部将没有图标(如电池,网络等),工具栏中的图标将不响应。

有人能帮我这个吗? 如果我做一些愚蠢的事情,我真的不知道我在做什么。

升级后我遇到了类似的问题,但是一个简单的删除,重新安装,然后重新安装所有其他tex包似乎解决了问题。

 sudo apt-get remove tex-common sudo apt-get install tex-common sudo apt-get install texlive-*