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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
