Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Thanks!

share|improve this question

1 Answer 1

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

 
discard

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.