WordPress and plugins can’t update (“inconsistent file permissions” error)?

Try to run these commands (Commands are for both Dashboard and ftp)

sudo usermod -aG www-data $USER

sudo chown -R www-data:www-data /var/www

sudo chmod -R 774 /var/www