我正在尝试yum update
EC2 服务器但失败了。这是第一次发生这种情况我需要做些什么来解决这个问题?
--> Running transaction check
---> Package libXcomposite.x86_64 0:0.4.3-4.6.amzn1 will be installed
---> Package nginx.x86_64 1:1.10.1-1.el7.ngx will be an update
--> Processing Dependency: systemd for package: 1:nginx-1.10.1-1.el7.ngx.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:nginx-1.10.1-1.el7.ngx.x86_64
---> Package python27-futures.noarch 0:3.0.3-1.3.amzn1 will be installed
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:4.1.13-19.30.amzn1 will be erased
---> Package nginx.x86_64 1:1.10.1-1.el7.ngx will be an update
--> Processing Dependency: systemd for package: 1:nginx-1.10.1-1.el7.ngx.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:nginx-1.10.1-1.el7.ngx.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-1.10.1-1.el7.ngx.x86_64 (nginx)
Requires: libpcre.so.1()(64bit)
Error: Package: 1:nginx-1.10.1-1.el7.ngx.x86_64 (nginx)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
您以某种方式设法安装
nginx
并且您安装的 yum 存储库(由 nginx.org 提供)与 Amazon Linux 不兼容。它适用于 RHEL 7 或 CentOS 7。Amazon Linux 与 RHEL/CentOS 不兼容,并且这些软件包通常无法在 Amazon Linux 上运行。要解决此问题,请使用受支持的操作系统发行版(例如 RHEL 7 或 CentOS 7)启动一个新实例,然后在该实例上安装 nginx。