我正在尝试在我的 Azure Redhat VM 上运行 yum update:yum update -y 但出现了此错误:
Error: Package: containerd.io-1.2.6-3.3.el7.x86_64 (docker-ce)
Requires: container-selinux >= 2:2.74
Installed: 2:container-selinux-2.9-4.el7.noarch (installed)
container-selinux = 2:2.9-4.el7
Error: Package: 3:docker-ce-19.03.1-3.el7.x86_64 (docker-ce)
Requires: container-selinux >= 2:2.74
Installed: 2:container-selinux-2.9-4.el7.noarch (installed)
container-selinux = 2:2.9-4.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
答案1
运行此命令重新安装稳定的 docker-ce 和 containerd.io
sudo yum install docker-ce-stable docker-ce-cli containerd.io-stable
这应该可以解决错误