Xubuntu 16.04.1中texlive的安装问题

May*_*sey 3 package-management xubuntu texlive

在 Xubuntu 16.04.1 中安装 texlive 时,它​​没有正确安装。当我升级系统时,它显示以下错误。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 texlive-full : Depends: texlive-lang-english (>= 2015) but it is not installed
                Depends: texlive-latex-recommended-doc (>= 2015) but it is not installed
                Depends: texlive-latex-base-doc (>= 2015) but it is not installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)

我也试过:

sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)

那没有用。我也尝试过 Synaptic,但它给了我以下错误

E: /var/cache/apt/archives/texlive-lang-english_2015.20160223-1_all.deb: cannot copy extracted data for './usr/share/doc/texlive-doc/latex/lshort-english/lshort.pdf' to '/usr/share/doc/texlive-doc/latex/lshort-english/lshort.pdf.dpkg-new': unexpected end of file or stream
E: /var/cache/apt/archives/texlive-latex-recommended-doc_2015.20160320-1_all.deb: cannot copy extracted data for './usr/share/doc/texlive-doc/latex/eso-pic/eso-ex4.tex' to '/usr/share/doc/texlive-doc/latex/eso-pic/eso-ex4.tex.dpkg-new': unexpected end of file or stream
Run Code Online (Sandbox Code Playgroud)

请帮我

小智 5

从 Ubuntu LTS 14.04 升级到 LTS 16.04.1 时,我遇到了类似的问题。我无法使用rancho的建议删除 textlive* 。然后我在vehka找到了一个关于如何删除 texlive-latex-base-doc的解决方案: apt-get break after version update(未满足的依赖项)

$ sudo dpkg --force-all --purge texlive-latex-base-doc
Run Code Online (Sandbox Code Playgroud)

小心删除所有软件包也很重要,否则重新安装将不起作用。我遵循了我从mubeena给出的评论中对Nate Eldredge为 mubeena 自己的线程给出的解决方案的评论中采取的步骤:升级时出现许多 dpkg 错误

$ sudo apt-get remove --purge tex-common texlive-*
$ sudo rm /etc/texmf/
Run Code Online (Sandbox Code Playgroud)

根据您遇到的其他错误,您可能还需要使用 texlive-lang-english 删除

$ sudo dpkg --force-all --purge texlive-lang-english
Run Code Online (Sandbox Code Playgroud)

那么你可以做

$ sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)

最后

$ sudo apt-get install texlive-full
Run Code Online (Sandbox Code Playgroud)

最后一个命令将安装您需要的所有内容以及更多内容。您可能想探索 texlive 安装的其他详细或更轻巧的版本,但安装所有内容可能会为您简化事情。我在以下线程中分享了ufos的解释:在 Ubuntu 12.04 上安装 texlive-full,但是如果您只想安装您需要的东西,masroor有一个很好的细分。