我无法在我的 ubuntu 14.04 机器上安装 Heroku CLI。我已经尝试过以下方法 -
- 安装 snapd,然后“sudo snap install heroku”只会收到错误 - “错误:无法安装“heroku”:找不到 snap”。
- 我什至尝试过“wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh”,正如一些人推荐的替代方案。
两种方法都失败了。非常感谢任何帮助!
最佳答案
我解决了以下问题 this discussion thread
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku
我不确定为什么 Heroku 安装指南文档页面没有指定这一点。
关于ubuntu - 在 ubuntu 14.04 LTS 上安装 Heroku CLI 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44997933/