尝试更新我的服务器时出现此错误。我尝试了底部的建议,但没有成功。我该如何解决?
sudo yum update
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package python26.x86_64 0:2.6.9-1.80.amzn1 will be updated
---> Package python26.x86_64 0:2.6.9-2.83.amzn1 will be obsoleting
---> Package python26-botocore.noarch 0:1.3.1-1.38.amzn1 will be updated
---> Package python26-botocore.noarch 0:1.3.11-1.40.amzn1 will be an update
---> Package python26-devel.x86_64 0:2.6.9-1.80.amzn1 will be updated
---> Package python26-devel.x86_64 0:2.6.9-2.83.amzn1 will be an update
---> Package python26-libs.x86_64 0:2.6.9-1.80.amzn1 will be updated
---> Package python26-libs.x86_64 0:2.6.9-2.83.amzn1 will be an update
---> Package python26-ordereddict.noarch 0:1.1-2.5.amzn1 will be obsoleted
--> Processing Dependency: python26-ordereddict = 1.1 for package: python26-bcdoc-0.16.0-1.9.amzn1.noarch
---> Package python26-pygments.noarch 0:1.4-4.11.amzn1 will be updated
---> Package python26-pygments.noarch 0:1.4-4.12.amzn1 will be an update
--> Finished Dependency Resolution
Error: Package: python26-bcdoc-0.16.0-1.9.amzn1.noarch (@amzn-updates)
Requires: python26-ordereddict = 1.1
Removing: python26-ordereddict-1.1-2.5.amzn1.noarch (@amzn-main)
python26-ordereddict = 1.1-2.5.amzn1
Obsoleted By: python26-2.6.9-2.83.amzn1.x86_64 (amzn-updates)
python26-ordereddict = 1.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
答案1
同样的问题——除了通知亚马逊他们的一个包裹损坏了之外,目前唯一的办法就是等待。
通过“等待”,如果您需要过去 24 小时内更新的其他软件包,您可以运行其他更新(--skip-broken),或者您可以等待软件包修复后再更新最近更新的所有内容。
就我而言,运行 --skip-broken 没有导致任何其他问题,但是我在服务器上 AWS CLI 之外对 python 的使用非常有限,并且即使其他包正在更新,该包的现有工作版本仍然很好。