Public bug reported:
I found this thread, but this did not fix my problem:
http://ubuntuforums.org/showthread.php?t=1366485
redtux@hal:~$ gem -v
1.8.23
redtux@hal:~$ sudo update-alternatives --display ruby
ruby - auto mode
link currently points to /usr/bin/ruby1.9.2
/usr/bin/ruby1.9.2 - priority 400
slave erb: /usr/bin/erb1.9.2
slave erb.1.gz: /usr/share/man/man1/erb1.9.2.1.gz
slave rake: /usr/bin/rake1.9.2
slave rake.1.gz: /usr/share/man/man1/rake1.9.2.1.gz
slave ruby.1.gz: /usr/share/man/man1/ruby1.9.2.1.gz
slave testrb: /usr/bin/testrb1.9.2
slave testrb.1.gz: /usr/share/man/man1/testrb1.9.2.1.gz
Current 'best' version is '/usr/bin/ruby1.9.2'.
redtux@hal:~$ sudo dpkg -i
/var/cache/apt/archives/ruby1.9.1_1.9.3.194-1ubuntu1.2_amd64.deb
(Reading database ... 542718 files and directories currently installed.)
Preparing to replace ruby1.9.1 1.9.3.194-1ubuntu1.2 (using
.../ruby1.9.1_1.9.3.194-1ubuntu1.2_amd64.deb) ...
Unpacking replacement ruby1.9.1 ...
Setting up ruby1.9.1 (1.9.3.194-1ubuntu1.2) ...
update-alternatives: error: alternative irb can't be slave of ruby: it is a
master alternative
dpkg: error processing ruby1.9.1 (--install):
subprocess installed post-installation script returned error exit status 2
Processing triggers for man-db ...
Processing triggers for menu ...
In file "/usr/share/menu/ubucompilator", at (or in the definition that ends at)
line 4:
?package(ubucompilator):needs="X11" section "Applications/Programming"
title="Ubucompilator" command="/usr/bin/ubucompilator.gambas"
icon="/usr/share/pixmaps/ubucompilator.png"
^
Expected: "="
Skipping file because of errors...
Errors were encountered while processing:
ruby1.9.1
Apart from this, I do not understand the versioning. As you can see, I
have already installed ruby1.9.2.1. Probably changing the dependencies
in debian/control would fix the issue? Why does the "ruby" package
require an older package? And why is there a reference to ruby1.8 in the
package description?
redtux@hal:~$ aptitude show ruby
Package: ruby
State: unpacked
Automatically installed: yes
Version: 4.9
Priority: optional
Section: interpreters
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Uncompressed Size: 31.7 k
Depends: ruby1.9.1 (>= 1.9.3.194-1)
Suggests: ri, ruby-dev
Conflicts: irb, irb, rdoc, rdoc
Replaces: irb, irb, rdoc, rdoc
Provides: irb, rdoc
Provided by: ruby1.8
Description: Interpreter of object-oriented scripting language Ruby (default
version)
Ruby is the interpreted scripting language for quick and easy object-oriented
programming. It has many features to process text files and to do system
management tasks (as in
perl). It is simple, straight-forward, and extensible.
This package is a dependency package, which depends on Debian's default Ruby
version (currently v1.9.3).
Homepage: http://www.ruby-lang.org/
ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: ruby1.9.1 1.9.3.194-1ubuntu1.2
ProcVersionSignature: Ubuntu 3.5.0-21.32-generic 3.5.7.1
Uname: Linux 3.5.0-21-generic x86_64
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Wed Jan 16 11:37:46 2013
ErrorMessage: Unterprozess installiertes post-installation-Skript gab den
Fehlerwert 2 zurück
InstallationDate: Installed on 2012-01-15 (366 days ago)
InstallationMedia: Linux Mint 12 "Lisa" - Release amd64 (20111120)
MarkForUpload: True
SourcePackage: ruby1.9.1
Title: package ruby1.9.1 1.9.3.194-1ubuntu1.2 failed to install/upgrade:
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 2 zurück
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: ruby1.9.1 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-package quantal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1100231
Title:
package ruby1.9.1 1.9.3.194-1ubuntu1.2 failed to install/upgrade:
subprocess installed post-installation script returned error exit
status 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby1.9.1/+bug/1100231/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs