LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Add/Remove software has an Internal Error...Help! (https://www.linuxquestions.org/questions/linux-newbie-8/add-remove-software-has-an-internal-error-help-727853/)

froginlinux 05-22-2009 02:25 PM

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)

John VV 05-22-2009 04:10 PM

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


froginlinux 05-22-2009 04:27 PM

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 (Post 3549721)
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

John VV 05-22-2009 04:32 PM

" 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


froginlinux 05-22-2009 04:39 PM

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

John VV 05-22-2009 05:13 PM

it is the rpm database then try this
Code:

su -
yum clean all
rpm --rebuilddb
yum update


froginlinux 05-22-2009 05:24 PM

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

John VV 05-22-2009 07:24 PM

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

froginlinux 05-23-2009 06:06 AM

Quote:

Originally Posted by John VV (Post 3549821)
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??????

froginlinux 05-23-2009 07:49 AM

Quote:

Originally Posted by froginlinux (Post 3549767)
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!!!???

chrism01 05-23-2009 08:05 PM

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

froginlinux 05-24-2009 06:17 PM

Quote:

Originally Posted by chrism01 (Post 3550653)
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


All times are GMT -5. The time now is 03:50 AM.