2013-11-14 47 views
0

我最近部署了应用程序组合应用程序。现在,我想通过不同的机器(linux mint 14)更新我的应用程序。因此,要更新我的应用程序,绝对需要在我的机器上安装heroku toolbelt,后者我可以继续使用剩余的东西。对?。 但是,这里我的问题是“我无法在我的机器上安装heroku工具栏”。无法在linux mint 14上安装heroku-toolbelt?

在安装过程中它显示了以下错误

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 
    This script requires superuser access to install apt packages. 
    You will be prompted for your password by sudo. 
    --2013-11-14 16:23:38-- https://toolbelt.heroku.com/apt/release.key 
    Resolving toolbelt.heroku.com (toolbelt.heroku.com)... 174.129.17.173, 23.21.198.2, 54.243.76.97 
    Connecting to toolbelt.heroku.com (toolbelt.heroku.com)|174.129.17.173|:443... connected. 
    HTTP request sent, awaiting response... 200 OK 
    Length: 1737 (1.7K) [application/octet-stream] 
    Saving to: `STDOUT' 

    100%[=======================================>] 1,737  --.-K/s in 0s  

    2013-11-14 16:23:39 (22.2 MB/s) - written to stdout [1737/1737] 

    OK 
    Ign http://dl.google.com stable InRelease 
    Hit http://dl.google.com stable Release.gpg          
    Ign http://archive.ubuntu.com quantal InRelease         
    Ign http://ppa.launchpad.net quantal InRelease         
    Ign http://packages.linuxmint.com nadia InRelease        
    Hit http://dl.google.com stable Release           
    Ign http://security.ubuntu.com quantal-security InRelease      
    Ign http://archive.canonical.com quantal InRelease        
    Ign http://archive.ubuntu.com quantal-updates InRelease       
    Hit http://ppa.launchpad.net quantal Release.gpg         
    Hit http://dl.google.com stable/main i386 Packages        
    Get:1 http://packages.medibuntu.org quantal InRelease       
    Get:2 http://security.ubuntu.com quantal-security Release.gpg [933 B]   
    Get:3 http://packages.linuxmint.com nadia Release.gpg [198 B]     
    Hit http://archive.canonical.com quantal Release.gpg        
    Hit http://archive.ubuntu.com quantal Release.gpg        
    Hit http://ppa.launchpad.net quantal Release          
    Ign http://toolbelt.heroku.com ./ InRelease          
    Get:4 http://security.ubuntu.com quantal-security Release [49.6 kB]    
    Hit http://archive.canonical.com quantal Release         
    Get:5 http://packages.linuxmint.com nadia Release [18.6 kB]      
    Get:6 http://archive.ubuntu.com quantal-updates Release.gpg [933 B]    
    Get:7 http://packages.medibuntu.org quantal Release.gpg       
    Hit http://ppa.launchpad.net quantal/main Sources        
    Hit http://archive.canonical.com quantal/partner i386 Packages     
    Get:8 http://toolbelt.heroku.com ./ Release.gpg [490 B]       
    Hit http://archive.ubuntu.com quantal Release         
    Hit http://ppa.launchpad.net quantal/main i386 Packages       
    Get:9 http://packages.medibuntu.org quantal Release        
    Ign http://packages.medibuntu.org quantal Release        
    E: GPG error: http://packages.medibuntu.org quantal Release: The following signatures were invalid: NODATA 1 NODATA 2 
    Reading package lists... Done 
    Building dependency tree  
    Reading state information... Done 
    E: Unable to locate package heroku-toolbelt 

所以,这 后,我按照谷歌搜索,堆栈溢出搜索来解决疑难问题。我试图通过一些其他安装它它是通过堆栈溢出确定,但它仍然没有解决我的问题,它显示了libnss3依赖误差

libnss3-1d : Depends: libnss3 (= 3.13.1.with.ckbi.1.88-1ubuntu7) but 3.14.3-0ubuntu0.12.10.1 is installed 
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. 
E: Unable to correct dependencies 

过程中,我已经取代了这个libnss3.13.1.with.ckbi.1.88-1ubuntu7以L ibnss3.14.3-0ubuntu0.12.10.1为了支持Google Chrome浏览器。 但Heroku不支持它。如果我将安装以前版本化的libnss3,那么我应该删除google-chrome.I需要google chrome,因为它提供了用于调试和分析应用程序的最佳开发人员工具支持。

请帮我解决这个安装heroku-toolbelt问题。

谢谢。

回答

0

尝试

wget -qO- https://toolbelt.heroku.com/install.sh | sh 

,然后使用添加Heroku的CLI到PATH:

echo 'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.profile 
+0

谢谢。我试过了,但出现如下错误,如“此脚本需要超级用户访问才能安装软件” sudo会提示您输入密码 sh:7:[[:not found sh:31:[[:not发现 安装完成“的第一个命令。然后我执行第二个。为了测试heroku,我只是在命令行上使用了heroku,然后返回“/ usr/bin/env:ruby:没有这样的文件或目录”。现在,我该怎么办....谢谢 – suneetha

+0

我已经这样做了,它仍然给我同样的错误。路径不正确?运行安装命令时,您处于哪个目录中? – ahnbizcad

0

我认为错误 “的/ usr/bin中/ ENV:红宝石:没有这样的文件或目录”意味着你需要安装Ruby。