在 macOS Big Sur 上更新 tlmgr

在 macOS Big Sur 上更新 tlmgr

我在 MacBook Pro 上安装了 macOS Big Sur (11.1),以及基本TeX我尝试tlmgr通过运行进行更新sudo tlmgr update --self,但出现错误。我猜主要消息是,only MacOSX is supported, not darwin 11.1但我得到的完整输出如下。

/Library/TeX/texbin/tlmgr: only MacOSX is supported, not darwin 11.1  (from sw_vers -productVersion: 11.1)
query_ctan_mirror: Programs not set up, trying wget
cannot contact mirror.ctan.org, returning a backbone server!
tlmgr: package repository http://www.ctan.org/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr: saving backups to /usr/local/texlive/2020basic/tlpkg/backups
TLPDB::_install_package: unsupported container format xz
tlmgr: Installation of new version of texlive.infra failed, trying to unwind.
[1/1, ??:??/??:??] update: texlive.infra [223k] (54630 -> 57132) ... tlmgr: Restoring old package state succeeded.
done
tlmgr: The file README has disappeared from the critical package texlive.infra but is still present in dehyph:texmf-dist/tex/generic/dehyph/README dvipdfmx:texmf-dist/fonts/cmap/dvipdfmx/README koma-script:texmf-dist/doc/latex/koma-script/README mfware:texmf-dist/mft/base/README texlive-msg-translations:tlpkg/translations/README texlive-scripts:texmf-dist/fonts/map/dvips/tetex/README
tlmgr: action update returned an error; continuing.
tlmgr: package log updated: /usr/local/texlive/2020basic/texmf-var/web2c/tlmgr.log
tlmgr: An error has occurred. See above messages. Exiting.

这在 macOS Catalina 上运行良好,没有任何问题,也没有任何错误消息,所以很可能与 macOS Big Sur 有关。我该如何修复并更新tlmgr

任何帮助深表感谢!

答案1

请安装 TeX Live Utility(您可以从 <github.com/amaxwell/tlutility/releases>) 并运行其 Actions->Renstall Tex Live Manager mwenu 项。它通过新安装程序而不是通过 tlmgr 本身执行此操作。

答案2

我也遇到了同样的问题。错误在这里:“TLPDB::_install_package: 不支持的容器格式 xz”。

需要使用“xz”程序来解压软件包。如果您使用 homebrew,请使用“brew install xz”。

相关内容