red hat linux內核升級後rpm的問題
進入編譯好的內核後,與RPM相關的命令有些不能使用,並出現下列錯誤:
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
no packages
解決方法:是執行"export LD_ASSUME_KERNEL =2.2.25"或"export LD_ASSUME_KERNEL =2.2.25"命令,也可以將其寫入/etc/bashrc.