In this Tutorial you will find a quick way on how to resolve the WordPress update.
Step 1:
a Login to your server using ssh
ssh root@yourlocalip
b Typing your password
Step 2:
Typing in the following command
chown -R www-data:www-data /var/www/wordpress
Step 3:
Refresh your webpage and enjoy your updated wordpress