"Update failed: The update cannot be installed because some files could not be copied"

That happens quite often because owner of directories under Wordpress has been changed to root. If that’s true then chown -R www-data:www-data /var/www/public_html or similar depending of distro and paths helps.