我不知道我是如何陷入这种状态的,但现在每次我尝试运行 yum 时,它都会以以下消息结束:
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools
Error: php54-cli conflicts with php-cli
Error: php55-cli conflicts with php-cli
Error: php54-xml conflicts with php-xml
Error: php55-common conflicts with php-common
Error: php56-xml conflicts with php-xml
Error: php54-common conflicts with php-common
Error: php54-process conflicts with php-process
Error: httpd24 conflicts with httpd
Error: php55-cli conflicts with php54-cli
Error: php55-process conflicts with php-process
Error: php56-common conflicts with php-common
Error: php54 conflicts with php
Error: php56-cli conflicts with php54-cli
Error: php55-xml conflicts with php54-xml
Error: php56-process conflicts with php54-process
Error: php56 conflicts with php54
Error: php56-cli conflicts with php-cli
Error: php56-process conflicts with php-process
Error: php56-xml conflicts with php54-xml
Error: php55-xml conflicts with php-xml
Error: php55 conflicts with php
Error: php56-common conflicts with php54-common
Error: php55-process conflicts with php54-process
Error: php56 conflicts with php
Error: php55 conflicts with php54
Error: php55-common conflicts with php54-common
You could try using --skip-broken to work around the problem
zlib-1.2.7-10.17.amzn1.x86_64 is a duplicate with zlib-1.2.3-24.7.amzn1.i686
暂时,我不想更改我的 apache 或 PHP 配置,因为此服务器上有生产站点。所以,我不想安装较新的版本。
我尝试了以下方法:
yum clean all
yum downgrade httpd24-tools
yum distro-sync
但我确实需要安装一个 nodejs 站点,所以我需要安装一堆新的包。 我该如何修复或消除这些冲突?
编辑:yum repolist 的输出:
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
amzn-main | 2.1 kB 00:00
amzn-updates | 2.5 kB 00:00
mod-pagespeed | 951 B 00:00
mongodb | 951 B 00:00
0 packages excluded due to repository priority protections
repo id repo name status
amzn-main amzn-main-Base 5,934
amzn-updates amzn-updates-Base 467
mod-pagespeed mod-pagespeed 10
mongodb MongoDB Repository 279
repolist: 6,690
值得一提的是,该服务器(AWS 实例)是其他人于 2011 年创建的。因此,可能有些过时了。
編輯 II
事实证明,我在开始此过程之前备份了根卷,然后很快就忘记了(好习惯只有在您能记住的情况下才有用)。因此,这些可怕的冲突已经消失。我仍然收到以下错误:
Could not retrieve mirrorlist http://nodejs.tchol.org/mirrors/nodejs-stable-amzn1 error was
14: PYCURL ERROR 6 - ""
Error: Cannot find a valid baseurl for repo: nodejs-stable
这是我最初试图解决的问题。如果问题继续存在,最好将其作为一个单独的问题。