无法在轨道上安装ruby-switch用于红宝石

时间:2015-06-19 22:19:19

标签: ruby-on-rails ruby

我试图通过明亮的盒子在Ubuntu上的rails上安装ruby。我安装了:

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update

sudo apt-get install ruby ruby-dev

但是当我尝试安装时:

sudo apt-get install ruby-switch

我收到此错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ruby-switch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ruby-switch' has no installation candidate

问题是什么,以及如何解决?

1 个答案:

答案 0 :(得分:1)

它看起来不再像红宝石开关了。这就是apt-get告诉你的。

如果您正在寻找管理Ruby版本的方法,那么可以使用rbenvRVM。这两种方法更标准,被广泛接受为在Ruby版本之间切换的好方法 - 但选择只有一个