What happens if you try the built in updater? (The one on the Setup page)
And do you want to update to the newest build or to the the newest version (for example V10 to V11)?
download the zip from the website (either via wget on your server, or download it onto your machine and upload it to your server). unzip it and replace the old foundryvtt folder (rename the old folder)