LinuxQuestions.org
Visit Jeremy's Blog.
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 05-22-2009, 03:25 PM   #1
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Rep: Reputation: 15
Add/Remove software has an Internal Error...Help!


Hi all experienced Linux users please can you help someone who is just starting out on the road that is Linux.
I have installed Fedora 10 to my system after getting over the first hurdle which was finding a system that would drive my ancient Voodoo3 3dfx grahics card, a quick look at the hyperweb helped me there....However now i am stuck, I am trying to add some software via the add/remove updater and i get a warning telling me of an internal error. What do i do now to fix this, i have posted the code below, would appreciate any help that can be given.

Error Type: <type 'exceptions.TypeError'>
Error Value: rpmdb open failed
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2316, in <module>
main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2312, in main
backend = PackageKitYumBackend('', lock=True)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 182, in __init__
self.yumbase = PackageKitYumBase(self)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2255, in __init__
self.repos.confirm_func = self._repo_gpg_confirm
File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 589, in <lambda>
repos = property(fget=lambda self: self._getRepos(),
File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 395, in _getRepos
self._getConfig() # touch the config class first
File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File : /usr/lib/python2.5/site-packages/yum/config.py, line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File : /usr/lib/python2.5/site-packages/yum/config.py, line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
 
Old 05-22-2009, 05:10 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
what happens when you type it , and do not use the gui ( packagekit)
Code:
su -
yum update
also can you post the output of this
Code:
su 
yum repolist
 
Old 05-22-2009, 05:27 PM   #3
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Original Poster
Rep: Reputation: 15
Wink

Ok, I have run those 2 lines in terminal and this is what I got, thanks for helping btw, this i much appreciated


Quote:
Originally Posted by John VV View Post
what happens when you type it , and do not use the gui ( packagekit)
Code:
su -
yum update
Loaded plugins: refresh-packagekit
You need to be root to perform this command.




also can you post the output of this
Code:
su 
yum repolist
Loaded plugins: refresh-packagekit
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated enabled: 17
fedora Fedora 10 - i386 enabled: 11,416
updates Fedora 10 - i386 - Updates enabled: 5,344
repolist: 16,777
 
Old 05-22-2009, 05:32 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
" su - " MAKES YOU ROOT
step 1
type in
su ( then a space ) -
step2
type in your root password
step 3
type in
" yum update"
Code:
su -
( your root password when asked ) 
yum update
 
Old 05-22-2009, 05:39 PM   #5
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Original Poster
Rep: Reputation: 15
Code:
su -
( your root password when asked ) 
yum update
Loaded plugins: refresh-packagekit
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
 
Old 05-22-2009, 06:13 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
it is the rpm database then try this
Code:
su -
yum clean all 
rpm --rebuilddb 
yum update
 
Old 05-22-2009, 06:24 PM   #7
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Original Poster
Rep: Reputation: 15
Code:
su -
yum clean all 
rpm --rebuilddb 
yum update
[/QUOTE]

After entering the code in the steps shown above this is what terminal came out with at each step.

[root@gothichost ~]# yum clean all
Loaded plugins: refresh-packagekit
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
[root@gothichost ~]# rpm --rebuilddb
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
[root@gothichost ~]# yum update
Loaded plugins: refresh-packagekit
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
 
Old 05-22-2009, 08:24 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
let's see if deleting the database first will knock some since into it
Code:
su -
rm -f /var/lib/rpm/__db*
then see if the db will build
Code:
su -
rpm --rebuilddb
if that dose not work you will need to reinstall the rpm rpm file
the base install with NO UPDATES
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/releases/10/Everything/i386/os/Packages/rpm-4.6.0-0.rc1.7.i386.rpm
- all the files --
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/releases/10/Everything/i386/os/Packages/
---------------
-- IF YOU ARE UP TO DATE then use this one
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/10/i386/rpm-4.6.0-0.rc1.8.i386.rpm
-- all the files --
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/10/i386

download and double click on it and fallow the instructions
this IS NOT the normal way and not the best . but should work
also you might also need
"rpm-libs" and "rpm-python" just look for them from one of the two above links
 
Old 05-23-2009, 07:06 AM   #9
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
let's see if deleting the database first will knock some since into it
Code:
su -
rm -f /var/lib/rpm/__db*
then see if the db will build
Code:
su -
rpm --rebuilddb
if that dose not work you will need to reinstall the rpm rpm file
the base install with NO UPDATES
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/releases/10/Everything/i386/os/Packages/rpm-4.6.0-0.rc1.7.i386.rpm
- all the files --
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/releases/10/Everything/i386/os/Packages/
---------------
-- IF YOU ARE UP TO DATE then use this one
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/10/i386/rpm-4.6.0-0.rc1.8.i386.rpm
-- all the files --
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/10/i386

download and double click on it and fallow the instructions
this IS NOT the normal way and not the best . but should work
also you might also need
"rpm-libs" and "rpm-python" just look for them from one of the two above links
OK, I ran both of the commands in root firstly i ran the rm -f /var/lib/rpm/__db* after much deliberation nothing really happened, so i tried it again and nothing.
I then moved onto rpm --rebuilddb entered it into terminal, there was a lot of indocation that it caused something in the harddrive, but again nothing appeared on screen i went back to the initial root command.

Next I ran the file paths assuming an uptodate, i went to all files as it wouldn't do it at all from the link
h??p://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/10/i386/rpm-4.6.0-0.rc1.8.i386.rpm

I found all files: rpm-4.6.0-0.rc1.8.i386.rpm and rpm-libs-4.6.0-0.rc1.8.i386.rpm and rpm-python-4.6.0-0.rc1.8.i386.rpm and downloaded each one in turn to home folder.
I then went to each packets and double clicked and followed the instructions and then a box appeared that said:

LOCAL INSTALL FAILED
in the more detaisl this text was displayed
Can't install /home/gothic/rpm-4.6.0-0.rc1.8.i386.rpm as no transaction

Where do I go from here, now??????
 
Old 05-23-2009, 08:49 AM   #10
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by froginlinux View Post
Code:
su -
yum clean all 
rpm --rebuilddb 
yum update
After entering the code in the steps shown above this is what terminal came out with at each step.

[root@gothichost ~]# yum clean all
Loaded plugins: refresh-packagekit
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
[root@gothichost ~]# rpm --rebuilddb
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
[root@gothichost ~]# yum update
Loaded plugins: refresh-packagekit
rpmdb: Thread/process 2700/3086792384 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed[/QUOTE]

OK I thought Its a new day, i'm not getting anywhere,lets go back to that first command line and re-run it, so I did and this is what happened....
Code:
[gothic@gothichost ~]$ su -
Password: 
[root@gothichost ~]# yum clean all
Loaded plugins: refresh-packagekit
Cleaning up Everything
[root@gothichost ~]# rpm --rebuilddb
[root@gothichost ~]# yum update
Loaded plugins: refresh-packagekit
fedora                                                   | 2.8 kB     00:00     
fedora/primary_db                                        | 6.6 MB     00:19     
adobe-linux-i386                                         |  951 B     00:00     
adobe-linux-i386/primary                                 |  11 kB     00:00     
adobe-linux-i386                                                          17/17
updates                                                  | 3.0 kB     00:00     
updates/primary_db                                       | 3.6 MB     00:09     
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package cairomm.i386 0:1.8.0-1.fc10 set to be updated
---> Package policycoreutils.i386 0:2.0.57-21.fc10 set to be updated
---> Package policycoreutils-gui.i386 0:2.0.57-21.fc10 set to be updated
---> Package ypbind.i386 3:1.20.4-11.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch      Version                  Repository    Size
================================================================================
Updating:
 cairomm                  i386      1.8.0-1.fc10             updates       61 k
 policycoreutils          i386      2.0.57-21.fc10           updates      1.1 M
 policycoreutils-gui      i386      2.0.57-21.fc10           updates      192 k
 ypbind                   i386      3:1.20.4-11.fc10         updates       42 k

Transaction Summary
================================================================================
Install      0 Package(s)         
Update       4 Package(s)         
Remove       0 Package(s)         

Total download size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): ypbind-1.20.4-11.fc10.i386.rpm                    |  42 kB     00:00     
(2/4): cairomm-1.8.0-1.fc10.i386.rpm                     |  61 kB     00:00     
(3/4): policycoreutils-gui-2.0.57-21.fc10.i386.rpm       | 192 kB     00:00     
(4/4): policycoreutils-2.0.57-21.fc10.i386.rpm           | 1.1 MB     00:01     
--------------------------------------------------------------------------------
Total                                           317 kB/s | 1.4 MB     00:04     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : cairomm                                                  1/8 
  Updating       : policycoreutils                                          2/8 
  Updating       : ypbind                                                   3/8 
  Updating       : policycoreutils-gui                                      4/8 
  Cleanup        : ypbind                                                   5/8 
  Cleanup        : policycoreutils-gui                                      6/8 
  Cleanup        : policycoreutils                                          7/8 
  Cleanup        : cairomm                                                  8/8 

