我正在尝试修复 Ubuntu 18.04 上的 MiKTeX 安装,或者至少我想删除它及其所有软件包以安装 TexLive。
几周前我尝试安装它,然后https://miktex.org/howto/install-miktex-unx,我得到了
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu bionic InRelease' doesn't support architecture 'i386'
我没有太多时间修复这个问题,所以我什么也没做。今天早上我又回到这个问题,在最后一步我尝试了这个解决方案:
存储库“http://miktex.org/download/ubuntu xenial InRelease”不支持体系结构“i386”
然后我运行:
rob@rob-Ubuntu:~$ sudo apt install miktex
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.
miktex : Depends: libhunspell-1.3-0 (>= 1.3.3) but it is not installable
Depends: libicu55 (>= 55.1-1~) but it is not installable
Depends: libmpfr4 (>= 3.1.3) but it is not installable
Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
E: Unable to correct problems, you have held broken packages.
最后
rob@rob-Ubuntu:~$ sudo aptitude install libhunspell-1.3-0
No candidate version found for libhunspell-1.3-0
Unable to apply some actions, aborting
似乎什么都没起作用。
有什么建议么?
我想要 1- 正确安装 Miktex 或者 2-取消与其相关的任何内容,然后安装 TexLive。
答案1
dpkg -l miktex
如果安装了 MiKTeX,将返回。要清除 MiKTeX:MiKTeX 控制台 -> 清理 -> 重置 TeX 安装,然后
sudo apt-get remove miktex
sudo apt autoremove
要在 18.04 上安装 TeXLive,你可以安装以下之一
- texlive 基础
- texlive-latex-推荐
- 特科利
- texlive-latex-extra
- texlive-完整版
第一个包texlive-base
将只安装 LaTeX 的基本功能。texlive
或者texlive-latex-extra
适合大多数用户。texlive-full
如果您有足够的空间并且不介意非必要的包,请选择它。
sudo apt-get update
sudo apt-get install texlive-full