Linux命令詳解(九)輕易刪除OpenSSL的後果

tinywan1227發表於2017-09-27

警告自己,不要輕易的去刪除系統的軟體

1、composer自動更新出現錯誤

www@TinywanAliYun:~/web/go-study-line$ composer self-update
Key chrisboulton/php-resque is a duplicate in ./composer.json at line 48

                                                                                                                                  
  [ComposerDownloaderTransportException]                                                                                        
  The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:  
  error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed                                               
  Failed to enable crypto                                                                                                         
  failed to open stream: operation failed                                                                                         
                                                                                                                                  

self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]

解決辦法:

按照百度的:http://www.yiichina.com/tutorial/441 ,指定的安全證照(重啟php服務),還是錯誤

www@TinywanAliYun:~/web/go-study-line$ composer self-update
Key chrisboulton/php-resque is a duplicate in ./composer.json at line 48

                                                                                                                                                    
  [ComposerDownloaderTransportException]                                                                                                          
  The "https://getcomposer.org/versions" file could not be downloaded: failed loading cafile stream: `/usr/share/php/data/Composer/res/cacert.pem`  
  Failed to enable crypto                                                                                                                           
  failed to open stream: operation failed 

最後通過以下步驟解決問題(刪除所有的composer,重新安裝):

 2060  sudo find / -name composer
 2061  sudo rm /usr/local/bin/composer 
 2062  sudo rm /usr/bin/composer 
 2063  rm /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
 2064  rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
 2065  rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer/vendor/composer
 2066  sudo find / -name composer
 2067  rm /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
 2068  sudo rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
 2069  sudo find / -name composer
 2070  rm /home/www/.local/share/composer
 2071  sudo rm -r /home/www/.local/share/composer
 2072  sudo rm -r /home/www/.config/composer/
 2073  sudo rm -r /home/www/.cache/composer/
# 安裝  2080 curl -sS https://getcomposer.org/installer | php // 或者 php -r "readfile(`http://install.phpcomposer.com/installer`);" | php 
2088 cp composer.phar /usr/local/bin/composer 2089 sudo cp composer.phar /usr/local/bin/composer
2092 sudo ln -s /usr/local/bin/composer /usr/bin/composer

 

2、Github 授權登陸出現問題

server certificate verification failed. 
CAfile: /etc/ssl/certs/ca-certificates.crt 
CRLfile: none

 


相關文章