ale*_*dro 5 package-management texlive 20.04
我已经尝试过问题答案中建议的内容:\n“尝试在 ubuntu 20.04 上通过 tlmgr 安装乳胶包时出错,verify_checksum: -5 ”。
\n当我键入此命令时:\n tlmgr --verify-repo=none install beamer\n我得到:
(running on Debian, switching to user mode!)\n\ntlmgr: Local TeX Live (2019) is older than remote repository (2020).\nCross release updates are only supported with\n update-tlmgr-latest(.sh/.exe) --update\nSee https://tug.org/texlive/upgrade.html for details.\nRun Code Online (Sandbox Code Playgroud)\n我访问了上面的链接(https://tug.org/texlive/upgrade.html),按照那里的建议,首先,我尝试了 texlive-latex-extra 的“新安装”,但没有任何改变。\于是我就跟着导游走了。首先它说父目录应该是:
\n/usr/local/texlive/\nRun Code Online (Sandbox Code Playgroud)\n在 texlive 目录中,我应该找到 2019 (或 2020)目录,但我唯一的目录是:\n texmf-local:
ale@ale-ThinkPad-L13-Yoga:~$ ls /usr/local/texlive/\ntexmf-local\nRun Code Online (Sandbox Code Playgroud)\n最终我寻找了“texlive/2019”或“texlive/2020”目录,但没有:
\nale@ale-ThinkPad-L13-Yoga:~$ sudo find / -iwholename */texlive/2020/*\nfind: \xe2\x80\x98/run/user/1000/doc\xe2\x80\x99: Permission denied\nfind: \xe2\x80\x98/run/user/1000/gvfs\xe2\x80\x99: Permission denied\nale@ale-ThinkPad-L13-Yoga:~$ sudo find / -iwholename */texlive/2019/*\nfind: \xe2\x80\x98/run/user/1000/doc\xe2\x80\x99: Permission denied\nfind: \xe2\x80\x98/run/user/1000/gvfs\xe2\x80\x99: Permission denied\nRun Code Online (Sandbox Code Playgroud)\n我又想我安装了错误的 texlive-latex-extra 但重新安装了“texlive-...”后问题仍然存在?
\n简短的解决方案是:此错误是因为您使用了错误的存储库版本。您的 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
Run Code Online (Sandbox Code Playgroud)
之后,您可以使用以下命令安装该软件包:
tlmgr --verify-repo=none install dirtree
Run Code Online (Sandbox Code Playgroud)
我添加了--verify-repo参数以避免出现此错误:tlmgr: unexpected return value from verify_checksum: -5 for main repository
我个人建议从官方 Ubuntu 存储库安装所有 LaTeX 内容。
对于投影仪使用:
sudo apt-get install texlive-latex-recommended
Run Code Online (Sandbox Code Playgroud)
因为它包含所需的beamer.cls。您将获得不太旧的 2019 版本,这确实足以排版文档。这里根本不需要最新的 2020。
| 归档时间: |
|
| 查看次数: |
7021 次 |
| 最近记录: |