2016-10-24 132 views
0

使用aws Linux。當我嘗試安裝mod_ssl時,它給出了ttpd-tools-2.2.31-1.8.amzn1.x86_64和httpd-2.2.31-1.8.amzn1.x86_64的衝突錯誤。試過yum刪除,但它不工作。當我做一個yum列表時,舊的httpd版本沒有列出。不知道爲什麼。任何人都可以幫我解決這個問題。安裝mod_ssl問題apache 2.4 aws linux

[[email protected] ec2-user]# yum install mod_ssl 
Loaded plugins: priorities, update-motd, upgrade-helper 
Resolving Dependencies 
--> Running transaction check 
---> Package mod_ssl.x86_64 1:2.2.31-1.8.amzn1 will be installed 
--> Processing Dependency: httpd = 2.2.31-1.8.amzn1 for package: 1:mod_ssl-2.2.31-1.8.amzn1.x86_64 
--> Processing Dependency: httpd-mmn = 20051115 for package: 1:mod_ssl-2.2.31-1.8.amzn1.x86_64 
--> Running transaction check 
---> Package httpd.x86_64 0:2.2.31-1.8.amzn1 will be installed 
--> Processing Dependency: httpd-tools = 2.2.31-1.8.amzn1 for package: httpd-2.2.31-1.8.amzn1.x86_64 
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.31-1.8.amzn1.x86_64 
--> Running transaction check 
---> Package apr-util-ldap.x86_64 0:1.4.1-4.17.amzn1 will be installed 
---> Package httpd-tools.x86_64 0:2.2.31-1.8.amzn1 will be installed 
--> Processing Conflict: httpd24-2.4.18-1.64.amzn1.x86_64 conflicts httpd < 2.4.18 
--> Restarting Dependency Resolution with new changes. 
--> Running transaction check 
---> Package httpd24.x86_64 0:2.4.18-1.64.amzn1 will be updated 
---> Package httpd24.x86_64 0:2.4.23-1.66.amzn1 will be an update 
--> Processing Dependency: httpd24-tools = 2.4.23-1.66.amzn1 for package: httpd24-2.4.23-1.66.amzn1.x86_64 
--> Running transaction check 
---> Package httpd24-tools.x86_64 0:2.4.18-1.64.amzn1 will be updated 
---> Package httpd24-tools.x86_64 0:2.4.23-1.66.amzn1 will be an update 
--> Processing Conflict: httpd24-2.4.23-1.66.amzn1.x86_64 conflicts httpd < 2.4.23 
--> Processing Conflict: httpd24-tools-2.4.23-1.66.amzn1.x86_64 conflicts httpd-tools < 2.4.23 
--> Finished Dependency Resolution 
Error: httpd24-tools conflicts with httpd-tools-2.2.31-1.8.amzn1.x86_64 
Error: httpd24 conflicts with httpd-2.2.31-1.8.amzn1.x86_64 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 
[[email protected] ec2-user]# yum l 

[[email protected] ec2-user]# yum list installed | grep -in httpd 
120:httpd24.x86_64     2.4.18-1.64.amzn1    @amzn-main 
121:httpd24-tools.x86_64    2.4.18-1.64.amzn1    @amzn-main 


[[email protected] ec2-user]# yum remove httpd-tools-2.2.31-1.8.amzn1.x86_64 
Loaded plugins: priorities, update-motd, upgrade-helper 
No Match for argument: httpd-tools-2.2.31-1.8.amzn1.x86_64 
No Packages marked for removal 

[[email protected] ec2-user]# yum remove httpd-2.2.31-1.8.amzn1.x86_64 
Loaded plugins: priorities, update-motd, upgrade-helper 
No Match for argument: httpd-2.2.31-1.8.amzn1.x86_64 
No Packages marked for removal 
[[email protected] ec2-user]# 

]#yum list installed |的grep -in的httpd 120:httpd24.x86_64 2.4.18-1.64.amzn1 @ AMZN-主要 121:httpd24-tools.x86_64 2.4.18-1.64.amzn1 @ AMZN-主

+0

任何人都可以幫助我解決這個問題。 – Arav

+1

[安裝mod \ _ssl亞馬遜linux]可能的重複(http://stackoverflow.com/questions/19646150/installing-mod-ssl-amazon-linux) –

回答

-1

嘗試使用重新安裝

百勝刪除<列出的所有包>

百勝基本上安裝了mod_ssl

+0

已嘗試yum刪除httpd-tools-2.2.31-1.8。 amzn1.x86_64和yum刪除httpd-2.2.31-1.8.amzn1.x86_64做了一個yum安裝mod_ssl,但它仍然無效 – Arav

+0

任何人都可以幫助我解決這個問題。感謝 – Arav