首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >tlmgr:本地TeX Live (2019年)比远程存储库(2020年)老

tlmgr:本地TeX Live (2019年)比远程存储库(2020年)老
EN

Ask Ubuntu用户
提问于 2020-08-08 15:45:58
回答 2查看 5.5K关注 0票数 4

我已经尝试了这个问题的答案中的建议:“当我试图在ubuntu20.04,verify_checksum:-5上安装一个乳胶包时出错了。

当我输入这个命令:tlmgr --verify-repo=none install beamer时,我得到:

代码语言:javascript
复制
(running on Debian, switching to user mode!)

tlmgr: Local TeX Live (2019) is older than remote repository (2020).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.

我访问了上面的链接(https://tug.org/texlive/upgrade.html),就像这里建议的那样,首先,我尝试了一种新的文本连接--乳胶--额外的,但是没有什么改变。所以我跟着向导走了。在第一点上,它说父目录应该是:

代码语言:javascript
复制
/usr/local/texlive/

而且,在texlive目录中,我应该找到一个2019年(或2020年)目录,但我唯一拥有的目录是:texmf-local

代码语言:javascript
复制
ale@ale-ThinkPad-L13-Yoga:~$ ls /usr/local/texlive/
texmf-local

最后,我查找了一个"texlive/2019“或"texlive/2020”目录,但是没有:

代码语言:javascript
复制
ale@ale-ThinkPad-L13-Yoga:~$ sudo find / -iwholename */texlive/2020/*
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
ale@ale-ThinkPad-L13-Yoga:~$ sudo find / -iwholename */texlive/2019/*
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied

我再次认为我安装了一个错误的文本-乳胶-额外,但在重新安装“文本-.”问题仍然存在?

EN

回答 2

Ask Ubuntu用户

发布于 2021-01-23 03:08:07

简短的解决方案是:这个错误是因为您使用了错误的存储库版本。您的TexLive 2019年正在尝试使用TexLive 2020 ftp存储库。

您应该更改到右边(正确)存储库。在终端中键入以下命令:

代码语言:javascript
复制
tlmgr repository add ftp://tug.org/historic/systems/texlive/2019/tlnet-final
tlmgr repository list
tlmgr repository remove http://mirror.ctan.org/systems/texlive/tlnet
tlmgr option repository ftp://tug.org/historic/systems/texlive/2019/tlnet-final

之后,您可以使用以下命令安装包:

代码语言:javascript
复制
tlmgr --verify-repo=none install dirtree

我添加了--verify-repo参数以避免获得此错误:tlmgr: unexpected return value from verify_checksum: -5 for main repository

票数 3
EN

Ask Ubuntu用户

发布于 2020-08-08 15:50:36

就我个人而言,我建议从正式的Ubuntu存储库中安装所有的LaTeX内容。

在使用光束时:

代码语言:javascript
复制
sudo apt-get install texlive-latex-recommended

因为它包含所需的beamer.cls。你不会得到太旧的2019年版本,这确实足以排版文档。这里根本不需要最新的2020年。

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

https://askubuntu.com/questions/1265533

复制
相关文章

相似问题

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