ITADN

Installation on Windows fails at the step "tlmgr update --list"

#59ClosedGael-Hammer 创建于 2026-05-21
G
Gael-Hammercommented
After installing R 4.6 and reinstalling all libraries, knitting to PDF aborted with an error message, so I uninstalled TinyTeX using `tinytex::uninstall_tinytex()` and tried a re-installation. In this process, it looks like `tlmgr update --list` expects to read a file starting with "name", but gets a file starting with `<!DOCTYPE html>` from the set online repository and halts with the message `First directive needs to be 'name', not <!DOCTYPE html> at C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPOBJ.pm line 106, <$retfh> line 1.` I am not expert enough to solve this. Could you help? Many thanks in advance! Here's my console output: ``` > tinytex::install_tinytex() trying URL 'https://github.com/rstudio/tinytex-releases/releases/download/daily/TinyTeX-1-windows.exe' Content type 'application/octet-stream' length 71607440 bytes (68.3 MB) downloaded 68.3 MB 7-Zip SFX 26.00 (x86) : Copyright (c) 1999-2026 Igor Pavlov : 2026-02-12 Extracting archive: C:\Users\<user>\AppData\Local\Temp\RTMPOA~1\TINYTE~1.EXE -- Path = C:\Users\<user>\AppData\Local\Temp\RTMPOA~1\TINYTE~1.EXE Type = 7z Everything is Ok 3 File(s) copied 1 File(s) copied Running fc-cache -v -r tlmgr --repository https://www.preining.info/tlgpg/ install tlgpg tlmgr.pl: package repository https://www.preining.info/tlgpg/ (not verified: pubkey missing) [1/2, ??:??/??:??] install: tlgpg.windows [1761k] [2/2, 00:02/00:02] install: tlgpg [1k] running mktexlsr ... done running mktexlsr. tlmgr.pl: package log updated: C:/Users/r<user>/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log tlmgr.pl: command log updated: C:/Users/<user>/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr-commands.log tlmgr option repository "https://tlnet.yihui.org/systems/texlive/tlnet" tlmgr.pl: setting default package repository to https://tlnet.yihui.org/systems/texlive/tlnet tlmgr.pl: updating C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/texlive.tlpdb tlmgr update --list First directive needs to be 'name', not <!DOCTYPE html> at C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPOBJ.pm line 106, <$retfh> line 1. ``` 2nd attempt, without uninstalling first: ``` > tinytex::install_tinytex() Found 'C:\Users\<user>\AppData\Roaming\TinyTeX\bin\windows\tlmgr.bat', which indicates a LaTeX distribution may have existed in the system. Continue the installation anyway? (Y/N) y 7-Zip SFX 26.00 (x86) : Copyright (c) 1999-2026 Igor Pavlov : 2026-02-12 Extracting archive: C:\Users\<user>\AppData\Local\Temp\RTMPOA~1\TINYTE~1.EXE -- Path = C:\Users\<user>\AppData\Local\Temp\RTMPOA~1\TINYTE~1.EXE Type = 7z Everything is Ok 3 File(s) copied 1 File(s) copied Running fc-cache -v -r tlmgr install tlgpg First directive needs to be 'name', not <!DOCTYPE html> at C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPOBJ.pm line 106, <$retfh> line 1. tlmgr update --self tlmgr install tlgpg First directive needs to be 'name', not <!DOCTYPE html> at C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPOBJ.pm line 106, <$retfh> line 1. tlmgr --repository https://www.preining.info/tlgpg/ install tlgpg tlmgr.pl: package repository https://www.preining.info/tlgpg/ (not verified: pubkey missing) [1/2, ??:??/??:??] install: tlgpg.windows [1761k] [2/2, 00:01/00:01] install: tlgpg [1k] running mktexlsr ... done running mktexlsr. tlmgr.pl: package log updated: C:/Users/<user>/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log tlmgr.pl: command log updated: C:/Users/<user>/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr-commands.log tlmgr option repository "https://tlnet.yihui.org/systems/texlive/tlnet" tlmgr.pl: setting default package repository to https://tlnet.yihui.org/systems/texlive/tlnet tlmgr.pl: updating C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/texlive.tlpdb tlmgr update --list First directive needs to be 'name', not <!DOCTYPE html> at C:/Users/<user>/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPOBJ.pm line 106, <$retfh> line 1. ```
关闭于 2026-05-21 1 条评论