我已经尝试了这个问题的答案中的建议:“当我试图在ubuntu20.04,verify_checksum:-5上安装一个乳胶包时出错了。
当我输入这个命令:tlmgr --verify-repo=none install beamer时,我得到:
(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),就像这里建议的那样,首先,我尝试了一种新的文本连接--乳胶--额外的,但是没有什么改变。所以我跟着向导走了。在第一点上,它说父目录应该是:
/usr/local/texlive/而且,在texlive目录中,我应该找到一个2019年(或2020年)目录,但我唯一拥有的目录是:texmf-local:
ale@ale-ThinkPad-L13-Yoga:~$ ls /usr/local/texlive/
texmf-local最后,我查找了一个"texlive/2019“或"texlive/2020”目录,但是没有:
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我再次认为我安装了一个错误的文本-乳胶-额外,但在重新安装“文本-.”问题仍然存在?
发布于 2021-01-23 03:08:07
简短的解决方案是:这个错误是因为您使用了错误的存储库版本。您的TexLive 2019年正在尝试使用TexLive 2020 ftp存储库。
您应该更改到右边(正确)存储库。在终端中键入以下命令:
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之后,您可以使用以下命令安装包:
tlmgr --verify-repo=none install dirtree我添加了--verify-repo参数以避免获得此错误:tlmgr: unexpected return value from verify_checksum: -5 for main repository
发布于 2020-08-08 15:50:36
就我个人而言,我建议从正式的Ubuntu存储库中安装所有的LaTeX内容。
在使用光束时:
sudo apt-get install texlive-latex-recommended因为它包含所需的beamer.cls。你不会得到太旧的2019年版本,这确实足以排版文档。这里根本不需要最新的2020年。
https://askubuntu.com/questions/1265533
复制相似问题