我在 ubuntu 20.04 上安装了 texlive:
sudo apt -y install texlive-latex-extra texlive-extra-utils texlive-font-utils
Run Code Online (Sandbox Code Playgroud)
当尝试安装乳胶包(任何)时,我得到:
/usr/bin/tlmgr: unexpected return value from verify_checksum: -5
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
编辑:您好,我使用tlmgr install package_name. 安装 Latex 时会安装 tlmgr... 的输出dpkg -S $(which tlmgr)
texlive-base: /usr/bin/tlmgr
Run Code Online (Sandbox Code Playgroud)
输出apt-cache policy texlive-base:
texlive-base:
Installed: 2019.20200218-1
Candidate: 2019.20200218-1
Version table:
*** 2019.20200218-1 500
500 http://cl.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
500 http://cl.archive.ubuntu.com/ubuntu focal/universe i386 Packages
100 /var/lib/dpkg/status
Run Code Online (Sandbox Code Playgroud)
输出tlmgr --version:
tlmgr revision 53568 (2020-01-27 19:20:16 +0100)
tlmgr using installation: /usr/share/texlive
TeX Live (http://tug.org/texlive) version 2019
Run Code Online (Sandbox Code Playgroud)
这里有两个时刻:
根据StackExchange 上的此问答- TuG GPG 密钥已过期,因此您必须添加--verify-repo=none到命令中,如下所示:
tlmgr --verify-repo=none install beamer
Run Code Online (Sandbox Code Playgroud)
另请注意,tlmgr将显示警告:
Run Code Online (Sandbox Code Playgroud)tlmgr: Local TeX Live (2019) is older than remote repository (2020).
因此需要采取一些额外的措施。
就我个人而言,我更喜欢使用发行版中的 deb-packages 进行安装。您可以使用此类方法作为解决方法。对于beamer包,在搜索beamer.cls时,可以从packages.ubuntu.com 获得正确的 deb 包名称。所以你必须安装单个包:
sudo apt-get install texlive-latex-recommended
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3898 次 |
| 最近记录: |