When installing Magento 2.0.2 via composer getting this error:
Problem 1
 - Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiab         
        Updated....For ubuntu users
sudo apt-get php install libapache2-mod-php php-common php-gd php-mysql php-curl php-intl php-xsl php-mbstring php-zip php-bcmath php-soap php-xdebug php-imagick
                                                                        First installed sudo apt-get install php5-gd, then sudo apt-get install php5-intl and last one was sudo apt-get install php5-xsl. 
After that, it's installing as it should.
For me
sudo apt-get install php5-mcrypt 
solved the issue
Have tried for many times, the above answers don't solve my quesiton, but this command helped me:
sudo apt-get install php-mbstring
                                                                        this command would do the trick
sudo apt-get install php5-curl
                                                                        It's worked fine in server
composer install --no-dev