[Bug 876097] Re: update-alternatives: error: alternative ri can't be slave of ruby: it is a master alternative.
My error was similar. After installing or updating any package, among others, this error was included. Setting up ruby1.8 (1.8.7.352-2ubuntu1.1) ... update-alternatives: error: alternative rdoc can't be slave of ruby: it is a master alternative. dpkg: error processing ruby1.8 (--configure): sudo update-alternatives --remove rdoc /usr/bin/rdoc sudo update-alternatives --remove rdoc /usr/bin/rdoc1.8 sudo update-alternatives --remove rdoc /usr/bin/rdoc1.9.2 solved this problem. I used all three commands because all three directories existed. No errors to report during `apt-get update` and `apt-get upgrade` or installing or upgrading any package. Thanks a bunch Leon Maurer! I just realized the last post was a year ago today. uname -a says Linux bt 3.2.6 #1 SMP Fri Feb 17 10:34:20 EST 2012 x86_64 x86_64 x86_64 GNU/Linux (Backtrack5R1 upgraded to ubuntu 12.04 (Precise)) Feel free to email me if more information about my installation would be useful. -- 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
[Bug 876097] Re: update-alternatives: error: alternative ri can't be slave of ruby: it is a master alternative.
Thnx to Leon Maurer ```sudo update-alternatives --remove ri /usr/bin/ri1.8``` sloved my problem too. -- 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
[Bug 876097] Re: update-alternatives: error: alternative ri can't be slave of ruby: it is a master alternative.
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ri (Ubuntu) Status: New = Confirmed -- 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
[Bug 876097] Re: update-alternatives: error: alternative ri can't be slave of ruby: it is a master alternative.
Looks like the solution was running sudo update-alternatives --remove ri /usr/bin/ri1.8 Before that, if I listed the alternatives for ri I'd see: leon@leon-desktop:~$ sudo update-alternatives --list ri update-alternatives: warning: alternative /usr/bin/ri1.8 (part of link group ri) doesn't exist. Removing from list of alternatives. I could run that multiple times, and each time it'd say that it was removing /usr/bin/ri1.8 from the list of alternatives, but it didn't remove it until I told it to with the first command. I'm not sure why all this was necessary. I don't think my installation was special, but maybe it was. -- 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