刘辉
tinytex::tlmgr_install()不报错,但是安装包不成功;更换镜像
2025-3-21 17:15
阅读:959

> 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?mobile=1

收藏

分享到:

当前推荐数:0
推荐到博客首页
网友评论0 条评论
确定删除指定的回复吗?
确定删除本博文吗?