This error message pops up while updating WordPress Core, Themes or Plugins. This error is common on localhost installations.Here is how it looks:
How to fix
The error pops up when Curl extension of PHP is not enabled. To fix this issue you need to enable curl. Search for php.in PHP configuration file in Apache directory of your LAMP or WAMP package or other custom installations.
Look for this line.
If there is a semi-colon at start of line. Remove it. As shown below.
Restart Apache. Your problem should be fixed. There should not be issue of updating your WordPress installation.