LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2016, 02:50 PM   #1
laredotornado
Member
 
Registered: Apr 2011
Posts: 71

Rep: Reputation: 0
How do I uninstall an older verison of Ruby from my Ubuntu machine?


Hi,

I’m trying to uninstall an old version of Ruby from my Ubuntu Linux system. Here is my uname -a info …

Code:
myuser@mymachine:~$ uname -a
Linux mymachine 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
So I tried “sudo apt-get purge ruby”. That seemed to remove everything ok, but when I check my /usr/lib/ruby directory, it was still there …

Code:
myuser@mymachine:~$ ls /usr/lib/ruby
1.9.1  2.3.0  gems  vendor_ruby
Here is the output of the above command …

Code:
myuser@mymachine:~$ sudo apt-get purge ruby
[sudo] password for myuser: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgoogle-perftools-dev libgoogle-perftools4 libruby1.9.1
  libtcmalloc-minimal4 libunwind8 libunwind8-dev ruby1.9.1 ruby1.9.1-dev
Suggested packages:
  ruby1.9.1-examples ri1.9.1 graphviz ruby-switch
The following packages will be REMOVED:
  ruby*
The following NEW packages will be installed:
  libgoogle-perftools-dev libgoogle-perftools4 libtcmalloc-minimal4 libunwind8
  libunwind8-dev
The following packages will be upgraded:
  libruby1.9.1 ruby1.9.1 ruby1.9.1-dev
3 upgraded, 5 newly installed, 1 to remove and 120 not upgraded.
Need to get 5,392 kB of archives.
After this operation, 8,053 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/ trusty/main ruby1.9.1-dev amd64 1:1.9.3.551-2bbox1~trusty1 [1,075 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libtcmalloc-minimal4 amd64 2.1-2ubuntu1.1 [103 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu/ trusty/main libunwind8 amd64 1.1-2.2ubuntu3 [48.3 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libgoogle-perftools4 amd64 2.1-2ubuntu1.1 [184 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu/ trusty/main libunwind8-dev amd64 1.1-2.2ubuntu3 [375 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libgoogle-perftools-dev amd64 2.1-2ubuntu1.1 [407 kB]
Get:7 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/ trusty/main ruby1.9.1 amd64 1:1.9.3.551-2bbox1~trusty1 [236 kB]
Get:8 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/ trusty/main libruby1.9.1 amd64 1:1.9.3.551-2bbox1~trusty1 [2,962 kB]
Fetched 5,392 kB in 2s (2,113 kB/s)       
Selecting previously unselected package libtcmalloc-minimal4.
(Reading database ... 98051 files and directories currently installed.)
Preparing to unpack .../libtcmalloc-minimal4_2.1-2ubuntu1.1_amd64.deb ...
Unpacking libtcmalloc-minimal4 (2.1-2ubuntu1.1) ...
Selecting previously unselected package libunwind8.
Preparing to unpack .../libunwind8_1.1-2.2ubuntu3_amd64.deb ...
Unpacking libunwind8 (1.1-2.2ubuntu3) ...
Selecting previously unselected package libgoogle-perftools4.
Preparing to unpack .../libgoogle-perftools4_2.1-2ubuntu1.1_amd64.deb ...
Unpacking libgoogle-perftools4 (2.1-2ubuntu1.1) ...
Selecting previously unselected package libunwind8-dev.
Preparing to unpack .../libunwind8-dev_1.1-2.2ubuntu3_amd64.deb ...
Unpacking libunwind8-dev (1.1-2.2ubuntu3) ...
Selecting previously unselected package libgoogle-perftools-dev.
Preparing to unpack .../libgoogle-perftools-dev_2.1-2ubuntu1.1_amd64.deb ...
Unpacking libgoogle-perftools-dev (2.1-2ubuntu1.1) ...
Preparing to unpack .../ruby1.9.1-dev_1%3a1.9.3.551-2bbox1~trusty1_amd64.deb ...
Unpacking ruby1.9.1-dev (1:1.9.3.551-2bbox1~trusty1) over (1.9.3.484-2ubuntu1.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
dpkg: ruby: dependency problems, but removing anyway as you requested:
 ruby1.9.1 depends on ruby (>= 1:1.9.3.1).

(Reading database ... 98225 files and directories currently installed.)
Removing ruby (1:1.9.3.4) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
(Reading database ... 98206 files and directories currently installed.)
Preparing to unpack .../ruby1.9.1_1%3a1.9.3.551-2bbox1~trusty1_amd64.deb ...
Unpacking ruby1.9.1 (1:1.9.3.551-2bbox1~trusty1) over (1.9.3.484-2ubuntu1.2) ...
Preparing to unpack .../libruby1.9.1_1%3a1.9.3.551-2bbox1~trusty1_amd64.deb ...
Unpacking libruby1.9.1 (1:1.9.3.551-2bbox1~trusty1) over (1.9.3.484-2ubuntu1.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libtcmalloc-minimal4 (2.1-2ubuntu1.1) ...
Setting up libunwind8 (1.1-2.2ubuntu3) ...
Setting up libgoogle-perftools4 (2.1-2ubuntu1.1) ...
Setting up libunwind8-dev (1.1-2.2ubuntu3) ...
Setting up libgoogle-perftools-dev (2.1-2ubuntu1.1) ...
Setting up libruby1.9.1 (1:1.9.3.551-2bbox1~trusty1) ...
Setting up ruby1.9.1-dev (1:1.9.3.551-2bbox1~trusty1) ...
Setting up ruby1.9.1 (1:1.9.3.551-2bbox1~trusty1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/gem2.3 because link group gem is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/ruby2.3 because link group ruby is broken
update-alternatives: warning: skip creation of /usr/share/man/man1/rake.1.gz because associated file /usr/share/man/man1/rake2.3.1.gz (of link group ruby) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/testrb because associated file /usr/bin/testrb2.3 (of link group ruby) doesn't exist
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
What is the right way to uninstall ruby?
 
Old 10-20-2016, 03:32 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I haz toaster.
 
Old 10-20-2016, 03:57 PM   #3
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Good question!

The supported version of Ruby for Ubuntu 14.04 trusty is Ruby 1.9

I can see from your terminal output that you have tried to install an unsupported version from the Brightbox PPA, and this is creating dependency issues.

A couple of suggestions in no particular order:

1. Contact Brightbox for tech support with their 3rd party PPA

or

2. Remove the Brightbox PPA from your software sources, to revert to the Ubuntu-supported Ruby version.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to match older machine to an older version of Linux fredb47 Linux - Distributions 10 10-27-2011 11:08 AM
Which kernel for older machine multios Slackware 4 12-18-2007 05:53 PM
how to uninstall the older versions of GLIB? gobi_dgm Linux - Software 8 06-05-2005 08:39 AM
How to uninstall Glib older versions bigb0ss Linux - Software 0 10-24-2004 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration