Composer php 在ubuntu 16.4上安装composer:无法下载文件

Composer php 在ubuntu 16.4上安装composer:无法下载文件,composer-php,Composer Php,我在安装composer(sudo composer install)时遇到此错误。 有人能帮我吗 Cannot create cache directory /home/tanmay/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache 无法创建缓存目录/home/tanmay/.composer/cache/files/,或者该目录不可写。在没有

我在安装composer(
sudo composer install
)时遇到此错误。
有人能帮我吗

Cannot create cache directory /home/tanmay/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
无法创建缓存目录/home/tanmay/.composer/cache/files/,或者该目录不可写。在没有缓存的情况下继续

[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded:
SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed