无法在 Ubuntu 18 上安装 miktex

无法在 Ubuntu 18 上安装 miktex

最终的最终目标是将 HTML 转换为 PDF。我看到了这个解决方案:

https://github.com/SebastiaanKlippert/go-wkhtmltopdf

但上述解决方案似乎需要无头镀铬才能运行。所以我将尝试使用潘多克这将依次使用混合纺织从 HTML 生成 TeX?

但是当我安装 miktex 时,我得到:

$  sudo apt-get 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: libcurl3 (>= 7.16.2) but it is not installable
          Depends: libhunspell-1.4-0 but it is not installable
          Depends: libicu57 (>= 57.1-1~) but it is not installable
          Depends: libjpeg62-turbo (>= 1.3.1) but it is not installable
          Depends: libmpfr4 (>= 3.1.3) but it is not installable
E: Unable to correct problems, you have held broken packages.

有谁知道如何解决依赖问题?

答案1

您需要启用universe存储库:

sudo add-apt-repository universe
sudo apt install miktex

相关内容