WordPress update failed
Update failure in wordpress happens due to permission issues. If wordpress gives you the error, “Update failed due to permissions” while updating, it means that the user, “www-data“, (which the wordpress GUI uses) don’t have enough permissions to the installed directory. So, let’s assign permissions for this user to the /var/www directory.
sudo chown -R www-data:www-data /var/www sudo chmod -R 774 /var/www
Now, verify the permissions,
ls -lah /var
Hopefully, this will solve the update failed problem. Please let me know in the comments section below.