LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-15-2009, 11:45 AM   #1
harris4got
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Rep: Reputation: 0
yum & rpm showing errors


Hello

I use a fedora 8 system. I had tried upgrading it to 10 before sometime. But some errors prevented me from doing so. Then onwards yum or rpm wouldnt install new softwares.Here is the error for yum update

Code:
# yum update
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 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 178, in getOptionsConfig
    pc = self.preconf
AttributeError: 'YumBaseCli' object has no attribute 'preconf'
And the error for rpm:

Code:
rpm -ivh python-mutagen-1.9-1.fc8.rf.noarch.rpm 
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30975) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30975)
error: cannot open Packages database in /var/lib/rpm
warning: python-mutagen-1.9-1.fc8.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 1aa78495
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30975) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
so i delete the db & rebuild it

Code:
# rm /var/lib/rpm/__db*
rm: remove regular empty file `/var/lib/rpm/__db.000'? y
rm: remove regular file `/var/lib/rpm/__db.001'? y
rm: remove regular file `/var/lib/rpm/__db.002'? y
rm: remove regular file `/var/lib/rpm/__db.003'? y
rm: remove regular file `/var/lib/rpm/__db.004'? y

# rpm -v --rebuilddb

# yum clean all 
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 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 178, in getOptionsConfig
    pc = self.preconf
AttributeError: 'YumBaseCli' object has no attribute 'preconf'
Again the same error with yum.
Any help is appreciated.

Last edited by harris4got; 10-15-2009 at 11:55 AM. Reason: additional info
 
Old 10-15-2009, 12:01 PM   #2
favoretti
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
Can you do "grep -r preconf /etc/yum*" and see if there are any lines containing "preconf" in the configuration?
If there's one, either paste it here, or try commenting out.
 
Old 10-15-2009, 12:14 PM   #3
harris4got
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
grep -r preconf /etc/yum* shows nothing..

Last edited by harris4got; 10-15-2009 at 01:20 PM.
 
Old 10-15-2009, 02:32 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,285

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
The 'yum' "python".py files looked for are in
/usr/share/yum-cli/
and
/usr/lib/python2.5/site-packages/yum/

But you may be out of luck using yum, as Fedora 8
was obsoleted January 2009.
May be by changing the repo link to "the old archive" :
e.g. i386
http://archives.fedoraproject.org/pu...thing/i386/os/
.....
 
Old 10-15-2009, 03:37 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
If you tried updating it to F10 via yum, that is the source of the issue. Fedora does(always has and probably always will) only officially support doing a clean install for upgrades.
 
Old 10-15-2009, 03:57 PM   #6
harris4got
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
The problem it seems is not with the repositories, even yum -v gives the same error

# yum -v
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 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 178, in getOptionsConfig
pc = self.preconf
AttributeError: 'YumBaseCli' object has no attribute 'preconf'

Cant understand what is causing the problem.

Last edited by harris4got; 10-15-2009 at 04:12 PM.
 
Old 10-15-2009, 05:17 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
The problem is not JUST the repos. When you attempted to upgraded you wound up with a mix of F8 and F10 packages. The vast majority of these packages are not compatible.
 
Old 10-15-2009, 08:57 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Lazlow is correct; give it up. Backup any data/cfgs you can't live without and do a fresh install (F10).
If /home is on a separate partition, you can preserve that during the install, but take a backup just in case.
If you want a stable long term RH style OS, switch to Centos; I did.
Each Fedora only lasts 13 mths...
 
Old 10-15-2009, 11:59 PM   #9
harris4got
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks

Thank you all,but I thought there would be a way out of this without a fresh install. But thanks anyway.
 
Old 10-16-2009, 12:15 AM   #10
John VV
Guru
 
Registered: Aug 2005
Posts: 13,524

Rep: Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806
nope do a fresh install , and welcome to the fedora "mare-go-round "
sometimes a upgrade from one to the next works ( fedora 9 to 10 might ) but there were to many changes in 11 that a upgrade is not relay possible for 11

fresh install.
 
  


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
while yum updating the following errors are showing please help me to solve the probl cybionix Fedora 6 01-30-2009 04:30 AM
Rpm & Yum naziboy Linux - Software 5 10-05-2007 02:27 PM
YUM/RPM commands giving errors MontyPY Linux - Software 1 03-04-2005 09:10 AM
Yum & APT-Rpm Obie Linux - Security 8 08-06-2004 12:04 AM


All times are GMT -5. The time now is 11:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration