Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-09-2013, 06:15 PM   #1
Registered: Mar 2011
Location: Southern California
Distribution: Fedora 14
Posts: 59

Rep: Reputation: 1
problems with ruby on ubuntu linux [rubygems also]

hello everyone,

While the other day i decided to try and upgrade from ruby1.8 to ruby1.9 and i installed rvm and used rvm to upgrade to ruby1.9

now when i do ruby --version i get this

ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]

and i thought everything was going fine but now I am getting some error messages and I am not really sure what I can do to fix the problem.

After this operation, 0B of additional disk space will be used.
Setting up rubygems1.8 (1.3.7-1ubxd2) ...
update-alternatives: error: alternative gem can't be master: it is a slave of ruby
dpkg: error processing rubygems1.8 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of rubygems:
 rubygems depends on rubygems1.8 (= 1.3.7-1ubxd2); however:
  Package rubygems1.8 is not configured yet.
dpkg: error processing rubygems (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Now i am not sure what I can do to fix this problem...?

What do you guys recommend?

I am on ubuntu lucid and I was thinking maybe i should just go back down to ruby1.8 but if that is the best solution I am not sure how to do that.

Any input on this would be greatly appreciated as I am really stuck on this one. I search hours on google and there is not too much on this subject.

I thank you all for your time and your assistance.

Oh, if you guys think i should maybe completely remove ruby and ruby gems and re install everything, how would i go about doing that? I think this may be a viable option.


Last edited by BlackHawk; 01-09-2013 at 06:18 PM.
Old 01-16-2013, 12:41 AM   #2
LQ Guru
Registered: Dec 2011
Distribution: Slackware
Posts: 7,951
Blog Entries: 12

Rep: Reputation: Disabled

The problem might be that you are missing libc6.
One problem I see is:
dependency problems prevent configuration of rubygems:
The other problem I think is:
Package rubygems1.8 is not configured yet.
Dependencies- a program or a library that another program needs to run.
rubygems isn't working because it is not configured-
The problem might be that you are missing libc6.

Fixing dependencies
dpkg --configure --pending
If dpkg quits with an error while apt-get install, upgrade, or dist-upgrading try running this to configure the packages that were already unpacked. Then try apt-get - f install, upgrade, or dist-upgrade -f, and then try apt-get install, upgrade, or dist-upgrade again. Repeat as needed. This usually resolves most dependency problems (also, if it mentions a specific package for some reason, you might want to try installing or removing that package)

This page is helpful too:

Here's a article at Ubuntu that might help.

To remove ruby you should be able to use the Ubuntu Software Center Manager for remove/install-

Hope this helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems with RubyGems not resolving dependencies under Debian snow-templar Linux - Software 1 02-05-2010 08:54 AM
LXer: How to install Ruby and RubyGems LXer Syndicated Linux News 0 08-13-2009 05:21 PM
[SOLVED] Slackware, ruby, rubygems and rubygames. Linux.tar.gz Linux - Software 5 09-17-2008 05:33 PM
error when emerging rubygems *CLI> Linux - Server 2 03-25-2008 04:16 PM
LXer: RubyGems LXer Syndicated Linux News 0 05-28-2006 06:03 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration