How to install new drupal packages on local apache server
Looks like this is a permission issue. You might want to make sites directory owned by the apache user and the themes or modules folder is writable as well.

$ chown -R www-data sites # Change owner sites directory


If that doesn't work, you might try setting modules and theme dir writable.

$ chmod -R 777 sites/all


Ref: https://www.drupal.org/forum/support/post-installation/2011-01-22/module-installation-requires-ftp-access