如何告诉 tlmgr 不要从特定镜像中提取?

如何告诉 tlmgr 不要从特定镜像中提取?

我的 texlive 设置为从附近的任何镜像中提取更新。问题是,一个特定的镜像在更新时不断产生错误,导致软件包被强制删除。例如,tlmgr update --all今天早上在终端中运行

tlmgr.pl: package repository https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr.pl: saving backups to C:/texlive/2023/tlpkg/backups
[1/8, ??:??/??:??] update: expex-glossonly [72k] (67958 -> 68860) ... TeXLive::TLUtils::check_file_and_remove: checksums differ for C:\Users\mbert\AppData\Local\Temp\EHiPH5r8Jo\yvAXANUM6s/expex-glossonly.doc.tar.xz:
TeXLive::TLUtils::check_file_and_remove:   tlchecksum=094f2c57bbd2a85771d7c4993174a292dd15733e735ffeecedca64d5f737be537c96b00c2c41243364baed17d41fc62706e100ccf4f71f6c8f289ab803495aa7, arg=7ff5b9dfada3ef37c0ddc28a472a33a816d52b7b9b265291c640527e6b8974ca21d5867f7e271856a920589062eab5563b29c919a7df66b51af93af5e12fed5c
TeXLive::TLUtils::check_file_and_remove: backtrace:
 -> C:/texlive/2023/tlpkg/TeXLive/TLUtils.pm:2650: TeXLive::TLUtils::check_file_and_remove
 -> C:/texlive/2023/tlpkg/TeXLive/TLPDB.pm:1985: TeXLive::TLUtils::unpack
 -> C:/texlive/2023/tlpkg/TeXLive/TLPDB.pm:1856: TeXLive::TLPDB::_install_data
 -> C:/texlive/2023/tlpkg/TeXLive/TLPDB.pm:1736: TeXLive::TLPDB::not_virtual_install_package
 -> C:\texlive\2023\texmf-dist\scripts\texlive\tlmgr.pl:3380: TeXLive::TLPDB::install_package
 -> C:\texlive\2023\texmf-dist\scripts\texlive\tlmgr.pl:798: main::action_update
 -> C:\texlive\2023\texmf-dist\scripts\texlive\tlmgr.pl:704: main::execute_action
 -> C:\texlive\2023\texmf-dist\scripts\texlive\tlmgr.pl:367: main::main
TeXLive::TLUtils::check_file_and_remove:   removing C:\Users\mbert\AppData\Local\Temp\EHiPH5r8Jo\yvAXANUM6s/expex-glossonly.doc.tar.xz, but saving copy in C:\Users\mbert\AppData\Local\Temp\U_VkBCQQDZ
TLPDB::_install_data: downloading did not succeed (check_file_and_remove failed) for https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/archive/expex-glossonly.doc.tar.xz
tlmgr.pl: Installation of new version of expex-glossonly failed, trying to unwind.
Cannot open tlpobj file: C:/texlive/2023/tlpkg/tlpobj/expex-glossonly.tlpobj at C:/texlive/2023/tlpkg/TeXLive/TLPOBJ.pm line 72.

有问题的镜子是https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet。如果不指定始终从哪个镜像拉取数据,是否可以将 texlive 配置为从不从该镜像拉取数据?我在texlive 文档。现在我所能做的就是逃跑tlmgr update --all --reinstall-forcibly-removed并希望看到另一面镜子。

答案1

最近我也遇到了多个与cicku.me镜子有关的问题。

据我所知,你不能排除特定的镜像镜像多路复用器由 CTAN 运行的服务。您只能避免使用它,而只能指定要使用的特定镜像,例如仅使用普林斯顿大学的镜像:

sudo tlmgr option repository https://mirror.math.princeton.edu/pub/CTAN/systems/texlive/

相关内容