您好,这是我正在输入的命令,它返回了您看到的错误,请提出任何建议
[ec2-user@ip-172-31-41-46 ~]$ sudo yum install httpd
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.27-1.3.amzn1 will be installed
--> Processing Dependency: httpd-tools = 2.2.27-1.3.amzn1 for package: httpd-2.2.27-1.3.amzn1.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.27-1.3.amzn1 will be installed
--> Processing Conflict: httpd24-2.4.10-1.59.amzn1.x86_64 conflicts httpd < 2.4.10
--> Processing Conflict: httpd24-tools-2.4.10-1.59.amzn1.x86_64 conflicts httpd-tools < 2.4.10
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.27-1.3.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.27-1.3.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[ec2-user@ip-172-31-41-46 ~]$
当我执行 yum install --skip-broken httpd 时,它返回:
Packages skipped because of dependency problems:
httpd-2.2.27-1.3.amzn1.x86_64 from amzn-updates
httpd-tools-2.2.27-1.3.amzn1.x86_64 from amzn-updates
答案1
您正在尝试安装httpd
包含 Apache 2.2 版本的软件包,但是您已经httpd24
安装了包含 Apache 2.4 版本的软件包。
在做任何其他事情之前,首先决定您真正想要哪个版本。