升级到 18.04 后,我清除了 texlive 以前版本的所有痕迹,但现在无法安装 texlive、texlive-full 或 texlive-xetex。
例如,sudo apt install texlive
给我以下消息:
Package texlive is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'texlive' has no installation candidate
同样sudo apt-cache policy texlive
给了我
texlive
Installed: (none)
Candidate: (none)
Version table:
我可以安装 texlive-base,但我需要 texlive-xetex
答案1
按照这些说明对我来说很有效:
sudo add-apt-repository universe
sudo apt update
sudo apt install texlive-xetex
(谢谢诺伯特指出,为了使宇宙資料庫)