由于 mssql-tools/msodbcsql17 冲突,CentOS 7 上的 Yum 更新失败

Yum Updates Failed on CentOS 7 Due To mssql-tools/msodbcsql17 Conflict

当我尝试 运行 在我的 CentOS 7 VM 上进行 yum 更新时,进程中止并显示以下信息:

--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-693.el7 will be erased
---> Package msodbcsql17.x86_64 0:17.2.0.1-1 will be updated
--> Processing Dependency: msodbcsql17 < 17.3.0.0 for package: mssql-tools-17.2.0.2-1.x86_64
--> Finished Dependency Resolution
Error: Package: mssql-tools-17.2.0.2-1.x86_64 (@packages-microsoft-com-prod)
           Requires: msodbcsql17 < 17.3.0.0
           Removing: msodbcsql17-17.2.0.1-1.x86_64 (@packages-microsoft-com-prod)
               msodbcsql17 = 17.2.0.1-1
           Updated By: msodbcsql17-17.3.1.1-1.x86_64 (packages-microsoft-com-prod)
               msodbcsql17 = 17.3.1.1-1
           Available: msodbcsql17-17.0.1.1-1.x86_64 (packages-microsoft-com-prod)
               msodbcsql17 = 17.0.1.1-1
           Available: msodbcsql17-17.1.0.1-1.x86_64 (packages-microsoft-com-prod)
               msodbcsql17 = 17.1.0.1-1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

如何在不跳过错误的情况下正确解决这个问题?提前致谢。

可能只是 MS 存储库不同步的短期问题。 定期 运行: yum clean all 然后再次尝试更新。

我用以前的版本修复了它

sudo ACCEPT_EULA=Y yum install msodbcsql17-17.2.0.1-1.x86_64 mssql-tools -y

回购现在已正确同步。可以再次正常安装或更新。