简体   繁体   English

安装 Heroku Toolbelt Ubuntu 未满足的依赖项

[英]Installing Heroku Toolbelt Ubuntu unmet dependencies

I am trying to install heroku toolbelt for Ubuntu using the following command我正在尝试使用以下命令为 Ubuntu 安装 heroku 工具带

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

I get the following error我收到以下错误

The following packages have unmet dependencies:
 heroku-toolbelt : Depends: heroku (= 3.99.4) but 6.11.7-1 is to be installed
E: Unable to correct problems, you have held broken packages.

I previously had heroku installed but the version was deprecated and the error presits after using the gem update heroku command any ideas我以前安装了 heroku,但该版本已被弃用,并且在使用gem update heroku命令任何想法后出现错误

That is not the right script.那不是正确的脚本。 Use wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh使用wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh

There is a better way to install the latest version of Heroku on all currently supported versions of Ubuntu by installing the Heroku snap package.通过安装 Heroku snap 包,有一种更好的方法可以在所有当前支持的 Ubuntu 版本上安装最新版本的 Heroku。 Snap packages are standalone packages, so you won't get any unmet dependencies errors when installing the Heroku snap package. Snap 包是独立的包,因此在安装 Heroku snap 包时不会出现任何未满足的依赖项错误。 Open the terminal and type:打开终端并输入:

sudo snap install --classic heroku  

This is the recommended way of installing Heroku CLI in Ubuntu at the Heroku Dev Center website.这是在Heroku Dev Center网站上在 Ubuntu 中安装 Heroku CLI 的推荐方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM