LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2008, 03:14 AM   #1
noobix_cube
LQ Newbie
 
Registered: Jul 2008
Distribution: pclinuxos
Posts: 2

Rep: Reputation: 0
Question synaptic didnt work, nor did apt tools on pclinuxos thinkpad t22


to all who can help,
i recently installed pclinuxos on an ol thinkpad t22 and decided to get some packages with synaptic. when it finished the download it said "E: something RPM database. then i tried using apt tools to search for the same packedge for re download. here is what it said in konsole:

[root@localhost ~]# search
bash: search: command not found
[root@localhost ~]# apt-cache search
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
E: could not open RPM database
[root@localhost ~]#

i was trying to get the app WINE. any help would be appreciated. i am still kind of new to linux so any other advice regarding packages would be of help.
 
Old 07-03-2008, 04:40 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
try to kill the process if its still running then type :
rm /var/lib/rpm/__*
rpm --rebuilddb
 
Old 07-03-2008, 05:01 AM   #3
noobix_cube
LQ Newbie
 
Registered: Jul 2008
Distribution: pclinuxos
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy

i tried what you said but i may have done it wrong. here is what i got:

[root@localhost ~]# rm /var/lib/rpm/__*
rm: remove regular file `/var/lib/rpm/__db.001'? rpm -rebuilddb
rm: remove regular file `/var/lib/rpm/__db.002'? y
rm: remove regular file `/var/lib/rpm/__db.003'? y
[root@localhost ~]# rpm -rebuilddb
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
[root@localhost ~]#

so did i really screw up? this jargon means nothing to me.
i tried research for this topic and did what the website said(http://www.rpm.org/hintskinks/repairdb/) and i got this:

[root@localhost ~]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.9128
D: creating directory /var/lib/rpmrebuilddb.9128
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages mpool:joinenv
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages index using db3 - (-30974)
D: removing directory /var/lib/rpmrebuilddb.9128
[root@localhost ~]#

now i got this in konsole after putting in the correct command
rpm -vv --rebuilddb

[root@localhost ~]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.3664
D: creating directory /var/lib/rpmrebuilddb.3664
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages mpool:joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.3664/Packages create:mpool:joinenv
D: opening db index /var/lib/rpmrebuilddb.3664/Packages create mode=0x42
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.3664/Packages
D: closed db environment /var/lib/rpmrebuilddb.3664/Packages
D: verified db index /var/lib/rpmrebuilddb.3664/Packages
D: removing directory /var/lib/rpmrebuilddb.3664
[root@localhost ~]#


so whats going on?
tried downloading something else in synaptic, it says something like apt ordering failed when it gets to the applying changes part.

Last edited by noobix_cube; 07-03-2008 at 06:36 AM. Reason: more tinkering
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM Thinkpad T22 cmanns Linux - Laptop and Netbook 7 11-22-2006 01:05 AM
Linux on thinkpad T22 ptawe Linux - Hardware 10 01-02-2006 11:11 PM
Thinkpad t22 video brooks1277 Mandriva 1 09-22-2005 08:10 PM
Debian on Thinkpad T22 lantern Debian 2 01-16-2005 10:49 PM
apt / synaptic doesn't work on new kernel tktim Fedora 2 09-12-2004 12:49 AM


All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration