windows-subsystem-for-linux - 全新安装后无法使用 tlmgr,tlmgr : Local TeX Live (2021) is older than remote repository (2022)

标签 windows-subsystem-for-linux tex ubuntu-22.04 tex-live tlmgr

我按照 https://tug.org/texlive/quickinstall.html 的说明进行操作

我在 Windows 11 WSL 上使用 Ubuntu 22.04.1 LTS。

在使用 tlmgr 执行任何操作时,我无法克服此错误。事先,我需要运行 tlmgr init-usertree

$ sudo tlmgr install adjustbox
(running on Debian, switching to user mode!)
(see /usr/share/doc/texlive-base/README.tlmgr-on-Debian.md)

tlmgr: Local TeX Live (2021) is older than remote repository (2022).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
$ sudo tlmgr update --self
(running on Debian, switching to user mode!)
(see /usr/share/doc/texlive-base/README.tlmgr-on-Debian.md)

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

据我所知,我已经安装了最新版本:

$ tex --version
TeX 3.141592653 (TeX Live 2022)
kpathsea version 6.3.4
Copyright 2022 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
$ tlmgr --version
tlmgr revision 63068 (2022-04-18 07:58:07 +0200)
tlmgr using installation: /usr/local/texlive/2022
TeX Live (https://tug.org/texlive) version 2022

我尝试删除所有 TeX 并重试,但收到相同的错误。如有任何帮助,我们将不胜感激!

最佳答案

我发现了一个愚蠢的错误,我的 tlmgr 版本实际上已经过时了,但仅限于使用 sudo 时:

$ tlmgr --version
tlmgr revision 63068 (2022-04-18 07:58:07 +0200)
tlmgr using installation: /usr/local/texlive/2022
TeX Live (https://tug.org/texlive) version 2022

$ sudo tlmgr --version
tlmgr revision 60693 (2021-10-04 04:24:25 +0200)
tlmgr using installation: /usr/share/texlive
TeX Live (https://tug.org/texlive) version 2021

关于windows-subsystem-for-linux - 全新安装后无法使用 tlmgr,tlmgr : Local TeX Live (2021) is older than remote repository (2022),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75122873/

相关文章:

tex - 你使用 XeTeX 还是 pdfTeX?

selenium-webdriver - Selenium/Ubuntu22 错误 "Message: binary is not a Firefox executable"

.net - 如何修复 Unix LocalMachine X509Store 仅限于 Root 和 CertificateAuthority 存储错误

git - 通过 WSL 克隆 GitHub 存储库失败

python - Pycharm - 在 WSL 上使用带有远程解释器的 pwntools

latex - 目录链接指向错误的页面

latex - 如何确定 LaTeX 中给定文件路径的文件扩展名?

ubuntu - 22.04 Ubuntu。无法从设备上传文件到网站

node.js - 找不到 Node 16.14.2 的模块 'worker_threads'

makefile - 铛-3.8 : command not found in WSL (Windows Subsystem for Linux)