Re: [OM Cooker] Bad rpm database

Chris Tanner <[email protected]> Tue, 8 Oct 2013 11:02:45 -0400
Newsgroups gmane.linux.mandrake.cooker.devel
Message-ID <BLU0-SMTP83CEF34C56DADDD23E56D8EA1C0__10027.4659730077$1381244880$gmane$org@phx.gbl>
--------------080809060808000205050303
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

Thanks.

Chris

On 08/10/13 10:06=2C Per =D8yvind Karlsen wrote:
> You might wanna take a look at /usr/lib/rpm/bin/rpmdbchk as well. :)
>
> --
> Regards=2C
> Per =D8yvind
>
>
> 2013/10/8 Chris Tanner <[email protected]=20
> <mailto:[email protected]>>
>
>     Hello=2C
>
>     I had a power failure while installing packages and now I get the
>     following from 'rpm' when I try to install a package:
>
>     rpmdb: BDB2506 file /var/lib/rpm/Packages has LSN 30/4527913=2C past
>     end of log at 30/4280504
>     rpmdb: BDB2507 Commonly caused by moving a database from one
>     database environment
>     rpmdb: BDB2508 to another without clearing the database LSNs=2C or
>     by removing all of
>     rpmdb: BDB2509 the log files from a database environment
>     rpmdb: BDB0641 __db_meta_setup: /var/lib/rpm/Packages: unexpected
>     file type or format
>     error: cannot open Packages(0) index: Invalid argument(22)
>             DB: Berkeley DB 5.2.42: (February 29=2C 2012)
>     error: cannot open Packages database in /var/lib/rpm
>
>
>     Is there anything that I can do to fix the problem.
>
>     Chris
>
>


--------------080809060808000205050303
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks.<br>
      <br>
      Chris<br>
      <br>
      On 08/10/13 10:06, Per &Oslash;yvind Karlsen wrote:<br>
    </div>
    <blockquote
cite="mid:CA+0WU1Si+v8d8=EFuViBZMEgE4YSyN73zQHx1HcEQCQmOcrVDQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>You might wanna take a look at /usr/lib/rpm/bin/rpmdbchk as
          well. :)<br>
          <br>
          --<br>
        </div>
        Regards,<br>
        Per &Oslash;yvind<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/10/8 Chris Tanner <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:[email protected]"
              target="_blank">[email protected]</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
            <br>
            I had a power failure while installing packages and now I
            get the following from 'rpm' when I try to install a
            package:<br>
            <br>
            rpmdb: BDB2506 file /var/lib/rpm/Packages has LSN
            30/4527913, past end of log at 30/4280504<br>
            rpmdb: BDB2507 Commonly caused by moving a database from one
            database environment<br>
            rpmdb: BDB2508 to another without clearing the database
            LSNs, or by removing all of<br>
            rpmdb: BDB2509 the log files from a database environment<br>
            rpmdb: BDB0641 __db_meta_setup: /var/lib/rpm/Packages:
            unexpected file type or format<br>
            error: cannot open Packages(0) index: Invalid argument(22)<br>
            &nbsp; &nbsp; &nbsp; &nbsp; DB: Berkeley DB 5.2.42: (February 29, 2012)<br>
            error: cannot open Packages database in /var/lib/rpm<br>
            <br>
            <br>
            Is there anything that I can do to fix the problem.<span
              class="HOEnZb"><font color="#888888"><br>
                <br>
                Chris<br>
                <br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------080809060808000205050303--