我按照 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/