当我尝试在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
如何正确解决此问题,而不仅仅是跳过错误?预先感谢。
答案 0 :(得分:1)
可能只是短期问题,MS存储库不同步。
定期运行:
yum clean all
然后再次尝试更新。
答案 1 :(得分:1)
回购现在已正确同步。再次可以正常安装或更新。
答案 2 :(得分:0)
我使用以前的版本对其进行了修复
sudo ACCEPT_EULA=Y yum install msodbcsql17-17.2.0.1-1.x86_64 mssql-tools -y