云服務(wù)器在執(zhí)行yum -y update更新軟件包的時候出現(xiàn)錯誤:you could try using --skip-broken to work around the problem|You could try running: rpm -Va --nofiles --nodigest
解決方法如下:
yum clean all
rpm --rebuilddb
yum update
如果以上不行那么嘗試更換yum源.
進(jìn)入yum源配置目錄
cd /etc/yum.repos.d
備份系統(tǒng)自帶的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
更新玩yum源后,執(zhí)行下邊命令更新yum配置,使操作立即生效
yum makecache