{"id":64,"date":"2009-09-22T16:53:10","date_gmt":"2009-09-22T20:53:10","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=64"},"modified":"2013-03-20T08:39:38","modified_gmt":"2013-03-20T12:39:38","slug":"rpmdb-unable-to-join-the-environment","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/rpmdb-unable-to-join-the-environment","title":{"rendered":"rpmdb: unable to join the environment"},"content":{"rendered":"<p>If your rpm database gets corrupt, you receive the following message on working on packages using rpm:<\/p>\n<blockquote><p><strong>rpmdb: unable to join the environment<br \/>\nrpmdb: write: 0xbf91a7d0, 8192: Invalid argument<br \/>\nerror: db4 error(22) from dbenv->open: Invalid argument<br \/>\nerror: cannot open Packages index<\/strong><\/p><\/blockquote>\n<p>You can try out any of the following two solutions:<br \/>\n1.<br \/>\n<strong>rm -f \/var\/lib\/rpm\/__db*<br \/>\nrpm &#8211;rebuilddb<\/strong><\/p>\n<p>OR<\/p>\n<p>2. you need to add the following &#8216;export&#8217; line in \/etc\/profile file and rebuild the database.<br \/>\n<strong>export LD_ASSUME_KERNEL=2.2.5       (2.2.5 is the base kernel)<br \/>\nrpm &#8211;rebuilddb<\/strong><\/p>\n<p>With the second solution, the changes will take effect on the next session.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your rpm database gets corrupt, you receive the following message on working on packages using rpm:<br \/>\nrpmdb: unable to join the environment<br \/>\nrpmdb: write: 0xbf91a7d0, 8192: Invalid argument<br \/>\nerror: db4 error(22) from dbenv->open: Invalid argument<br \/>\nerror: cannot open Packages index<br \/>\nYou can try out any of the following two solutions:<br \/>\n1.<br \/>\nrm -f \/var\/lib\/rpm\/__db*<br \/>\nrpm &#8211;rebuilddb<br \/>\nOR<br \/>\n2. you need to add the following &#8216;export&#8217; line in \/etc\/profile file and rebuild the database.<br \/>\nexport LD_ASSUME_KERNEL=2.2.5       (2.2.5 is the base kernel)<br \/>\nrpm &#8211;rebuilddb<br \/>\nWith the second solution, the changes will take effect on the next [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[78,79,80,77],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/64"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":2,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":2108,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions\/2108"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}