The directory /wp-content/
of your local installations needs permission to create directory. It is necessary to upload the package and unpack.
Maybe this should helps, if the user is www-data
.
chown -R :www-data /var/www/html/wordpress/wp-content/uploads
chown -R :www-data /var/www/html/wordpress/wp-content/upgrades
Or full access to the wp-content directory sudo chmod -R 777 wp-content/