简体   繁体   中英

Cant install ruby-switch for ruby on rails

I am trying to install ruby on rails on Ubuntu via bright box. I've installed:

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

But when I try to install this:

sudo apt-get install ruby-switch

I get this error:

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

What is the problem, and how to solve it?

It doesn't look like ruby-switch is available anymore. That's what apt-get is informing you of.

If you're looking for a way to manage the versions of Ruby, then there is rbenv or RVM available instead. These two approaches are more standard and widely accepted as good ways to switch between Ruby version - but pick only one .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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