Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8361811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:47:13+00:00 2026-06-09T11:47:13+00:00

After the reboot which was required to update all the packages, ruby -v doesn’t

  • 0

After the reboot which was required to update all the packages,

ruby -v

doesn’t work. It says rails is not installed either, but I guess it should be the similar issue. when I do:

sudo apt-get install ruby

It says the newest version is already installed.
When I do:

dpkg -L ruby

I get the following output:

/.
/usr
/usr/bin
/usr/share
/usr/share/doc
[and other stuff..]

But I realized $PATH already includes /usr/bin:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
:/sbin:/bin:/usr/games:/home/ubuntu/.rvm/bin

May I know why I’m still getting the following error message?:

The program 'ruby' is currently not installed.  You can install it by typing:
sudo apt-get install ruby

My .bashrc already has this too:

PATH=$PATH:$HOME/.rvm/bin
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:47:14+00:00Added an answer on June 9, 2026 at 11:47 am

    dpkg will be checking in a database that it maintains, whereas trying to execute ruby uses the PATH. If I recall correctly, Ubuntu has a bash handler configured to execute when any command is unresolvable; it seems that it just displays that generic message rather than checking with dpkg first.

    It is possible that ruby has disappeared from your filesystem (or at least the directory it previously resided in), or that your PATH was changed.

    What do you get if you execute “which ruby” and “where ruby”?

    Lastly, Ubuntu can complain that a program cannot be found when it is present. This occurs when running a 64-bit version of Ubuntu, without the necessary x86 libraries installed, and trying to execute a 32-bit binary. However, I recall the error message being more along the lines of “file not found”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way using which I can request Android OS to reboot after
Is it possible to reboot after you uninstall? I am using WiX to create
I'm looking for a way to reboot my app after an in app purchase
After following the RoR getting started tutorial, I added another model as: $ rails
After I click update in the grid view, the code works successfully. But when
I'm developing installer and I need somehow to check system reboot after previous uninstallation.
My application has only one service class (not activity) in which I keep value
I am currently trying to make a broadcast receiver which will invoke after android
I just executed installutil on a DLL in which custom performance counters are installed.
after reboot I try to start using mysql on my mac (10.6.5), but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.