Thanks. It was definitely permission issue. I kept ownership of webroot to my account.
I have run sudo chown -R www-data:www-data /var/www t0 give full access to nginx/php user and update completed successfully. Also applied the code fix for explorer issue.