问题描述
通过tex提供的安装程序install-tl-windows.exe 和Tex官方下载链接下载安装texlive出现异常:
……省略之前的安装日志……
Installing [4307/4310, time/total: 09:58:44/09:59:32]: zxjafbfont [3k]
Installing [4308/4310, time/total: 09:58:50/09:59:38]: zxjafont [181k]
Installing [4309/4310, time/total: 09:58:57/09:59:43]: zxjatype [144k]
Installing [4310/4310, time/total: 09:59:04/09:59:49]: zztex [147k]
Retrying to install: animate [3123k]
TeXLive::TLUtils::check_file_and_remove: checksums differ for C:\Users\ZHENGS~1\AppData\Local\Temp\1GvoHDq5ED\DfiZjHPyaR/animate.doc.tar.xz:
TeXLive::TLUtils::check_file_and_remove: tlchecksum=5edf8be17bf9489b0bbadbb3d7194d00e0ec7106e12b16690e2b80bdd4f43aade0359f4676f14f5890014137a2e0a45eefa3cc1bed153e90da6ef14246d2408b, arg=5ba25d26a8eb1434203802573b8303e4ffd81e11bd8da1328405d8974597f5c01a625f437c29fc8aad592565d3c890172868568d59264711175e3778c7ca775c
TeXLive::TLUtils::check_file_and_remove: backtrace:
-> E:/packages/tex/install-tl-20210611/tlpkg/TeXLive/TLUtils.pm:2399: TeXLive::TLUtils::check_file_and_remove
-> E:/packages/tex/install-tl-20210611/tlpkg/TeXLive/TLPDB.pm:1978: TeXLive::TLUtils::unpack
-> E:/packages/tex/install-tl-20210611/tlpkg/TeXLive/TLPDB.pm:1849: TeXLive::TLPDB::_install_data
-> E:/packages/tex/install-tl-20210611/tlpkg/TeXLive/TLPDB.pm:1729: TeXLive::TLPDB::not_virtual_install_package
-> E:/packages/tex/install-tl-20210611/tlpkg/TeXLive/TLUtils.pm:1633: TeXLive::TLPDB::install_package
-> E:/packages/tex/install-tl-20210611/install-tl:2135: TeXLive::TLUtils::install_packages
-> E:/packages/tex/install-tl-20210611/install-tl:946: main::do_install_packages
-> E:/packages/tex/install-tl-20210611/install-tl:700: main::do_installation
TeXLive::TLUtils::check_file_and_remove: removing C:\Users\ZHENGS~1\AppData\Local\Temp\1GvoHDq5ED\DfiZjHPyaR/animate.doc.tar.xz, but saving copy in C:\Users\ZHENGS~1\AppData\Local\Temp\rh0aL0Gxa8
TLPDB::_install_data: downloading did not succeed (check_file_and_remove failed) for https://mirror.ctan.org/systems/texlive/tlnet/archive/animate.doc.tar.xz
Installation failed.
Rerunning the installer will try to restart the installation.
Or you can restart by running the installer with:
install-tl-windows.bat --profile installation.profile [YOUR-EXTRA-ARGS]
or
install-tl-advanced.bat --profile installation.profile [YOUR-EXTRA-ARGS]
其中check_file_and_remove failed应该是安装失败的主要原因。
解决方案
在网上搜索到了解决问题的方法。
首先从CTAN的镜像地址下载texlive.iso文件。点击进入iso文件,如下:
点击iso镜像文件中的批处理文件“install-tl-windows.bat”,安装程序开始运行:
选择好安装路径后,点击开始安装,出现安装日志界面:
等到所有部件安装完成后,日志界面会打印出安装成功的字样,就可以开始使用了: