To enable extensions, verify that they are enabled in those .ini files:

Problem

You are trying to install the dependencies in a PHP Symfony project, but you get an error about enable extensions in ini files.

Solution

Make sure that you install the correct packages for the PHP version you are using. So installing php-curl while using PHP 7.1 results in the error.
When installing php7.1-curl the installation completes successfuly.