HostOnNet Blog

How do I fixed the WordPress upgrade issues on Ubuntu to 16.04

Looking for Linux Server Admin or WordPress Expert? We can help.

I was using older version of WordPress on Ubuntu 16.04. Now when I try to upgrade to WordPress 4.9.5, it says

Unpacking the update...

The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

Installation Failed

An automated WordPress update has failed to complete

And the plugin upgrade showing

Unable to update WordPress installation/plugins: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions

Then I changed the owner and group owner to www-data user using below command.

sudo chown -R www-data:www-data /home/username/www/wordpress

After running above command I was able to successfully update WordPress with no further issues.

Wordpress upgrade

Do you have a WordPress issue ? If so let us fix it for you, please send us an email to [email protected]. We are always open and ready to Fix WordPress as fast as possible

EDIT:

After running the command, Whenever I open wordpress, all the folders in it are displayed with a lock icon.

Wordpress Lock

Therefore, when i edit files, its keep asking me to enter root password. This issue fixed by running the below command

sudo chmod 777 -R /home/username/www/wordpress

About Sibi Antony

Bootstrap and Android LOVER. I've been creating things for the web for over 10 years, from the period of flash and table based layout web sites till mobile and tab friendly web sites.
Posted in Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.