首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“`apt”之后的UNABLE_TO_VERIFY_LEAF_SIGNATURE

“`apt”之后的UNABLE_TO_VERIFY_LEAF_SIGNATURE
EN

Ask Ubuntu用户
提问于 2021-05-17 16:26:07
回答 1查看 2.1K关注 0票数 0

实际上,我正在尝试安装gTile,这需要Bazelisk。

在相对清洁的系统上:

代码语言:javascript
复制
$ sudo apt install npm
# takes almost 5 minutes, then:
$ npm install -g @bazel/bazelisk
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/@bazel%2fbazelisk failed, reason: unable to verify the first certificate

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/celiyah/.npm/_logs/2021-05-17T16_21_40_542Z-debug.log

基于这就是答案,我还尝试了:

代码语言:javascript
复制
$ npm install ssl-root-cas
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/ssl-root-cas failed, reason: unable to verify the first certificate

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/celiyah/.npm/_logs/2021-05-17T16_23_34_826Z-debug.log

看起来Ubuntu上的npm安装失败了吗?

代码语言:javascript
复制
$ npm --version
6.14.8

是否有人遇到过此错误,以及如何修复它(而不禁用安全性)?

在这一点上,请不要提及关闭SSL。这是一台安全的机器,我想保持它的安全。:-)

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-05-18 16:46:34

该错误在重新启动后消失;在您sudo apt install npm之后,重新启动计算机。

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

https://askubuntu.com/questions/1338922

复制
相关文章

相似问题

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