||
> tinytex::tlmgr_install('tabu') tlmgr install tabu tlmgr.pl: Remote database (revision 74704 of the texlive-scripts package) seems to be older than the local installation (rev 74714 of texlive-scripts); please use a different mirror and/or wait a day or two. tlmgr install tabu tlmgr.pl: Remote database (revision 74581 of the texlive-scripts package) seems to be older than the local installation (rev 74714 of texlive-scripts); please use a different mirror and/or wait a day or two.
这个提示是tlmgr安装不成功的表现,原因是tlmgr_install下载包不成功导致的。解决该问题需要我们给tlmgr更换中国镜像才能成功。
通过
tinytex:::ctan_mirrors()查看tlmger的所有镜像地址,复制一个中国的镜像即可。
使用
tinytex::tlmgr_repo(url="https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet")设置tlmgr的镜像,url中的参数就是上面复制的镜像地址,我例子里面的是清华大学的ctan镜像地址。
设置好镜像以后再使用tinytex::tlmgr_install()进行安装。
> tinytex::tlmgr_install('pdflscape') tlmgr install pdflscape tlmgr.pl: package repository https://mirrors.cqu.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) [1/1, ??:??/??:??] install: pdflscape [3k] running mktexlsr ... done running mktexlsr. tlmgr.pl: package log updated: C:/Users/kq001/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log tlmgr.pl: command log updated: C:/Users/kq001/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr-commands.log
出现这种才是下载成功的标志,会有下面这种标志,表明安装包安装成功。至此,问题解决
[1/n, ??:??/??:??] install: pdflscape [3k]
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-4-28 15:03
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社