Updated:
  cairomm.i386 0:1.8.0-1.fc10                                                   
  policycoreutils.i386 0:2.0.57-21.fc10                                         
  policycoreutils-gui.i386 0:2.0.57-21.fc10                                     
  ypbind.i386 3:1.20.4-11.fc10                                                  

Complete!
[root@gothichost ~]#

So what should i do now, because this seems a more positive step forward...should I carry on running the next commands in the next posts!!!???
 
Old 05-23-2009, 09:05 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
That's all good now. You need to know that with *nix cmds, as a general rule you don't get any confirmation if everything went ok. You do if an error occurred.
If it does need to tell you anything it will, see the last set of output you got.
If you really want to double check a cmd, immediately after running it, run the cmd

echo $?

should return 0 (zero) if ok.
See any bash programming tutorial. You may find this worth bookmarking:
http://rute.2038bug.com/index.html.gz
 
Old 05-24-2009, 07:17 PM   #12
froginlinux
LQ Newbie
 
Registered: May 2009
Location: Rock Ferry, Wirral, UK
Distribution: Ubuntu 8.10 'Intrepid Ibex' / Puppy Linux 4.2
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
That's all good now. You need to know that with *nix cmds, as a general rule you don't get any confirmation if everything went ok. You do if an error occurred.
If it does need to tell you anything it will, see the last set of output you got.
If you really want to double check a cmd, immediately after running it, run the cmd

echo $?

should return 0 (zero) if ok.
See any bash programming tutorial. You may find this worth bookmarking:
http://rute.2038bug.com/index.html.gz
Thank you for all your help, its much appreciated.The ease that sorting this issue out has increasedd my liking for linuxin its many guise's.
Now to explore if I can get my voodoo3 3dfx graphics card working in ubuntu without displaying as 800x600 or even worse 640x480....
Thanks agin, rob
 
  


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
Add/Remove Software error linuxisfree Fedora 9 12-21-2008 03:56 AM
error while opening add/ remove software devmohan786 Linux - Software 3 07-22-2008 03:50 PM
Error in accessing add/remove software and YUM rohit83.ken Linux - Software 1 03-20-2008 08:40 AM
Add/remove software link shows error in fedora 8 anuprch Linux - Newbie 4 12-21-2007 04:06 AM
Add/remove software error 24giovanni Linux - General 2 10-24-2006 06:52 PM


All times are GMT -5. The time now is 08:56 AM.

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