Fedora Linux Support Community & Resources Center
  #1  
Old 7th December 2009, 11:38 AM
ttoth Offline
Registered User
 
Join Date: Dec 2009
Posts: 5
linuxfedorafirefox
Preupgrade F9 -> F12 fails with Parsing primary.xml error

Hi There,

I'm having some issues upgrading my F9 to F12 using 'preupgrade' so I'm looking for some help to see if there is anybody who has ever been able to complete a preupgrade from F9 x86_64 to F12.

The error message I receive is TypeError: Parsing primary.xml error: attributes construct error.

To my knowledge this has been reported as a bug in F10 which was resolved by a yum update to version 3.2.24 . For F9 the latest yum version is 3.2.21 which has this Parsing error bug that prevents the preupgarde to continue.

Interesting enough that the preupgarde lets me select Fedora 12 and progresses with all the preupgrade steps properly until the parsing error occur.

Any help is appreciated on how to fix this Parsing error on a F9 x86_64 system.

Thanks.
Tamas
Reply With Quote
  #2  
Old 8th December 2009, 06:32 PM
ruig Offline
Registered User
 
Join Date: Dec 2006
Location: Austria
Age: 30
Posts: 9
windows_7firefox
I have absolutely the same problem. I want to upgrade from fc9 to fc12. I have checked xml file and there is syntax error in tag definition (double quotes). Damnt.

I will try to perform upgrade using DVD ("replace existing installation" option). But i am not sure what Fedora developers mean under "replace existing installation"... Replace with purge/format partitions or upgrade (install new packages over existing)?!?!?!?!?
Reply With Quote
  #3  
Old 9th December 2009, 05:14 PM
donagha Offline
Registered User
 
Join Date: Dec 2009
Posts: 1
linuxfirefox
My solution was to install FC10 release file so that you can manually update yum to the correct version that will fix the problem. But you must also update a couple of others, otherwise you'll end up with different error messages:

rpm -Uvh ftp://download.fedora.redhat.com/pub...e-*.noarch.rpm
yum update yum
yum update rpm
yum update createrepo
preupgrade-cli "Fedora 12 (Constantine)"


It processed further for me successfully,

1577/1577 - libcap-2.16-5.fc12.i686.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
Preparing system to boot into installer
DEBUG /sbin/grubby --title="Upgrade to Fedora 12 (Constantine)" --remove-kernel="/boot/upgrade/vmlinuz" --add-kernel="/boot/upgrade/vmlinuz" --initrd="/boot/upgrade/initrd.img" --args="preupgrade repo=hd::/var/cache/yum/preupgrade stage2=hd:UUID=3b151b54-e00c-4efb-bedd-98e5f7d63bde:/boot/upgrade/install.img ks=hd:UUID=3b151b54-e00c-4efb-bedd-98e5f7d63bde:/boot/upgrade/ks.cfg"
Probing devices to guess BIOS drives. This may take a long time.
All finished. The upgrade will begin when you reboot.
Reply With Quote
  #4  
Old 15th December 2009, 08:42 PM
cwebster Offline
Registered User
 
Join Date: May 2005
Location: NC
Age: 59
Posts: 104
linuxfedorafirefox
Sorry but there may be one step missing. I got the exact same errors when trying to "preupgrade" from F9 to F12.

After installing the Fedora 10 redhat-release files I had to do a "yum clean all". Without that I just got "No Packages marked for Update" when trying to update yum, rpm, and createrepo.

Just so others know what to expect, my session went something like this:
(output truncated for clarity)

Update to Fedora 10 release files (fool yum/rpm):
Code:
[root@inet3 ~]# rpm -Uvh ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-*.noarch.rpm
Retrieving ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-10-1.noarch.rpm
Retrieving ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
warning: /var/tmp/rpm-xfer.vAQaCt: Header V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing...                ########################################### [100%]
   1:fedora-release-notes   ########################################### [ 50%]
   2:fedora-release         ########################################### [100%]
[root@inet3 ~]#
Clean-up all yum cached files and data:
Code:
[root@inet3 ~]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@inet3 ~]#
Update yum:
Code:
[root@inet3 ~]# yum update yum
...
Updated:
  yum.noarch 0:3.2.24-2.fc10                                                    

Complete!
[root@inet3 ~]#
Update rpm:
Code:
[root@inet3 ~]# yum update rpm
...
Dependency Installed:
  compat-db45.i386 0:4.5.20-5.fc10                                              
  compat-db45.x86_64 0:4.5.20-5.fc10                                            
  file-libs.i386 0:4.26-5.fc10                                                  
  lua.i386 0:5.1.4-2.fc10                                                       
  xz.x86_64 0:4.999.8-0.8.beta.20090817git.fc10                                 
  xz-devel.x86_64 0:4.999.8-0.8.beta.20090817git.fc10                           
  xz-libs.i386 0:4.999.8-0.8.beta.20090817git.fc10                              
  xz-libs.x86_64 0:4.999.8-0.8.beta.20090817git.fc10                            
  xz-lzma-compat.x86_64 0:4.999.8-0.8.beta.20090817git.fc10                     

