日期:2014-05-16  浏览次数:20701 次

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。