操作系统
Tex发行版
2021
系统先前安装了ctex在C盘,根据官网(https://ctan.org/pkg/install-latex-guide-zh-cn ) 的安装介绍,已排查环境变量中【存在mingw,jdk的相关内容】或【缺失C:WIndowssystem32】的问题,但安装texlive2021时会出现如下报错
(...省略正常安装代码)
Installing [0092/4151, time/total: 03:01/02:18:44]: alkalami [125k]
Installing [0093/4151, time/total: 03:03/02:20:03]: allrunes [8078k]
tar: Cannot open C:UsersSONGSH~1LOCALS~1TempaSp7tkKDBEqgXEYiSL2c/allrunes.r42221.tar: Permission denied
TLUtils::untar: F:tlpkginstallertar.exe xmf C:UsersSONGSH~1LOCALS~1TempaSp7tkKDBEqgXEYiSL2c/allrunes.r42221.tar failed (in D:/texlive/2021/texmf-dist)
TLPDB::_install_data: untar failed for F:/archive/allrunes.r42221.tar.xz
TLUtils::install_packages: Failed to install allrunes
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]
F:install-tl: Writing log in current directory: C:/WINDOWS/system32/install-tl.log
Wide character in print at F:install-tl line 2486, <STDIN> line 6.
Wide character in print at F:install-tl line 2486, <STDIN> line 6.
Wide character in print at F:install-tl line 2486, <STDIN> line 6.
Wide character in print at F:install-tl line 2486, <STDIN> line 6.
另外考虑到用户名含有中文的问题,本人的应对方法是:
使用管理员身份进入cmd,为用户目录建立软链接,并修改注册表,具体操作方法参考来自(https://antrn.blog.csdn.net/article/details/102836028 )
ps:本人尝试过修改环境变量TEMP和TMP的方式来应对用户名问题,但安装时都会遇到上文中的报错,希望有专业人士能够指出报错中可能存在的问题,或者如何正确解决中文用户名的安装问题,或者如何完全排查ctex与texlive的兼容性问题
https://ctan.org/pkg/install-latex-guide-zh-cn
是这个文章里的方法吗?进入cmd修改环境变量TEMP和TMP,这个方法我试过了,还是会安装失败>_<
会出现问题中的报错类型
你好,问题最终解决了,感谢解答!