Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 10:55 AM.
Reason: additional info
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.
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.
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 03:12 PM.
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.
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...
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.