yum源更新以后客戶端緩存問題
-
報錯
'<http://mirrors.vip.blibee.com/blibee/repodata/d47db731d3a446245a67a0637b2a2e1acf3f3dd08ffb2b19f5d5aefcddd94071-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found>'
原因是我之前向yum源中新增了包更新了yum源元數據,客戶端還是緩存
yum clean all #這個命令也不行
解決辦法
cd /etc/yum.repos.d/ && rm -rf ambari.repo HDP.repo HDP-UTILS.repo
yum clean all
rm -rf /var/cache/yum
echo "httpcache=none">>/etc/yum.conf
rpm --rebuilddb
rpm --rebuilddb
rpm --rebuilddb
rpm --rebuilddb
yum clean all
yum makecache
salt-call state.sls CENTOS.7.telegraf.hardware-report
需要等一會
