Linux 命令详解(九)轻易删除OpenSSL 的后果

警告自己,不要轻易的去删除系统的软件

1、composer自动更新出现错误

www@TinywanAliYun:~/web/go-study-line$ composer self-update
Key chrisboulton/php-resque is a duplicate in ./composer.json at line [Composer\Downloader\TransportException]
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 [Composer\Downloader\TransportException]
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,重新安装):

   sudo find / -name composer
sudo rm /usr/local/bin/composer
sudo rm /usr/bin/composer
rm /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer/vendor/composer
sudo find / -name composer
rm /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
sudo rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
sudo find / -name composer
rm /home/www/.local/share/composer
sudo rm -r /home/www/.local/share/composer
sudo rm -r /home/www/.config/composer/
sudo rm -r /home/www/.cache/composer/
# 安装 
curl -sS https://getcomposer.org/installer | php // 或者 php -r "readfile('http://install.phpcomposer.com/installer');" | php 
cp composer.phar /usr/local/bin/composer
sudo cp composer.phar /usr/local/bin/composer
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
上一篇:Android多媒体开发-- android中OpenMax的实现整体框架


下一篇:HTML5 drag & drop 拖拽与拖放