Centos

在 CentOS 中安裝 php-snmp 時出錯

  • August 8, 2016

我目前在 CentOS 6.7 上使用 php 5.6。

我正在嘗試安裝

百勝安裝 php-snmp

我不斷得到

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.math.princeton.edu
* extras: mirror.5ninesolutions.com
* updates: mirrors.seas.harvard.edu
* webtatic: us-east.repo.webtatic.com
https://us-east.repo.webtatic.com/yum/el6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package php-snmp.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-snmp-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Conflict: php56w-common-5.6.22-1.w6.x86_64 conflicts php-common < 5.5.0
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.22-1.w6 will be updated
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-mbstring-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-opcache-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-fpm-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-pdo-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-cli-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-xml-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-5.6.22-1.w6.x86_64
---> Package php56w-common.x86_64 0:5.6.23-1.w6 will be an update
--> Running transaction check
---> Package php56w.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-cli.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-cli.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-fpm.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-fpm.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-mbstring.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-mbstring.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-opcache.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-opcache.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-pdo.x86_64 0:5.6.22-1.w6 will be updated
--> Processing Dependency: php56w-pdo(x86-64) = 5.6.22-1.w6 for package: php56w-pgsql-5.6.22-1.w6.x86_64
---> Package php56w-pdo.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-xml.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-xml.x86_64 0:5.6.23-1.w6 will be an update
--> Running transaction check
---> Package php56w-pgsql.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-pgsql.x86_64 0:5.6.23-1.w6 will be an update
--> Processing Conflict: php56w-common-5.6.23-1.w6.x86_64 conflicts php-common < 5.6
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.3.3-47.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我該如何避免呢?


更新

@symcbean:感謝您的建議。我試過了

百勝安裝php56w-snmp -y

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.math.princeton.edu
* extras: mirror.stjschools.org
* updates: mirrors.seas.harvard.edu
* webtatic: us-east.repo.webtatic.com
https://us-east.repo.webtatic.com/yum/el6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package php56w-snmp.x86_64 0:5.6.23-1.w6 will be installed
--> Processing Dependency: php56w-common(x86-64) = 5.6.23-1.w6 for package: php56w-snmp-5.6.23-1.w6.x86_64
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.22-1.w6 will be updated
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-mbstring-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-opcache-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-fpm-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-pdo-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-cli-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-xml-5.6.22-1.w6.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.22-1.w6 for package: php56w-5.6.22-1.w6.x86_64
---> Package php56w-common.x86_64 0:5.6.23-1.w6 will be an update
--> Running transaction check
---> Package php56w.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-cli.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-cli.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-fpm.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-fpm.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-mbstring.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-mbstring.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-opcache.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-opcache.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-pdo.x86_64 0:5.6.22-1.w6 will be updated
--> Processing Dependency: php56w-pdo(x86-64) = 5.6.22-1.w6 for package: php56w-pgsql-5.6.22-1.w6.x86_64
---> Package php56w-pdo.x86_64 0:5.6.23-1.w6 will be an update
---> Package php56w-xml.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-xml.x86_64 0:5.6.23-1.w6 will be an update
--> Running transaction check
---> Package php56w-pgsql.x86_64 0:5.6.22-1.w6 will be updated
---> Package php56w-pgsql.x86_64 0:5.6.23-1.w6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
Package                                         Arch                                   Version                                     Repository                                Size
===================================================================================================================================================================================
Installing:
php56w-snmp                                     x86_64                                 5.6.23-1.w6                                 webtatic                                  32 k
Updating for dependencies:
php56w                                          x86_64                                 5.6.23-1.w6                                 webtatic                                 2.7 M
php56w-cli                                      x86_64                                 5.6.23-1.w6                                 webtatic                                 2.6 M
php56w-common                                   x86_64                                 5.6.23-1.w6                                 webtatic                                 1.2 M
php56w-fpm                                      x86_64                                 5.6.23-1.w6                                 webtatic                                 1.3 M
php56w-mbstring                                 x86_64                                 5.6.23-1.w6                                 webtatic                                 944 k
php56w-opcache                                  x86_64                                 5.6.23-1.w6                                 webtatic                                 100 k
php56w-pdo                                      x86_64                                 5.6.23-1.w6                                 webtatic                                  94 k
php56w-pgsql                                    x86_64                                 5.6.23-1.w6                                 webtatic                                  95 k
php56w-xml                                      x86_64                                 5.6.23-1.w6                                 webtatic                                 148 k

Transaction Summary
===================================================================================================================================================================================
Install       1 Package(s)
Upgrade       9 Package(s)

Total download size: 9.2 M
Downloading Packages:
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-cli-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-cli-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-cli-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-common-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-common-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-common-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-fpm-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-fpm-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-fpm-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-mbstring-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-mbstring-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-mbstring-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-opcache-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-opcache-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-opcache-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-pdo-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-pdo-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-pdo-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-pgsql-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-pgsql-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-pgsql-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-snmp-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-snmp-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-snmp-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://us-east.repo.webtatic.com/yum/el6/x86_64/php56w-xml-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://uk.repo.webtatic.com/yum/el6/x86_64/php56w-xml-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://sp.repo.webtatic.com/yum/el6/x86_64/php56w-xml-5.6.23-1.w6.x86_64.rpm: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.


Error Downloading Packages:
 php56w-common-5.6.23-1.w6.x86_64: failure: php56w-common-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-mbstring-5.6.23-1.w6.x86_64: failure: php56w-mbstring-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-snmp-5.6.23-1.w6.x86_64: failure: php56w-snmp-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-xml-5.6.23-1.w6.x86_64: failure: php56w-xml-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-pgsql-5.6.23-1.w6.x86_64: failure: php56w-pgsql-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-cli-5.6.23-1.w6.x86_64: failure: php56w-cli-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-fpm-5.6.23-1.w6.x86_64: failure: php56w-fpm-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-5.6.23-1.w6.x86_64: failure: php56w-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-pdo-5.6.23-1.w6.x86_64: failure: php56w-pdo-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.
 php56w-opcache-5.6.23-1.w6.x86_64: failure: php56w-opcache-5.6.23-1.w6.x86_64.rpm from webtatic: [Errno 256] No more mirrors to try.

您的系統上安裝了非標準 PHP - 要麼將其退出並替換為 CENTOS 發行版,然後安裝 php-snmp rpm,要麼保留現有的 PHP 和yum install php56w-snmp(注意“w”)

引用自:https://unix.stackexchange.com/questions/302072