我在安装 Ruby 时犯了一些错误,现在我尝试卸载它 ( How to remove ruby from ubuntu ),但出现以下错误。我尝试使用 sudo apt-get purge ruby
但仍然无法卸载。它显示 ruby 尚未安装,但我检查并确认它安装在位置 /usr/local/bin/ruby
中。请帮我从我的机器上卸载 Ruby 和 RVM。
$ ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
$ sudo apt-get purge ruby 1.8.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libhdf5-mpich2-1.8.7' for regex '1.8.7'
Note, selecting 'libhdf5-1.8.7' for regex '1.8.7'
Note, selecting 'libghc-utility-ht-prof-0.0.5.1-87764' for regex '1.8.7'
Note, selecting 'libhdf5-openmpi-1.8.7' for regex '1.8.7'
Note, selecting 'libhdf5-serial-1.8.7' for regex '1.8.7'
Note, selecting 'libghc-utility-ht-dev-0.0.5.1-87764' for regex '1.8.7'
Note, selecting 'libghc-utility-ht-dev' instead of 'libghc-utility-ht-dev-0.0.5.1-87764'
Note, selecting 'libghc-utility-ht-prof' instead of 'libghc-utility-ht-prof-0.0.5.1-87764'
Package 'libhdf5-1.8.7' is not installed, so not removed
Package 'libhdf5-serial-1.8.7' is not installed, so not removed
Package 'libhdf5-mpich2-1.8.7' is not installed, so not removed
Package 'libhdf5-openmpi-1.8.7' is not installed, so not removed
Package 'ruby' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 567 not upgraded.
最佳答案
如果您使用的是rvm,那么您可以使用以下命令卸载ruby 1.8.7
rvm unistall 1.8.7
然后使用命令卸载rvm
rvm implode
关于ruby-on-rails - 从 UBUNTU 14.0.4 LTS 卸载 Ruby 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30775815/