Public bug reported:

This is similar to bug 874343, but I was able to fix that one on my own
(it was fixed by removing some ruby 1.9.2 packages). The story is that I
just upgrade to 11.10, but ran in to a problem during the upgrade: a
bunch of ruby packages refused to install. I cleaned up and finished the
installation otherwise, and removed the offending packages to get to the
root of the problem. If I try to install the 'ruby' package I now get:


leon@leon-desktop:~$ sudo apt-get install ruby
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ruby1.8
Suggested packages:
  ri ruby-dev ruby1.8-examples ri1.8
The following NEW packages will be installed:
  ruby ruby1.8
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.7 kB of archives.
After this operation, 475 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://mirror.anl.gov/pub/ubuntu/ oneiric/main ruby1.8 amd64 1.8.7.352-2 
[35.7 kB]
Get:2 http://mirror.anl.gov/pub/ubuntu/ oneiric/main ruby all 4.8 [5,054 B]
Fetched 40.7 kB in 0s (299 kB/s) 
Selecting previously deselected package ruby1.8.
(Reading database ... 389516 files and directories currently installed.)
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.352-2_amd64.deb) ...
Selecting previously deselected package ruby.
Unpacking ruby (from .../apt/archives/ruby_4.8_all.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Setting up ruby1.8 (1.8.7.352-2) ...
update-alternatives: error: alternative ri can't be slave of ruby: it is a 
master alternative.
dpkg: error processing ruby1.8 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of ruby:
 ruby depends on ruby1.8 (>> 1.8.7.334-1); however:
  Package ruby1.8 is not configured yet.
dpkg: error processing ruby (--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:
 ruby1.8
 ruby
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any advice?

** Affects: ri (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/876097

Title:
  update-alternatives: error: alternative ri can't be slave of ruby: it
  is a master alternative.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ri/+bug/876097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to