Produktinstallation auf 3.4.0.beta2-dev schlägt beim Update auf 3.4.0.beta2 fehl

If you use a standard install, then the Ruby version should already be much newer than that.

Can you try running

cd /var/discourse
git status