Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing a Ruby on Rails Development Environment in Ubuntu

chuyin chuyon
PLUS
chuyin chuyon
Courses Plus Student 743 Points

When trying to install ruby-switch I get the following message: Package ruby-switch is not available (...)

bern@pc:~$ 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 Answer

Seth Reece
Seth Reece
32,867 Points

Hi Chuyin,

Your error is saying it can't find ruby-switch in any of your repositories. According to Brightbox, the repository added in the video is still the right one. If it helps you, I use RVM for ruby version management in Ubuntu. There is a good guide to set up Ruby on Rails this way here.