|
发表于 2005-3-6 09:35:10
|
显示全部楼层
[quote:6fa4c1131a="gugong"][quote:6fa4c1131a="hotelbbs"][root@localhost software]# rpm --rebuilddb eva-0.2.0.20050301-2mgc.src .rpm
error: db4 error(16) from dbenv->remove: 设备或资源忙
看来是db4的包不全????[/quote]
错误。[/code][/quote]
我补充一下,答案在这里 (偶也不懂啦,其实在 google 里搜索词条 error: db4 error(16) from dbenv->remove 而得到的)
> Hi !
>
> After rpm --rebuilddb i have the following error:
> db4 error(16) from dbenv->remove: Device or resource busy
This is okay, can be ignored, and is not really a problem. This is a
FAQ that's been covered many times on this list before.
> I cant even remove/install packeges because, rpm -e command hangs ...
>
> I have found several solutions to my problem (google, news, redhat
> forums, bugzilla etc.):
> 1. rm /var/lib/__* && rpm --rebuilddb
> 2. rm -f /var/lib/rpm/* && rpm --initdb
> 3. rm -f /var/lib/rpm/* (without Packages file) && rpm --initdb
> 4. reinstall system - which ofcourse i want to omit
All of those rm commands are wrong! The files you're supposed to remove
are /var/lib/rpm/__db.* Don't remove the other stuff in /var/lib/rpm or
you will delete your database.
You don't need to run rpm --rebuilddb after removing the __db.* files.
You will need to "kill -9" any hung RPM processes before removing the
files, however.
Hope this helps,
Jeremy
有关 rpm 包的问题,可以在下边的归档里搜索,大多数问题都可以解决的。
http://www.redhat.com/archives/rpm-list/ |
|