yum两例错误的解决

错误一:

[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

解决方法:

[root@bbs ~]# yum clean all

[root@bbs ~]#  yum makecache

错误二:

error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

error: cannot open Packages index using db3 -  (-30974)

解决方法:

[root@lb01 ~]# cd /var/lib/rpm

[root@lb01 rpm]# for i in `ls | grep '__db.' `; do mv $i $i.bak ; done

[root@lb01 rpm]# rpm --rebuilddb

[root@lb01 rpm]# yum clean all



你可能感兴趣的:(yum)