首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我试图在ubuntu20.04,verify_checksum:-5上安装一个带tlmgr的胶乳包时出错了

当我试图在ubuntu20.04,verify_checksum:-5上安装一个带tlmgr的胶乳包时出错了
EN

Ask Ubuntu用户
提问于 2020-06-25 01:32:55
回答 2查看 3.4K关注 0票数 5

我在ubuntu 20.04上安装了texlive,其内容如下:

代码语言:javascript
复制
sudo apt -y install texlive-latex-extra texlive-extra-utils texlive-font-utils

当我试图安装一个乳胶包(任何)时,我得到:

代码语言:javascript
复制
/usr/bin/tlmgr: unexpected return value from verify_checksum: -5

有什么想法吗?

编辑:你好,我用tlmgr install package_name安装软件包。当安装胶乳时.dpkg -S $(which tlmgr)输出

代码语言:javascript
复制
texlive-base: /usr/bin/tlmgr

apt-cache policy texlive-base的输出:

代码语言:javascript
复制
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

tlmgr --version的输出:

代码语言:javascript
复制
tlmgr revision 53568 (2020-01-27 19:20:16 +0100)
tlmgr using installation: /usr/share/texlive
TeX Live (http://tug.org/texlive) version 2019
EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2020-06-26 09:11:12

在这里有两个时刻:

  1. 根据这是关于StackExchange的问答 - TuG GPG键过期了,所以您必须将--verify-repo=none添加到命令中,如以下所示: tlmgr -TuG-repo=none install,还请注意,tlmgr将显示警告: tlmgr: Local (2019)比远程存储库(2020)更早。因此,需要采取一些额外的行动。
  2. 就我个人而言,我更喜欢使用来自发行版的deb软件包来安装。您可以使用这种方法作为解决办法。对于光束包,可以获得正确的deb-包名称在搜索时从packages.ubuntu.com发出beamer.cls。因此,您必须安装单个软件包: sudo apt-get install texlive-胶乳推荐程序。
票数 5
EN

Ask Ubuntu用户

发布于 2021-03-31 01:45:44

tlmgr: Local TeX Live (2019) is older than remote repository (2020)。更改TexLive 2019年的正确存储库解决了此错误。

  1. 在终端中键入此命令以更改default存储库
代码语言:javascript
复制
tlmgr repository add tug.org/historic/systems/texlive/2019/tlnet-final
tlmgr repository list
tlmgr repository remove mirror.ctan.org/systems/texlive/tlnet 
tlmgr option repository tug.org/historic/systems/texlive/2019/tlnet-final 
  1. 使用以下方法安装所需的LaTeX包:
代码语言:javascript
复制
tlmgr --verify-repo=none install beamer

在本例中,我成功地使用了beamer参数安装了--verify-repo=none包。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1253532

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档