【问题标题】:Composer Error trying to update packagesComposer 尝试更新软件包时出错
【发布时间】:2016-01-28 16:12:44
【问题描述】:

我想在我的工作 PC 上下载软件包(并且在代理后面)。我收到此错误:

[Composer\Downloader\TransportException]
https://packagist.org/packages.json”文件不能 已下载:SSL 操作失败,代码为 1。 OpenSSL 错误消息: 错误:140770FC:SSL 例程:SSL23_GET_SERVER_HELLO:未知协议
启用加密失败
无法打开流:操作失败

我做了 php composer.phar diag,这是输出:

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: FAIL
[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
Checking HTTP proxy: FAIL
[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
Checking HTTP proxy support for request_fulluri: OK
Checking HTTPS proxy support for request_fulluri: FAIL
Unable to assess the situation, maybe github is down (The "https://api.github.com/repos/Seldaek/jsonlint/zipball/1.0.0" 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)
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" 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
Checking disk free space: OK
Checking composer version: 


  [Composer\Downloader\TransportException]                                                                                       
  The "https://getcomposer.org/version" 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                

希望有人可以帮助我。

谢谢!

【问题讨论】:

  • PS:我读过这篇文章link,但没有用。
  • 您查看过此链接吗? stackoverflow.com/questions/32178980/…
  • 您好,我做了一些更改,现在出现此错误:检查 http 连接:FAIL [Composer\Downloader\TransportException] 无法下载“packagist.org/packages.json”文件:无法打开流:找不到套接字传输“gcaserotto” - 您在配置 PHP 时是否忘记启用它?

标签: php laravel ssl https composer-php


【解决方案1】:

在不使用 sudo 的情况下运行以下命令:

composer update

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-08
    • 2019-12-24
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 2018-09-01
    • 2014-04-04
    • 2016-11-23
    相关资源
    最近更新 更多