After yum update source client-side caching problem

After yum update source client-side caching problem

  1. An error

    '<http://mirrors.vip.blibee.com/blibee/repodata/d47db731d3a446245a67a0637b2a2e1acf3f3dd08ffb2b19f5d5aefcddd94071-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found>'

The reason is that before I added the update package yum yum source metadata to a source, the client or cache

yum clean all  #这个命令也不行

Solution

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

We need to wait for a while

Guess you like

Origin www.cnblogs.com/yanghehe/p/12308277.html