无法在Ubuntu 14.04上安装Meteor

时间:2015-05-10 17:07:07

标签: ubuntu curl meteor

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

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

        // create a new blank file
        XmlTextWriter textWriter = new XmlTextWriter(pathToXml, null);
        textWriter.WriteStartDocument();            
        textWriter.Close();

        // write data to the xml document
        XmlDocument document = new XmlDocument();
        document.Load(pathToXml);

        XmlNode element = document.CreateElement("region");
        document.DocumentElement.AppendChild(element);

        // read value from the table cell
        // I supporse this part of code should be inside the loop
        XmlNode subElement = document.CreateElement("value"); 
        subElement.InnerText = ""; // here I need to put value from the table
        element.AppendChild(subElement); 

        document.Save(pathToXml);

我收到以下消息:

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

我已经确保已安装curl并运行 % 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 sudo update-ca-certificatessudo apt-get update,所有这些都有助于之前的海报。我也试过了sudo apt-get upgrade,它给了我:

wget https://install.meteor.com/

知道这里发生了什么吗?

1 个答案:

答案 0 :(得分:13)

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

进行安装
curl --insecure https://install.meteor.com/ | sh

您也不需要以root用户身份安装meteor。如果您想以普通用户身份使用它,只需安装即可。当meteor将入门脚本安装到sudo

时,您将自动获得/usr/local/bin/meteor的提示 祝你好运 汤姆

编辑:如果这不起作用:

# 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