从 centos6 转来 7 ,准备 yum update 时报错 No Presto metadata available for base
Google 之,大意是我的 vps 上前端有 proxy ,在/etc/yum.conf
内增加了http_caching=packages
,同时尝试yum --enablerepo=base clean metadata
,未果
重启后再次 yum,发现报错:
error: rpmdb: BDB0113 Thread/process 3698/140159826708288 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main:
WTF.....是什么原因导致的? 感谢
1
notgod 2016-06-19 00:35:51 +08:00 1
rm -f /var/lib/rpm/__*
rpm --rebuilddb -v -v DB 有损 重建下 OK |
2
notgod 2016-06-19 00:36:23 +08:00 1
yum clean dbcache
yum clean metadata yum clean rpmdb yum clean headers yum clean all rm -rf /var/cache/yum/timedhosts.txt rm -rf /var/cache/yum/* yum makecache |
3
Laynooor 2016-06-19 01:32:44 +08:00 via Android
搭车问. CentOS 7.
yum update 报错 reinstall 报错 package cleanup 报错 Google 了一晚上没有什么有用的解决方案.. |
4
Laynooor 2016-06-19 01:34:22 +08:00 via Android
repolist 之前有 epel ,现在只有自带的
|