我想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。