“软件包与预期下载不匹配"运行yum更新时出错 [英] "Package does not match intended download" error when running yum update
问题描述
我已经运行了yum更新并出现以下错误:
I've run a yum update and get the below error:
Downloading packages:
scx-1.6.4-7.universal.x64.rpm FAILED
https://packages.microsoft.com/rhel/7/prod/scx-1.6.4-7.universal.x64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=packages-microsoft-com-prod clean metadata
Trying other mirror.
Error downloading packages:
scx-1.6.4-7.x86_64: [Errno 256] No more mirrors to try.
我尝试运行建议的命令,但此后再次运行yum update时,它没有任何作用.
I tried running the suggested command but it made no difference when I ran yum update again afterwards.
推荐答案
我刚刚遇到了相同的问题.看起来微软在该仓库上弄糟了一些东西,我相信他们最终会解决它.它会不时在各种存储库上发生.
I've just encountered the same issue. Looks like Microsoft goofed something on that repo, I'm sure they'll eventually fix it. It happens from time to time on various repos.
要在不包括Microsoft的情况下进行其余更新,请尝试以下操作:
To do the rest of the updates while excluding the Microsoft ones, try this:
yum clean all
yum clean metadata
yum makecache
yum update --disablerepo=packages-microsoft-com-prod
注意:在您的情况下,前三行可能不是必需的,但是如果您有一段时间没有进行更新,它确实可以为您提供一个清晰的起点.
Note: The first 3 lines might not be necessary in your situation, however it does give a clean start point if you haven't done updates for a while.
这篇关于“软件包与预期下载不匹配"运行yum更新时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!