LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 06-23-2009, 08:30 PM   #1
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Rep: Reputation: 17
Upgrade FC10 to FC11 failed: left yum/rpm unusable


Hi Folks.
I followed the on-screen pop-up to upgrade to FC11 on my 64bit Lenovo T61 notebook. After downloading and rebooting as instructed, FC11 install commenced. It failed while installing one of the libs. Black screen of death. Nothing. No disk activity for many minutes. On hard reboot, FC10 came back to life. Tried re-running 'preupgrade', but all yum and rpm related activity since has failed. Tracked down the instructions to:
Code:
#rm -f /var/lib/rpm/__db*
reboot
Code:
#rpm --updatedb
#yum update yum rpm
This is what I get:
Code:
# rpm --rebuilddb
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)
So:
1. FC10 still runs, but an unknown number of packages have been upgraded to their FC11 versions.
2. FC11 is lurking in there somewhere.
3. yum and rpm seem broken.

Any assistance would be gratefully received.
Cheers,
Doug
 
Old 06-23-2009, 08:57 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,374
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Welcome to LQ. Somebody correct me if I'm wrong but I've read somewhere on the Fedora site (sorry, can't remember where) that the RPM format slightly changed between F10 and F11 and that the only way to get from F10 to F11 was to make certain F10 was fully updated. Anyway. Do you have a backup? Can you try booting the F11 CDROM/DVD and see if rpm from F11 can read the rpm database on disk? Can you run 'db_verify /var/lib/rpm/Packages; echo $?'? And 'rpm -Vv'?
 
Old 06-23-2009, 09:02 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try a "yum clean all" as well, but I don't hold out a lot of hope I'm afraid.

I'd certainly try to backup /home and anything else of importance before proceeding.
 
Old 06-23-2009, 10:09 PM   #4
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
Thanks for the replies.

billymayday, "yum clean all" results in:
Code:
Loaded plugins: refresh-packagekit
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                                         
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 189, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 652, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 239, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 794, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 867, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
unSpawn, that rpm upgrade might be a clue. I have backed up the bits I want to keep from the disk (30 years developing software, but I still value the reminder ... ) and I have been keeping the system fully updated. Whether rpm has been updated/upgraded on my system recently I do not know. I did not specifically update it before starting the upgrade, just followed the prompt which popped up on my display. I do not have an FC11 dvd - I clicked on proceed when a prompt suggested I might like to update over the web. Always worked before (sigh).

If rpm has been updated for FC11, any idea where I might find it?

Also, can you point me to a DVD iso for the FC11 upgrade? The kernel which was trying to install is 2.6.29.4-167 x86_64.

Both these questions could no doubt be answered with suitable googling, but my system is now on life support and I don't want to overtax its abilities!

Thanks again
Doug
 
Old 06-23-2009, 10:16 PM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That cleaning message is instructive if nothing else.

I assume you are lookign for a Fedora download site?

Start here http://fedoraproject.org/en/get-fedora.

You can get the entire DVD, or the network install.
 
Old 06-23-2009, 10:50 PM   #6
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
billymayday, thanks for the link. As I write, I am now downloading the DVD iso via bittorrent.

I think my safest bet will be to get the DVD burned and do a full upgrade from it, rather than try to plug the leaks in my failed install.

Thanks for your help
Cheers,
Doug
 
Old 06-23-2009, 10:56 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I take it you mean a clean install?

Good luck.
 
Old 06-23-2009, 11:33 PM   #8
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
Quote:
I take it you mean a clean install?
If needed. First I will try to run an upgrade from the DVD, as the existing FC10 is still being recognised. If it all goes pear shaped, I will format and start from scratch.

Cheers,
Doug
 
Old 06-24-2009, 04:31 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,374
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Sounds like an OK approach to me. When you have burned the disk I'd appreciate it if you could boot it and post back if rpm from F11 can read the rpm database on disk, run 'db_verify /var/lib/rpm/Packages; echo $?' and 'rpm -Vv' so we have a clue if at least that part of the upgrades stuck or not.
 
Old 06-24-2009, 10:26 PM   #10
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
Yep - no problem. The dvd boot will give me a console to run this somewhere?
 
Old 06-25-2009, 05:46 AM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,374
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Thanks. Usually when you're into install mode (doesn't matter CLI or graphical) you've got about 4 to 6 consoles at your disposal (switch with ALT+CTRL+Fn where n is between 1 and 6) but I don't remember how early in the process they are brought up. To stay on the safe side of things booting it in rescue mode definately should get 'em.
 
Old 06-25-2009, 07:29 PM   #12
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
Right-ho. Download still has 4 hours to go, so I should have results for you in 5 or 6 hours, depending on stuff-up quotient. (I was going to bemoan the time it has taken to download 4Gb over a 256kb ADSL link, until I thought back to the good old days of dial-up. I remember when our office took delivery of its first 1200 baud duplex modem - wow, what advanced technology!)
 
Old 06-26-2009, 07:21 AM   #13
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
OK. Backed up, burned and booted. In rescue mode, db_verify does not exist. I guess it may be a symlink to db45_verify or db46_verify? Running either of those versions results in a complaint about a missing .so file, again presumably becasue we are in rescue mode not a 'real' system. Anyway, no go on that one. 'rpm -Vv' wants another argument, but it seems pointless to look at that if the db_verify does not work.

I am going to hold off upgrading or doing anything else until I hear from you, in case my half-baked system can be of further help. Perhaps when I have upgraded I could run the commands over my backup copies of the rpm stuff? Anyway, let me know if there is anything else I can do. I am not breaking my neck to finish the upgrade, so will be glad to help further if I can.

Cheers,
Doug
 
Old 06-26-2009, 08:19 PM   #14
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
UnSpawn: As always, circumstances change. I need to complete the upgrade a bit more urgently than I thought to be the case. I will start in 3 hours unless I have heard from you.
 
Old 06-27-2009, 12:53 AM   #15
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
The attempt to upgrade the half-baked system did not work - perhaps I pushed the wrong button. I now have FC11 running - looks good. Let me know if I can help by running FC11 tools over my backup of the half-bake!

Now to find where my Firefox bookmarks and Evolution mail archives have gone ... !
 
  


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
FC11 no sound at all - works in Windows and FC10 - kerneloops - SBLive 5.1 rylan76 Linux - Software 3 09-13-2009 05:08 PM
FC11 - install OOffice off FC10 DVD? rylan76 Fedora 2 06-15-2009 04:42 AM
Bricked FC11 Upgrade neoform Fedora 3 06-11-2009 12:11 PM
How does yum (or rpm or other pm) update/upgrade in use packages engineman Linux - Software 2 09-26-2007 12:06 PM
Yum, up2date, httpd, & samba failed after upgrade from FC2 ->FC3 k41184 Fedora 5 02-14-2005 01:35 PM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
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