[Th]error: cannot open Packages(0) index: Invalid argument(22) - da się to naprawić?

Mateusz Korniak mateusz-lists w ant.gliwice.pl
Wto, 4 Gru 2012, 13:16:47 CET


Jakieś sugestie jak naprawić poniższy problem?

Po instalacji pakietow gdy zabrakło miejsca na / zostałem z:

[root w laptop-hp rpm]# rpm -q  rpm
rpmdb: BDB2506 file /var/lib/rpm/Packages has LSN 10/7040634, past end of log 
at 1/64
rpmdb: BDB2507 Commonly caused by moving a database from one database 
environment
rpmdb: BDB2508 to another without clearing the database LSNs, or by removing 
all of
rpmdb: BDB2509 the log files from a database environment
error: cannot open Packages(0) index: Invalid argument(22)
        DB: Berkeley DB 5.3.21: (May 11, 2012)
error: cannot open Packages database in /var/lib/rpm
package rpm is not installed

[root w laptop-hp rpm]# ls
Arch       Conflictname  Dirnames     Filemd5s   Group       Name  
Obsoletename  Packagecolor  Providename     Pubkeys  Requirename     Seqno       
Sigmd5       Triggername  log
Basenames  DB_CONFIG     Filedigests  Filepaths  Installtid  Nvra  Os            
Packages      Provideversion  Release  Requireversion  Sha1header  Sourcepkgid  
Version      tmp

[root w laptop-hp rpm]# rpm --rebuilddb -v -v
D: pool fd:     created size 212 limit -1 flags 0
D: pool iob:    created size 24 limit -1 flags 0
D: pool mire:   created size 88 limit -1 flags 0
D: pool lua:    created size 36 limit -1 flags 0
D: pool ts:     created size 724 limit -1 flags 0
D: pool db:     created size 188 limit -1 flags 0
D: pool dbi:    created size 312 limit -1 flags 0
D: rpmdb: cpus 1 physmem 4294967295Mb
D: opening  db environment /var/lib/rpm/Packages thread:lock:log:mpool:txn
D: opening  db index       /var/lib/rpm/Packages create:thread:auto_commit 
mode=0x2
rpmdb: BDB2506 file /var/lib/rpm/Packages has LSN 10/7040634, past end of log 
at 1/64
rpmdb: BDB2507 Commonly caused by moving a database from one database 
environment
rpmdb: BDB2508 to another without clearing the database LSNs, or by removing 
all of
rpmdb: BDB2509 the log files from a database environment
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
error: cannot open Packages(0) index: Invalid argument(22)
        DB: Berkeley DB 5.3.21: (May 11, 2012)
error: cannot open Packages database in /var/lib/rpm
D: pool tsi:    created size 28 limit -1 flags 0
D: pool tsi:    reused 1, alloc'd 1, free'd 1 items.
D: pool ts:     reused 0, alloc'd 1, free'd 1 items.
D: pool db:     reused 0, alloc'd 1, free'd 1 items.
D: pool dbi:    reused 0, alloc'd 1, free'd 1 items.
D: pool lua:    reused 0, alloc'd 1, free'd 1 items.
D: pool mire:   reused 0, alloc'd 1, free'd 1 items.
D: pool iob:    reused 0, alloc'd 1, free'd 1 items.
D: pool fd:     reused 20, alloc'd 2, free'd 2 items.
D: exit code: -2



-- 
Mateusz Korniak


Więcej informacji o liście pld-users-pl