sudo yum install httpd 抛出错误
sudo yum install httpd is throwing errors
我正在使用代码部署 amazon ec2 创建 CI,不幸的是,在 git 推送之后我收到以下错误。
scripts/install_dependencies
The script at the specified location: scripts/install_dependencies run as user root failed with exit code 1 View more.
LifecycleEvent - BeforeInstall
Script - scripts/install_dependencies
[stdout]Loaded plugins: priorities, update-motd, upgrade-helper
[stdout]Resolving Dependencies
[stdout]--> Running transaction check
[stdout]---> Package httpd.x86_64 0:2.2.34-1.16.amzn1 will be installed
[stdout]--> Processing Dependency: httpd-tools = 2.2.34-1.16.amzn1 for package: httpd-2.2.34-1.16.amzn1.x86_64
[stdout]--> Processing Dependency: apr-util-ldap for package: httpd-2.2.34-1.16.amzn1.x86_64
[stdout]--> Running transaction check
[stdout]---> Package apr-util-ldap.x86_64 0:1.5.4-6.18.amzn1 will be installed
[stdout]---> Package httpd-tools.x86_64 0:2.2.34-1.16.amzn1 will be installed
[stdout]--> Processing Conflict: httpd24-tools-2.4.37-1.83.amzn1.x86_64 conflicts httpd-tools < 2.4.37
[stdout]--> Finished Dependency Resolution
[stderr]Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64
[stderr]Error: httpd24 conflicts with httpd-2.2.34-1.16.amzn1.x86_64
[stdout] You could try using --skip-broken to work around the problem
[stdout] You could try running: rpm -Va --nofiles --nodigest
这是我的scripts/install_dependencies
#!/bin/bash
yum install -y httpd
我的代码哪里做错了?
您的脚本看起来正确,但与现有包有冲突。 Amazon Linux AMI 已经安装了一个版本的 httpd。尝试使用不同的 AMI(可能是您使用正确版本创建的自定义 AMI)或让您的脚本在安装新版本之前删除现有版本,例如sudo yum remove httpd-tools-2.2.34-1.16.amzn1.x86_64
我正在使用代码部署 amazon ec2 创建 CI,不幸的是,在 git 推送之后我收到以下错误。
scripts/install_dependencies
The script at the specified location: scripts/install_dependencies run as user root failed with exit code 1 View more.
LifecycleEvent - BeforeInstall
Script - scripts/install_dependencies
[stdout]Loaded plugins: priorities, update-motd, upgrade-helper
[stdout]Resolving Dependencies
[stdout]--> Running transaction check
[stdout]---> Package httpd.x86_64 0:2.2.34-1.16.amzn1 will be installed
[stdout]--> Processing Dependency: httpd-tools = 2.2.34-1.16.amzn1 for package: httpd-2.2.34-1.16.amzn1.x86_64
[stdout]--> Processing Dependency: apr-util-ldap for package: httpd-2.2.34-1.16.amzn1.x86_64
[stdout]--> Running transaction check
[stdout]---> Package apr-util-ldap.x86_64 0:1.5.4-6.18.amzn1 will be installed
[stdout]---> Package httpd-tools.x86_64 0:2.2.34-1.16.amzn1 will be installed
[stdout]--> Processing Conflict: httpd24-tools-2.4.37-1.83.amzn1.x86_64 conflicts httpd-tools < 2.4.37
[stdout]--> Finished Dependency Resolution
[stderr]Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64
[stderr]Error: httpd24 conflicts with httpd-2.2.34-1.16.amzn1.x86_64
[stdout] You could try using --skip-broken to work around the problem
[stdout] You could try running: rpm -Va --nofiles --nodigest
这是我的scripts/install_dependencies
#!/bin/bash
yum install -y httpd
我的代码哪里做错了?
您的脚本看起来正确,但与现有包有冲突。 Amazon Linux AMI 已经安装了一个版本的 httpd。尝试使用不同的 AMI(可能是您使用正确版本创建的自定义 AMI)或让您的脚本在安装新版本之前删除现有版本,例如sudo yum remove httpd-tools-2.2.34-1.16.amzn1.x86_64