Updated:
  rpm.x86_64 0:4.6.1-3.fc10                                                     

Dependency Updated:
  elfutils.x86_64 0:0.142-1.fc10                                                
  elfutils-libelf.i386 0:0.142-1.fc10                                           
  elfutils-libelf.x86_64 0:0.142-1.fc10                                         
  elfutils-libelf-devel.x86_64 0:0.142-1.fc10                                   
  elfutils-libs.x86_64 0:0.142-1.fc10                                           
  file.x86_64 0:4.26-5.fc10                                                     
  file-libs.x86_64 0:4.26-5.fc10                                                
  gdb.x86_64 0:6.8-32.fc10                                                      
  lua.x86_64 0:5.1.4-2.fc10                                                     
  net-snmp.x86_64 1:5.4.2.1-5.fc10                                              
  net-snmp-libs.i386 1:5.4.2.1-5.fc10                                           
  net-snmp-libs.x86_64 1:5.4.2.1-5.fc10                                         
  rpm-build.x86_64 0:4.6.1-3.fc10                                               
  rpm-devel.i386 0:4.6.1-3.fc10                                                 
  rpm-devel.x86_64 0:4.6.1-3.fc10                                               
  rpm-libs.i386 0:4.6.1-3.fc10                                                  
  rpm-libs.x86_64 0:4.6.1-3.fc10                                                
  rpm-python.x86_64 0:4.6.1-3.fc10                                              
  systemtap.x86_64 0:1.0-2.fc10                                                 
  systemtap-runtime.x86_64 0:1.0-2.fc10                                         

Complete!
[root@inet3 ~]#
Update createrepo:
Code:
[root@inet3 ~]# yum update createrepo
...
Dependency Installed:
  deltarpm.x86_64 0:3.4-11.fc10.1                                               

Updated:
  createrepo.noarch 0:0.9.7-7.fc10                                              

Complete!
[root@inet3 ~]#
Now the preupgrade completes without errors. If it's been a while since the last attempt it may need to download newer update packages.
Code:
[root@inet3 ~]# preupgrade-cli "Fedora 12 (Constantine)"
...
Generating metadata for preupgrade repo
2065/2065 - chmlib-0.40-2.fc12.x86_64.rpm                                       
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
Preparing system to boot into installer
DEBUG /sbin/grubby --title="Upgrade to Fedora 12 (Constantine)" --remove-kernel="/boot/upgrade/vmlinuz" --add-kernel="/boot/upgrade/vmlinuz" --initrd="/boot/upgrade/initrd.img" --args="preupgrade repo=hd::/var/cache/yum/preupgrade stage2=hd:UUID=c24ffd8f-39c0-4dc2-bfeb-82960d157a5b:/upgrade/install.img ks=hd:UUID=c24ffd8f-39c0-4dc2-bfeb-82960d157a5b:/upgrade/ks.cfg"
Probing devices to guess BIOS drives. This may take a long time.
All finished. The upgrade will begin when you reboot.
[root@inet3 ~]#
__________________
./Cal
Reply With Quote
  #5  
Old 15th December 2009, 11:53 PM
ttoth Offline
Registered User
 
Join Date: Dec 2009
Posts: 5
linuxfedorafirefox
Thanks for the replies. Finally I've got this upgrade working however I've jumped to F11 then from there to F12. The pre-upgrade from F9 to F11 went relatively painless. Now Constantine is up and running.

Thanks again for sharing your experience, I know now what I have missed which made my direct upgrade from F9 to F12 unsuccessful.

Regards,
Tamas
Reply With Quote
  #6  
Old 16th December 2009, 12:10 AM
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 789
linuxfedorafirefox
:) Everyone, thank you for your posts. :)

Everyone, thank you for your posts.

One of the recommendations from the past upgrades is that an upgrade from a previous version is preferred. Upgrading from two versions is possible. But in this case upgrading from three versions is not recommended. Possibly, too many things will have changed within that timeframe.

Hope this helps.
__________________
2 dual cores, 11 GB RAM, F18 Spherical Cow - 3.11.10-100.fc18.x86_64 / i686
2 dual cores, 11 GB RAM, F19 Schrödinger's Cat - 3.14.17-100.fc19.x86_64 / i686
2 dual cores, 11 GB RAM, F20 Heisenbug - 3.15.10-200.fc20.x86_64 / i686
2 dual cores, 11 GB RAM, F21 TBD - 3.16.1-301.fc21.x86_64 / i686
80 x86_64 computing cores, 144 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
Reply

Tags
preupgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preupgrade to F12 fails Shielder Installation, Upgrades and Live Media 2 19th November 2009 08:29 PM
Error while parsing /etc/hosts in F10 ssivil Using Fedora 17 12th March 2009 08:34 PM
Parsing error with yum Sedighzadeh Using Fedora 2 23rd January 2008 01:25 PM
Error PArsing number kunal1982 Using Fedora 1 5th March 2007 09:42 PM
Script to change default route when primary fails koflanagan Servers & Networking 0 22nd May 2006 08:11 PM


Current GMT-time: 14:11 (Tuesday, 02-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat