centos 7 yum update -y 出现 Error: Package: 1:nginx --skip-broken
问题描述
阿里云 ECS CentOS 7.6 执行 yum update -y
升级时,出现如下错误:
Finished Dependency Resolution
Error: Package: 1:nginx-1.12.2-2.el7.x86_64 (@epel)
Requires: nginx-filesystem = 1:1.12.2-2.el7
Removing: 1:nginx-filesystem-1.12.2-2.el7.noarch (@epel)
nginx-filesystem = 1:1.12.2-2.el7
Updated By: 1:nginx-filesystem-1.12.2-3.el7.noarch (epel)
nginx-filesystem = 1:1.12.2-3.el7
You could try using --skip-broken to work around the problem
解决方法
根据提示 yum update
时添加参数 --skip-broken
yum update --skip-broken -y
如果还不能解决,先清空 yum 缓存,重新升级
yum clean all
yum update --skip-broken -y