在Travis CI上构建R包时出错""tlmgr update --self"失败

Geg*_*naV 8 latex r tex travis-ci

我在https://travis-ci.org/上构建了一个R包,但出现了错误:

    The command "tlmgr update --self" failed and exited with 25 during .
Run Code Online (Sandbox Code Playgroud)

Travis CI输出的最后几行:

在此输入图像描述

当我devtools::check()在RStudio上的Windows 10上本地调用时,不会出现错误或警告.

我发现tlmgr对LaTeX/TexLive软件包的关注以及In Travis CI文档"构建R项目"中写道,如果需要插件,可能需要安装一些LaTeX/TexLive.(注意:我的包装中还没有晕影.)

.travis.yml文件配置:

language: R
sudo: false
cache: packages
r_github_packages:
  - jimhester/covr
after_success:
  - Rscript -e 'covr::codecov()'
Run Code Online (Sandbox Code Playgroud)

我的问题:问题的原因是什么以及如何解决?

小智 0

看来 tlmgr 无法访问当前存储库,您可以使用以下命令将存储库回滚到存档版本:

\n\n
tlmgr option repository ftp://tug.org/historic/systems/texlive/2015/tlnet-final\n
Run Code Online (Sandbox Code Playgroud)\n\n

这给了

\n\n
tlmgr: setting default package repository to ftp://tug.org/historic/systems/texlive/2015/tlnet-final\n
Run Code Online (Sandbox Code Playgroud)\n\n

来源:tlmgr 的一个小技巧:未知指令 \xe2\x80\xa6containerchecksum 错误

\n