使用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版本。不知道为什么。有人能帮我解决这个问题吗?
[root@ip-61 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
[root@ip-61 ec2-user]# yum l
[root@ip-61 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
[root@ip-61 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
[root@ip-61 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
[root@ip-61 ec2-user]#]# yum列表已安装| 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
发布于 2017-02-01 23:19:32
基本上: sudo yum安装mod24_ssl
尽管如此,请参阅:https://stackoverflow.com/a/21781886
发布于 2018-10-25 16:26:08
您可以使用以下命令
yum install mod24_ssl.x86_64它将在没有任何依赖冲突的情况下安装mod_ssl。
发布于 2020-07-18 00:16:05
我怀疑你安装了cpanel或plesk或directadmin之类的东西,他们在/etc/yum.conf中添加了一堆exclude=代码行,例如:
exclude=apache* httpd* mod_* mysql* MySQL* mariadb* da_* *ftp* exim* sendmail* php* bind-chroot*并停止安装各种包。他们这样做是因为他们提供了许多中央CentOS包的自己版本,并希望阻止CentOS包覆盖它们。一旦你安装了这样的web面板,你已经改变了系统运行的方式,你必须去他们那里询问如何安装东西,因为正常的CentOS方式最终会破坏他们其他已安装的软件包。
我在网上找到了这个答案
https://stackoverflow.com/questions/40229096
复制相似问题