StatisticianLH的个人博客分享 http://blog.sciencenet.cn/u/leonardo 医学统计垃圾一枚,希望各位指出我的错误

博文

tinytex::tlmgr_install()不报错,但是安装包不成功;更换镜像

已有 885 次阅读 2025-3-21 17:15 |个人分类:R markdown|系统分类:科研笔记

> 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

iShot_2025-03-21_16.47.41.png

出现这种才是下载成功的标志,会有下面这种标志,表明安装包安装成功。至此,问题解决

[1/n, ??:??/??:??] install: pdflscape [3k]



https://wap.sciencenet.cn/blog-3587875-1478686.html

上一篇:Rmarkdown使用Tinytex报错! LaTeX Error: File ‘xxxx.sty’ not found
下一篇:Rmarkdown使用Ctex knit报! Dimension too large.错误
收藏 IP: 202.202.232.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2025-4-28 15:03

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部