在 ubuntu 14.04 上安装 heroku 时出现 dpkg 错误

在 ubuntu 14.04 上安装 heroku 时出现 dpkg 错误

我正在尝试在 mu ubuntu 14.04 上安装 heroku toolbelt

我尝试了很多方法,包括这里的答案。方法是运行以下命令

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

但我仍然收到以下错误:

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing package heroku (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of heroku-toolbelt:
 heroku-toolbelt depends on heroku (= 3.99.4); however:
  Package heroku is not configured yet.

dpkg: error processing package heroku-toolbelt (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 heroku
 heroku-toolbelt
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

您误读了他们网页上的说明 - 该wget...命令适用于 Ubuntu 12 及以下版本。

对于您的系统 Ubuntu 14.04 请使用指定的其他命令:

sudo snap install heroku

相关内容