Why is this constantly happening when I try to update

That’s true, if the update succeeds. But if it fails, and it sometimes will, then you have a non-working forum until you can get to the commandline to fix things. So, if uptime matters to you, you will always be ready to do that at the point of trying an update.

And in every case, you should take a full backup and download it before trying an update. If things go very wrong, you’ll need it.