微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

为 rmarkdown 安装 TinyTeX 时出错:无法生成“cmd.exe”:没有此类文件或目录和不受支持的容器格式

如何解决为 rmarkdown 安装 TinyTeX 时出错:无法生成“cmd.exe”:没有此类文件或目录和不受支持的容器格式

我正在尝试使用 rmarkdown 创建 pdf。我已经安装了 Rtools,我相信它可以正常工作,因为 sys.which("make") 返回一个文件位置。昨天,一切顺利,我可以毫无问题地编织文档,但是今天当我尝试编织时,我得到以下信息:

Use of uninitialized value $ver in scalar chomp at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up tar with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe" didn't work
...
Setting up curl with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe" didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL sspI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up wget with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe" didn't work
GNU Wget 1.21.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -Metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/msys32/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONfig_H 
    -DSYstem_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

...
xz (XZ Utils) 5.2.5
liblzma 5.2.5
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
...
Setting up lz4 with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe" didn't work
*** LZ4 command line interface 32-bits v1.8.3,by Yann Collet ***
...
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLCrypto.pm line 464.
Unable to download the checksum of the remote TeX Live database,but found a local copy,so using that.

You may want to try specifying an explicit or different CTAN mirror,or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: unkNown)
[1/1,??:??/??:??] install: multirow [3k]
TLPDB::_install_data: unsupported container format xz for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/multirow.tar.xz
tlmgr.pl: package log updated: C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr update --self
Use of uninitialized value $ver in scalar chomp at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up tar with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe" didn't work
GNU tar 1.11.8 + 2.2(WIN32)
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL sspI libz
...

-cares +digest -gpgme +https +ipv6 -iri +large-file -Metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

...

