Heroku 未在 Raspberry-Pi 上正确安装

Heroku not installing properly on Raspberry-Pi

我正在使用 this Web 开发指南,我需要安装一些 CLI。我正在用 raspi v2 运行 进行编码。当我尝试安装 Heroku CLI 时出现错误:

输入:

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

输出:

+ SUDO=
+ id -u
+ [ 1000 != 0 ]
+ SUDO=sudo
+ echo This script requires superuser access to install apt packages.
This script requires superuser access to install apt packages.
+ echo You will be prompted for your password by sudo.
You will be prompted for your password by sudo.
+ sudo -k
+ sudo sh
+ dpkg -s apt-transport-https
+ echo deb https://cli-assets.heroku.com/branches/stable/apt ./
+ dpkg -s heroku-toolbelt
+ true
+ + apt-key add -
wget -qO- https://cli-assets.heroku.com/apt/release.key
OK
+ apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease      
Hit:3 https://cli-assets.heroku.com/branches/stable/apt ./ InRelease     
Hit:4 https://deb.nodesource.com/node_6.x stretch InRelease
Hit:5 https://packagecloud.io/AtomEditor/atom/any any InRelease
Reading package lists... Done
+ apt-get install -y heroku
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package heroku

我做错了什么? Heroku 与 Raspbian 兼容吗?有解决方法吗?提前致谢。

您的问题:

Is Heroku compatible with Raspbian?

回答:是的。


他们目前正在研究 cross-platform 使用 snap 的 CLI 安装方法。但是人们已经通过 npm 在 arm 上安装了 CLI,但他们并不正式支持它。当 Snap 准备就绪时,对于 arm 用户来说应该是一个很好的解决方案。但是目前,您可以像 Standalone installation

中描述的那样为 linux arm 安装独立的 heroku toolbelt
# Run this from your terminal.
# Replace OS with one of “linux”, “darwin”, “windows”, “freebsd”, “openbsd”
# Replace ARCH with one of “amd64”, “386” or “arm”
wget https://cli-assets.heroku.com/branches/stable/heroku-OS-ARCH.tar.gz
mkdir -p /usr/local/lib /usr/local/bin
tar -xvzf heroku-OS-ARCH.tar.gz -C /usr/local/lib
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
# ensure that /usr/local/bin is in the PATH environment variable