当我尝试在ubuntu 18.04上运行composer install时,我得到了:
The "https://packagist.org/packages.json" file could not be downloaded: SSL
operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Failed to enable crypto
failed to open stream: operation failed
我在/etc/apt/apt.conf和/ etc / profile中获得了严格的代理配置,但是错误不断出现,我没有做任何事情。
答案 0 :(得分:0)
使用composer所需的代理配置位于/ etc / enviroment文件中。
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy="http://username:password@10.4.1.20:3128"
https_proxy="http://username:password@10.4.1.20:3128"