Public bug reported:

I expected that installing the "ruby2.0" package explicitly, I would get
ruby 2.0 as my default version. However, due to the dependency tree of
the ruby2.0 package, version 1.9.3-p484 is the default version instead.

ubuntu@ruby20:~$ apt-cache depends ruby2.0
ruby2.0
  ...
  Depends: ruby

ubuntu@ruby20:~$ apt-cache depends ruby
ruby
  Depends: ruby1.9.1

ubuntu@ruby20:~$ sudo apt-get install ruby2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ca-certificates libjs-jquery libruby1.9.1 libruby2.0 libyaml-0-2 openssl ruby 
ruby1.9.1 rubygems-integration
Suggested packages:
  javascript-common ri ruby-dev ruby1.9.1-examples ri1.9.1 graphviz 
ruby1.9.1-dev ruby-switch bundler
The following NEW packages will be installed:
  ca-certificates libjs-jquery libruby1.9.1 libruby2.0 libyaml-0-2 openssl ruby 
ruby1.9.1 ruby2.0 rubygems-integration
0 upgraded, 10 newly installed, 0 to remove and 104 not upgraded.
Need to get 0 B/6,377 kB of archives.
After this operation, 28.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
....snip

ubuntu@ruby20:~$ which ruby
/usr/bin/ruby
ubuntu@ruby20:~$ ls -l /usr/bin/ruby
lrwxrwxrwx 1 root root 9 Feb 14 21:22 /usr/bin/ruby -> ruby1.9.1
ubuntu@ruby20:~$ ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

** Affects: ruby2.0 (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/1310292

Title:
  installing `ruby2.0` results in ruby 1.9.3-p484 as default version

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby2.0/+bug/1310292/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to