Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run an apt-get update, apt-get dist-upgrade, the location of /usr/bin/ruby changes from /usr/local/bin/ruby to /etc/alternatives/ruby. This ends up breaking several cron jobs until I remember to correct it back. Why is it doing this?


share|improve this question

Don't move the binary, symlink it

ln -s /etc/alternatives/ruby /usr/bin/ruby

but better yet use update-alternatives

update-alternatives --config ruby

Oh and the why, there are multiple branches of ruby (ruby1.8 vs ruby1.9) similar to python2 vs python3 which affect script compatibility.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.