ubuntu - 在 Ubuntu 14.04 上安装 Meteor 时遇到问题

标签 ubuntu curl meteor

我在 Ubuntu 14.04 上安装 Meteor 时遇到问题。我搜索了以前的答案,但没有人遇到与我相同的问题。

当我运行 meteor 网站上给出的命令时:

sudo curl https://install.meteor.com/ | sh

我收到以下消息:

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6121    0  6121    0     0   6571      0 --:--:-- --:--:-- --:--:--  6567
Downloading Meteor distribution

curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Installation failed.enter code here

我已经确保安装并运行了 curl sudo update-ca-certificates , sudo apt-get update , 和 sudo apt-get upgrade ,所有这些都帮助了以前的海报。我也试过wget https://install.meteor.com/ ,这给了我:

--2015-05-10 10:05:11--  https://install.meteor.com/
Resolving install.meteor.com (install.meteor.com)... 54.243.218.35, 54.83.1.203, 107.21.116.12, ...
Connecting to install.meteor.com (install.meteor.com)|54.243.218.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘index.html.1’

    [ <=>                                   ] 6,121       --.-K/s   in 0s      

2015-05-10 10:05:13 (153 MB/s) - ‘index.html.1’ saved [6121]

知道这里发生了什么吗?

最佳答案

您可以尝试使用--insecure 选项安装

curl --insecure https://install.meteor.com/ | sh

您也不需要以 root 身份安装 meteor。如果您想以普通用户身份使用它,只需安装即可。当 meteor 将启动脚本安装到 /usr/local/bin/meteor

时,您将自动得到 sudo 的提示

祝你好运 汤姆

编辑:如果这也不起作用:

# check your environment
echo $(test -d /etc/pki/tls/certs)$?

如果结果是“1”,则表示您的系统缺少该结果。尝试解决:

# create missing directory
sudo mkdir -p /etc/pki/tls/certs

# link ca-certificates 
sudo ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt

之后按照文档尝试安装 meteor

# install
curl https://install.meteor.com/ | sh

关于ubuntu - 在 Ubuntu 14.04 上安装 Meteor 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30154208/

相关文章:

php - 我已将 php 版本 7.2 升级到 7.4,现在在 phpmyadmin 面板中出现错误。我附上截图

linux - 在 ubuntu 64 位上编译 32 位程序(libjvm.so 问题)

python - 如何使用 python 取消缩短 URL?

javascript - restivus.d.ts 的 TypeScript 定义

javascript - 使用 BlazeJS 访问文档

javascript - Meteor - 从客户端取消服务器方法

linux - 将带有类库的 .Net Core MVC 应用程序部署到 Ubuntu 16.04 :

php - 这个错误是怎么回事? nginx

json - 尝试使用 curl 创建 repo 时,Github 返回 "Problems parsing JSON"

PHP CURL 和 ssl 认证基础