Failed to update Discourse new version

You need to run as user root.

Do a

sudo su -

Before the cd command