云服務器在執行yum -y update更新軟件包的時候出現錯誤: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源.
進入yum源配置目錄
cd /etc/yum.repos.d
備份系統自帶的yum源
mv centos-Base.repo CentOS-Base.repo.bk
更新玩yum源后,執行下邊命令更新yum配置,使操作立即生效
yum makecache