我是 Ubuntu 的新手(一般来说是 Linux 的新手),当我通过终端安装 Latex 时:
sudo apt-get install texlive-full
我收到此错误信息:
E: Unable to correct problems, you have held broken packages.
上述命令的完整结果为:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
texlive-full : Depends: asymptote but it is not going to be installed
Depends: biber but it is not going to be installed
Depends: cm-super (>= 0.3.3-3) but it is not going to be installed
Depends: context but it is not going to be installed
Depends: dvipng but it is not going to be installed
Depends: feynmf but it is not going to be installed
Depends: fragmaster but it is not going to be installed
Depends: latex-cjk-all (>= 4.6.0+cvs20060714-2) but it is not going to be installed
Depends: latexmk but it is not going to be installed
Depends: lmodern (>= 0.93.3) but it is not installable
Depends: prerex (> 6.5.3-1) but it is not going to be installed
Depends: purifyeps but it is not going to be installed
Depends: tex-gyre but it is not going to be installed
Depends: texinfo (>= 4.8)
Depends: texlive-base (>= 2018.20190227) but it is not installable
Depends: texlive-bibtex-extra (>= 2018.20190227) but it is not going to be installed
Depends: texlive-binaries (>= 2018.20180416) but it is not installable
Depends: texlive-extra-utils (>= 2018.20190227) but it is not going to be installed
Depends: texlive-font-utils (>= 2018.20190227) but it is not going to be installed
Depends: texlive-fonts-extra (>= 2018.20190227) but it is not going to be installed
Depends: texlive-fonts-extra-doc (>= 2018.20190227) but it is not going to be installed
Depends: texlive-fonts-extra-links (>= 2018.20190227) but it is not going to be installed
Depends: texlive-fonts-recommended (>= 2018.20190227) but it is not going to be installed
Depends: texlive-fonts-recommended-doc (>= 2018.20190227) but it is not installable
Depends: texlive-formats-extra (>= 2018.20190227) but it is not going to be installed
Depends: texlive-games (>= 2018.20190227) but it is not going to be installed
Depends: texlive-humanities (>= 2018.20190227) but it is not going to be installed
Depends: texlive-humanities-doc (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-arabic (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-chinese (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-cjk (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-cyrillic (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-czechslovak (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-english (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-european (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-french (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-german (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-greek (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-italian (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-japanese (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-korean (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-other (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-polish (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-portuguese (>= 2018.20190227) but it is not going to be installed
Depends: texlive-lang-spanish (>= 2018.20190227) but it is not going to be installed
Depends: texlive-latex-base (>= 2018.20190227) but it is not installable
Depends: texlive-latex-base-doc (>= 2018.20190227) but it is not installable
Depends: texlive-latex-extra (>= 2018.20190227) but it is not going to be installed
Depends: texlive-latex-extra-doc (>= 2018.20190227) but it is not going to be installed
Depends: texlive-latex-recommended (>= 2018.20190227) but it is not installable
Depends: texlive-latex-recommended-doc (>= 2018.20190227) but it is not installable
Depends: texlive-luatex (>= 2018.20190227) but it is not going to be installed
Depends: texlive-metapost (>= 2018.20190227) but it is not going to be installed
Depends: texlive-metapost-doc (>= 2018.20190227) but it is not installable
Depends: texlive-music (>= 2018.20190227) but it is not going to be installed
Depends: texlive-pictures (>= 2018.20190227) but it is not going to be installed
Depends: texlive-pictures-doc (>= 2018.20190227) but it is not installable
Depends: texlive-plain-generic (>= 2018.20190227) but it is not going to be installed
Depends: texlive-pstricks (>= 2018.20190227) but it is not going to be installed
Depends: texlive-pstricks-doc (>= 2018.20190227) but it is not going to be installed
Depends: texlive-publishers (>= 2018.20190227) but it is not going to be installed
Depends: texlive-publishers-doc (>= 2018.20190227) but it is not going to be installed
Depends: texlive-science (>= 2018.20190227) but it is not going to be installed
Depends: texlive-science-doc (>= 2018.20190227) but it is not going to be installed
Depends: texlive-xetex (>= 2018.20190227) but it is not going to be installed
Depends: tipa (>= 2:1.2-2.1) but it is not going to be installed
Depends: vprerex (> 6.5.3-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
评论:当我第一次安装 Latex 时,一切进展顺利,然后我失去了连接并停止了任务,所以当我第二次安装时,问题就开始了。
编辑: 我试图看看这两条评论里有什么,对于第一条评论,问题似乎与 universe 存储库无关,因为当我发出这个命令时
sudo add-apt-repository universe
我有
'universe' distribution component is already enabled for all sources.
对于第二条评论,我已经尝试了答案中写的所有方法,但似乎没有人与我合作,例如
dpkg --get-selections | grep hold
什么都不做,更新,升级和自动删除等等,'解决了问题,我也安装了突触,但在它里面,坏了的部分什么都没有,我真的对这个问题感到迷茫,提前谢谢