Setting up xz with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe" didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLCrypto.pm line 464.
! LaTeX Error: File `multirow.sty' not found.

! Emergency stop.
<read *> 

Error: LaTeX Failed to compile 01-Thesis-draft.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See 01-Thesis-draft.log for more info.
In addition: Warning message:
In has_crop_tools() : 
Tool(s) not installed or not in PATH: pdfcrop,ghostcript
-> As a result,figure cropping will be disabled.
Execution halted

我尝试再次安装该软件包,当我运行 install.packages('tinytex') 时它工作正常:

Installing package into ‘C:/Users/Connor Reynolds/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://mirrors.nics.utk.edu/cran/bin/windows/contrib/4.0/tinytex_0.29.zip'
Content type 'application/zip' length 116757 bytes (114 KB)
downloaded 114 KB

package ‘tinytex’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Connor Reynolds\AppData\Local\Temp\RtmpqG3qMG\downloaded_packages

后跟tinytex::install_tinytex()

trying URL 'https://yihui.org/tinytex/TinyTeX-1.zip'
Content type 'application/octet-stream' length 103067445 bytes (98.3 MB)
downloaded 98.3 MB

Use of uninitialized value $ver in scalar chomp at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up tar with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe" didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
...
tlmgr install a4wide ae algorithms amscls appendix babel-english bbm-macros beamer breakurl caption catoptions changepage charter cite cLeveref colortbl comment courier eepic enumitem environ eso-pic eurosym extsizes fancyhdr floatrow fontaxes fp fpl grfext hardwrap ifmtarg kastrup koma-script lastpage lettrine libertine lipsum listings ltxkeys ly1 makecell makecmds mathalpha mathpazo mathtools mdframed microtype morefloats ms mweights ncntrsbk needspace newtx ntgclass oberdiek palatino paralist parskip pBox pdflscape pdfpages pgf picinpar placeins polyglossia preprint preview psnfss roboto sauerj sectsty setspace siunitx srcltx standalone stmaryrd sttools subfig subfigure symbol tabu textcase threeparttable threeparttablex thumbpdf titlesec translator trimspaces tufte-latex ucs ulem units varwidth vmargin wallpaper wrapfig xargs xifthen xstring xwatermark
Use of uninitialized value $ver in scalar chomp at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
...
TLPDB::_install_data: unsupported container format xz for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/xwatermark.tar.xz
Unable to download the checksum of the remote TeX Live database,or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: unkNown)
[1/102,??:??/??:??] install: a4wide [1k]
[2/102,00:00/00:00] install: ae [57k]
[3/102,00:00/00:00] install: algorithms [4k]
[4/102,00:00/00:00] install: amscls [32k]
[5/102,00:00/00:00] install: appendix [3k]
[6/102,00:00/00:00] install: babel-english [3k]
[7/102,00:00/00:00] install: bbm-macros [2k]
[8/102,00:00/00:00] install: beamer [162k]
[9/102,00:00/00:00] install: breakurl [4k]
[10/102,00:00/00:00] install: caption [31k]
[11/102,00:00/00:00] install: catoptions [37k]
[12/102,00:00/00:00] install: changepage [3k]
[13/102,00:00/00:00] install: charter [172k]
[14/102,00:00/00:00] install: cite [20k]
[15/102,00:00/00:00] install: cLeveref [28k]
[16/102,00:00/00:00] install: colortbl [4k]
[17/102,00:00/00:00] install: comment [5k]
[18/102,00:00/00:00] install: courier [470k]
[19/102,00:00/00:00] install: eepic [12k]
[20/102,00:00/00:00] install: enumitem [14k]
[21/102,00:00/00:00] install: environ [2k]
[22/102,00:00/00:00] install: eso-pic [4k]
[23/102,00:00/00:00] install: eurosym [137k]
[24/102,00:00/00:00] install: extsizes [12k]
[25/102,00:00/00:00] install: fancyhdr [5k]
[26/102,00:00/00:00] install: floatrow [16k]
[27/102,00:00/00:00] install: fontaxes [4k]
[28/102,00:00/00:00] install: fp [19k]
[29/102,00:00/00:00] install: fpl [282k]
[30/102,00:00/00:00] install: grfext [3k]
[31/102,00:00/00:00] install: hardwrap [3k]
[32/102,00:00/00:00] install: ifmtarg [1k]
[33/102,00:00/00:00] install: kastrup [2k]
[34/102,00:00/00:00] install: koma-script [12801k]
[35/102,00:00/00:00] install: lastpage [4k]
[36/102,00:00/00:00] install: lettrine [7k]
[37/102,00:00/00:00] install: libertine [13620k]
[38/102,00:00/00:00] install: lipsum [74k]
[39/102,00:00/00:00] install: listings [143k]
[40/102,00:00/00:00] install: ltxkeys [25k]
[41/102,00:00/00:00] install: ly1 [54k]
[42/102,00:00/00:00] install: makecell [5k]
[43/102,00:00/00:00] install: makecmds [2k]
[44/102,00:00/00:00] install: mathalpha [5k]
[45/102,00:00/00:00] install: mathpazo [63k]
[46/102,00:00/00:00] install: mathtools [20k]
[47/102,00:00/00:00] install: mdframed [21k]
[48/102,00:00/00:00] install: microtype [46k]
[49/102,00:00/00:00] install: morefloats [5k]
[50/102,00:00/00:00] install: ms [3k]
[51/102,00:00/00:00] install: mweights [2k]
[52/102,00:00/00:00] install: ncntrsbk [285k]
[53/102,00:00/00:00] install: needspace [1k]
[54/102,00:00/00:00] install: newtx [5454k]
[55/102,00:00/00:00] install: ntgclass [16k]
[56/102,00:00/00:00] install: oberdiek [45k]
[57/102,00:00/00:00] install: palatino [319k]
[58/102,00:00/00:00] install: paralist [4k]
[59/102,00:00/00:00] install: parskip [3k]
[60/102,00:00/00:00] install: pBox [2k]
[61/102,00:00/00:00] install: pdflscape [3k]
[62/102,00:00/00:00] install: pdfpages [14k]
[63/102,00:00/00:00] install: pgf [701k]
[64/102,00:00/00:00] install: picinpar [6k]
[65/102,00:00/00:00] install: placeins [3k]
[66/102,00:00/00:00] install: polyglossia [112k]
[67/102,00:00/00:00] install: preprint [7k]
[68/102,00:00/00:00] install: preview [7k]
[69/102,00:00/00:00] install: psnfss [12k]
[70/102,00:00/00:00] install: roboto [9672k]
[71/102,00:00/00:00] install: sauerj [5k]
[72/102,00:00/00:00] install: sectsty [5k]
[73/102,00:00/00:00] install: setspace [8k]
[74/102,00:00/00:00] install: siunitx [34k]
[75/102,00:00/00:00] install: srcltx [3k]
[76/102,00:00/00:00] install: standalone [12k]
[77/102,00:00/00:00] install: stmaryrd [163k]
[78/102,00:00/00:00] install: sttools [14k]
[79/102,00:00/00:00] install: subfig [7k]
[80/102,00:00/00:00] install: subfigure [5k]
[81/102,00:00/00:00] install: symbol [36k]
[82/102,00:00/00:00] install: tabu [24k]
[83/102,00:00/00:00] install: textcase [2k]
[84/102,00:00/00:00] install: threeparttable [6k]
[85/102,00:00/00:00] install: threeparttablex [3k]
[86/102,00:00/00:00] install: thumbpdf.win32 [1k]
[87/102,00:00/00:00] install: thumbpdf [19k]
[88/102,00:00/00:00] install: titlesec [20k]
[89/102,00:00/00:00] install: translator [25k]
[90/102,00:00/00:00] install: trimspaces [1k]
[91/102,00:00/00:00] install: tufte-latex [22k]
[92/102,00:00/00:00] install: ucs [263k]
[93/102,00:00/00:00] install: ulem [7k]
[94/102,00:00/00:00] install: units [2k]
[95/102,00:00/00:00] install: varwidth [5k]
[96/102,00:00/00:00] install: vmargin [3k]
[97/102,00:00/00:00] install: wallpaper [2k]
[98/102,00:00/00:00] install: wrapfig [10k]
[99/102,00:00/00:00] install: xargs [4k]
[100/102,00:00/00:00] install: xifthen [3k]
[101/102,00:00/00:00] install: xstring [11k]
[102/102,00:00/00:00] install: xwatermark [17k]
tlmgr.pl: package log updated: C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr update --self
tlmgr install a4wide ae algorithms amscls appendix babel-english bbm-macros beamer breakurl caption catoptions changepage charter cite cLeveref colortbl comment courier eepic enumitem environ eso-pic eurosym extsizes fancyhdr floatrow fontaxes fp fpl grfext hardwrap ifmtarg kastrup koma-script lastpage lettrine libertine lipsum listings ltxkeys ly1 makecell makecmds mathalpha mathpazo mathtools mdframed microtype morefloats ms mweights ncntrsbk needspace newtx ntgclass oberdiek palatino paralist parskip pBox pdflscape pdfpages pgf picinpar placeins polyglossia preprint preview psnfss roboto sauerj sectsty setspace siunitx srcltx standalone stmaryrd sttools subfig subfigure symbol tabu textcase threeparttable threeparttablex thumbpdf titlesec translator trimspaces tufte-latex ucs ulem units varwidth vmargin wallpaper wrapfig xargs xifthen xstring xwatermark
Use of uninitialized value $ver in scalar chomp at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up tar with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe" didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up curl with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe" didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL sspI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up wget with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe" didn't work
GNU Wget 1.21.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -Metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/msys32/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONfig_H 
    -DSYstem_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

copyright (C) 2015 Free Software Foundation,Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY,to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up lz4 with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe" didn't work
*** LZ4 command line interface 32-bits v1.8.3,by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2617.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2634.
Setting up xz with C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as "C:\Users\Connor Reynolds\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe" didn't work
xz (XZ Utils) 5.2.5
liblzma 5.2.5
Can't spawn "cmd.exe": No such file or directory at C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLCrypto.pm line 464.
TLPDB::_install_data: unsupported container format xz for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/a4wide.tar.xz
...
TLPDB::_install_data: unsupported container format xz for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/xwatermark.tar.xz
Unable to download the checksum of the remote TeX Live database,??:??/??:??] install: a4wide [1k]
...
[102/102,00:00/00:00] install: xwatermark [17k]
tlmgr.pl: package log updated: C:/Users/Connor Reynolds/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log

我也尝试过 tinytex::install_prebuilt(),但收到与上述相同的错误

错误中提到的文件都存在于指定的位置,但我不太了解其中的代码如何解决问题。

我也尝试过使用 tinytex::install_tinytex(repository = 'http://dante.ctan.org/tex-archive/') 更改存储库,但结果是同样的问题。

编辑:如果其他人遇到这个问题,我安装了 MikTeX,虽然它的工作速度有点慢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。