E:无法找到包heroku-toolbelt [英] E: Unable to locate package heroku-toolbelt

查看:249
本文介绍了E:无法找到包heroku-toolbelt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Linux Mint 15 Olivia(x86-64)上安装 Heroku Toolbelt



我尝试运行标准命令在Debian机器上进行安装:


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

我得到:


W :未能获取 http://toolbelt.heroku.com/ubuntu/./Packages 302暂时移动[IP:23.21.198.2 80]



...



无法找到包裹heroku-toolbelt


我还在我的 heroku.list 回购 etc / apt / sources /

lockquote
deb

当我尝试再次添加回购时:

lockquote
sudo apt-add-repository'deb
http://toolbelt.herokuapp.com/ubuntu ./'


我得到:


无法添加PPA:'No JSON object coul d被解码'。

看起来我不是第一个在Mint 15上尝试添加存储库时出现此错误的人。

解决方案

我怀疑这个问题可能确实是暂时的,但如果您现在需要安装heroku工具栏,则可以安装独立客户端而不是Ubuntu / Debian软件包。

  wget -qO- https://toolbelt.heroku.com/install.sh |然而,在一个基于Ubuntu的发行版中,上面可能会引发一些错误:

  sh:7:[[:未找到
sh:29:[[:未找到
安装完成$这是因为在Ubuntu系统/ bin / sh是破折号,而不是bash 。你可以得到脚本并修改它来使用bash而不是sh(在脚本中调用sh,只是在上面的命令中将sh改为bash是不够的),或者,你可以忽略这些错误,错误的脚本指示您执行以下操作:



使用以下命令将Heroku CLI添加到PATH中:

  echo'PATH =/ usr / local / heroku / bin:$ PATH'>> 〜/ .profile 

您需要再次注销/登录才能注册路径添加,或者只是同时直接执行heroku:

  / usr / local / heroku / bin / heroku 


I am trying to install the Heroku Toolbelt on Linux Mint 15 Olivia (x86-64)

When i try to run the standard command for installing on Debian machines:

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

I get:

W: Failed to fetch http://toolbelt.heroku.com/ubuntu/./Packages 302 Moved Temporarily [IP: 23.21.198.2 80]

...

E: Unable to locate package heroku-toolbelt

I have also got the heroku.list repo in my etc/apt/sources/:

deb http://toolbelt.heroku.com/ubuntu ./

When i try to add the repo again with:

sudo apt-add-repository 'deb http://toolbelt.herokuapp.com/ubuntu ./'

I get:

Cannot add PPA: 'No JSON object could be decoded'.

And it seems i'm not the first person with this error on Mint 15 while trying to add repositories.

解决方案

I suspect this issue may indeed be temporary, but if you need the heroku toolbelt installed now, you can install the standalone client instead of the ubuntu/debian bundle.

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

On an Ubuntu-based distro, however, the above will likely throw some errors:

sh: 7: [[: not found
sh: 29: [[: not found
Installation complete

This is because on Ubuntu systems /bin/sh is dash, not bash. You could either get the script and modify it to use bash instead of sh (sh is called within the script, just changing sh to bash in the command above won't suffice), or, you could ignore the errors and just do what the error-ing portion of the script instructs you to do:

Add the Heroku CLI to your PATH using:

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

You'll need to logout/login again to register the path addition, or just execute heroku directly in the mean time:

/usr/local/heroku/bin/heroku

这篇关于E:无法找到包heroku-toolbelt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