首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在基于Ubuntu的Docker镜像上安装TinyTex :无法验证‘s hui.org的证书

在基于Ubuntu的Docker镜像上安装TinyTex :无法验证‘s hui.org的证书
EN

Stack Overflow用户
提问于 2020-11-23 19:15:13
回答 1查看 143关注 0票数 1

我正在尝试建立一个Docker镜像,基于ubuntu:20.04,支持R和bookdown。但是我用tinytex::install_tinytex()得到了ERROR: cannot verify yihui.org's certificate [...]

代码语言:javascript
复制
> tinytex::install_tinytex()
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz'
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz'
--2020-11-23 09:19:05--  https://yihui.org/tinytex/TinyTeX-1.tar.gz
Resolving yihui.org (yihui.org)... 167.99.129.42, 134.209.226.211
Connecting to yihui.org (yihui.org)|167.99.129.42|:443... connected.
ERROR: cannot verify yihui.org's certificate, issued by 'CN=SSL-SG1-GROBU,OU=Operations,O=Cloud Services,C=US':
  Unable to locally verify the issuer's authority.
To connect to yihui.org insecurely, use `--no-check-certificate'.
Error in download.file(url, output, ..., method = method) :
  'wget' call had nonzero exit status
Calls: <Anonymous> ... download_file -> <Anonymous> -> download -> download.file
In addition: Warning messages:
1: In download.file(url, output, ..., method = method) :
  URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz': status was 'SSL peer certificate or SSH remote key was not OK'
2: In download.file(url, output, ..., method = method) :
  URL 'https://yihui.org/tinytex/TinyTeX-1.tar.gz': status was 'SSL peer certificate or SSH remote key was not OK'
You may have to restart your system after installing TinyTeX to make sure ~/bin appears in your PATH variable (https://github.com/yihui/tinytex/issues/16).
Execution halted

我需要找到一种方法来验证和信任来自yihui.org的证书链,因为我不被允许绕过--no-check-certificate的验证。

提前感谢您的任何提示!米海

EN

回答 1

Stack Overflow用户

发布于 2021-05-25 22:15:27

默认docker映像没有安装证书,因此也没有根证书。这就是错误消息Unable to locally verify the issuer's authority所指示的内容。您可以从ca-certificates包(通过apt-get安装)获取根证书。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64967372

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档