Chinaunix首页 | 论坛 | 博客
  • 博客访问: 588729
  • 博文数量: 169
  • 博客积分: 2656
  • 博客等级: 少校
  • 技术积分: 1685
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-30 13:03
文章分类

全部博文(169)

文章存档

2011年(1)

2010年(135)

2009年(33)

我的朋友

分类: 嵌入式

2010-07-23 10:56:46

rpmdb: fatal region error detected; run recovery
I got an odd error today when trying to upgrade webmin on one of our web servers. When rpm ran we got a pile of errors including the message "rpmdb: fatal region error detected; run recovery" .

Running rpm --rebuilddb produced the same error.

Anyway after much screwing around and useless searches in linux mail lists I found a liitle gem on the page "Repair a RPM database safely" on the site.

Basically it says:-
"hangs" in select are usually stale locks. Fix by doing

cd /var/lib/rpm
rm -f /var/lib/rpm/__db*

Turns out rpm --rebuilddb was failing due to an old lock file.


 

阅读(1143) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~