Header Shadow Image


Upgrading to Fedora 19

Turns out that my attempt to upgrade my coreutils packages to allow me to use Wake On LAN, required me to upgrade my Fedora 13 to the latest Fedora distribution.  So I'm going to try and jump to Fedora 18 (Not quite sure about Fedora 19 yet but will try.)  However since the complation of this post, we have upgraded to FC 19 (Fedora Core 19) .  This post is extremely long and contains alot of trial and error.  If you are simply looking to resolve

rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem

please follow that link or if you are at upgrading from Fedora Core 16 up and you see the above error rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem then simply proceed to Upgrading from FC 16 below.  NOTE: Alot of this is trial and error and the notes here are very rough.  Links are provided to specific errors where the process is more cleanly defined.  Follow at your own risk.

In our case using fed-up or fedora-upgrade had mixed results.

Needed to upgrade from F13 to F18.  filtering the error otuput of yum update / yum upgrade

[root@moto F13toF18]# cat errors.txt|grep "Error: Package"|sort|uniq -c
      2 Error: Package: 1:librep-0.16.1-5.1.i386 (installed)
      1 Error: Package: 1:librep-devel-0.16.1-5.1.i386 (installed)
      3 Error: Package: 1:openoffice.org-brand-3.2.0-12.25.fc13.i686 (@updates/13)
      4 Error: Package: 1:openoffice.org-calc-3.2.0-12.25.fc13.i686 (@updates/13)
      5 Error: Package: 1:openoffice.org-core-3.2.0-12.25.fc13.i686 (@updates/13)
      4 Error: Package: 1:openoffice.org-draw-3.2.0-12.25.fc13.i686 (@updates/13)
      4 Error: Package: 1:openoffice.org-impress-3.2.0-12.25.fc13.i686 (@updates/13)
      1 Error: Package: 1:openoffice.org-pdfimport-3.2.0-12.25.fc13.i686 (@updates/13)
      4 Error: Package: 1:openoffice.org-writer-3.2.0-12.25.fc13.i686 (@updates/13)
      2 Error: Package: 1:openoffice.org-writer-core-3.2.0-12.25.fc13.i686 (@updates/13)
      3 Error: Package: 1:python-sqlite2-2.3.5-2.fc12.i686 (@fedora/12)
      2 Error: Package: 2:sawfish-1.3-3.i386 (installed)
      8 Error: Package: 3:koffice-kchart-2.2.0-1.fc13.i686 (@updates/13)
     11 Error: Package: 3:koffice-kchart-libs-2.2.0-1.fc13.i686 (@updates/13)
      9 Error: Package: 3:koffice-kformula-2.2.0-1.fc13.i686 (@updates/13)
      8 Error: Package: 3:koffice-kformula-libs-2.2.0-1.fc13.i686 (@updates/13)
      3 Error: Package: alchemist-1.0.37-8.fc12.i686 (@fedora/12)
      1 Error: Package: avidemux-plugins-2.5.3-3.fc13.i686 (@rpmfusion-free-updates/13)
      2 Error: Package: bittorrent-4.4.0-14.fc13.noarch (@fedora/13)
      1 Error: Package: bjfilter-pixusip4100-2.50-2.i386 (installed)
      1 Error: Package: cairo-java-1.0.5-12.fc12.i686 (@fedora/12)
     17 Error: Package: evolution-conduits-2.30.2-1.fc13.i686 (@updates/13)
      2 Error: Package: freevo_runtime-3-3.i386 (installed)
      1 Error: Package: gg2-core-2.3.0-16.fc13.i686 (@fedora/13)
      1 Error: Package: gg2-libs-2.3.0-16.fc13.i686 (@fedora/13)
      1 Error: Package: glib-java-0.2.6-16.fc12.i686 (@fedora/12)
      1 Error: Package: gnome-pilot-2.0.17-9.fc13.i686 (@fedora/13)
      1 Error: Package: goffice04-0.4.3-5.fc11.i586 (@fedora/11)
      2 Error: Package: gtkam-0.1.11-2.i386 (installed)
      2 Error: Package: gtkam-gimp-0.1.11-2.i386 (installed)
      1 Error: Package: kadu-0.6.5.2-3.fc12.i686 (@fedora/12)
      2 Error: Package: kudzu-1.2.86-2.i686 (@fedora/12)
      1 Error: Package: libgconf-java-2.12.4-14.fc12.i686 (@fedora/12)
      1 Error: Package: libgtk-java-2.8.7-13.fc13.i686 (@fedora/13)
      1 Error: Package: libxfce4menu-4.6.2-1.fc13.i686 (@updates/13)
      1 Error: Package: m17n-db-datafiles-1.5.5-4.fc13.noarch (@updates/13)
      1 Error: Package: m17n-db-flt-1.5.5-4.fc13.noarch (@updates/13)
      1 Error: Package: openmpi-libs-1.2.4-2.fc9.i386 (installed)
      1 Error: Package: peazip-2.6.3.LINUX.Qt-1.i586 (installed)
      2 Error: Package: pyxf86config-0.3.37-7.fc12.i686 (@fedora/12)
      3 Error: Package: rhpl-0.221-2.i686 (@fedora/12)
      3 Error: Package: system-config-display-2.2-1.fc12.i686 (@fedora/12)
      1 Error: Package: tsclient-2.0.2-7.fc13.i686 (@fedora/13)
[root@moto F13toF18]#
[root@moto F13toF18]# cat errors.txt|grep "Error: Package"|sort|uniq -c

Remove above packages.  Here are a few one liners to help identify some based on the above:

cat errors.txt|grep "Error: Package"|sort|uniq -c|sed -e "s/[0-9]://g"|grep -Ev "librep|sawfish|koffice-kchart|koffice-kformula|goffice|system-config-display|tsclient"|awk '{ printf $4" "; }'

rpm -e $(cat errors.txt|grep "Error: Package"|sort|uniq -c|sed -e "s/[0-9]://g"|grep -Ev "librep|sawfish|koffice-kchart|koffice-kformula|goffice|system-config-display|tsclient"|awk '{ printf $4" "; }')

 

Eventually I needed this one liner to get rid of more packages:

rpm -e openoffice.org-brand-3.2.0-12.25.fc13.i686 openoffice.org-calc-3.2.0-12.25.fc13.i686 openoffice.org-core-3.2.0-12.25.fc13.i686 openoffice.org-draw-3.2.0-12.25.fc13.i686 openoffice.org-impress-3.2.0-12.25.fc13.i686 openoffice.org-pdfimport-3.2.0-12.25.fc13.i686 openoffice.org-writer-3.2.0-12.25.fc13.i686 openoffice.org-writer-core-3.2.0-12.25.fc13.i686 openoffice.org-calc-core-3.2.0-12.25.fc13.i686 openoffice.org-math-core-3.2.0-12.25.fc13.i686 openoffice.org-math-3.2.0-12.25.fc13.i686 openoffice.org-graphicfilter-3.2.0-12.25.fc13.i686 openoffice.org-writer2latex-1.0-3.fc13.i686 openoffice.org-impress-core-3.2.0-12.25.fc13.i686 openoffice.org-presenter-screen-3.2.0-12.25.fc13.i686 openoffice.org-draw-core-3.2.0-12.25.fc13.i686 openoffice.org-langpack-he_IL-3.2.0-12.25.fc13.i686 openoffice.org-langpack-hr_HR-3.2.0-12.25.fc13.i686 2>&1|awk '{ gsub(/[0-9]:/, "", $0); printf $NF" "; }'

And then this one:

rpm -e openoffice.org-brand-3.2.0-12.25.fc13.i686 openoffice.org-calc-3.2.0-12.25.fc13.i686 openoffice.org-core-3.2.0-12.25.fc13.i686 openoffice.org-draw-3.2.0-12.25.fc13.i686 openoffice.org-impress-3.2.0-12.25.fc13.i686 openoffice.org-pdfimport-3.2.0-12.25.fc13.i686 openoffice.org-writer-3.2.0-12.25.fc13.i686 openoffice.org-writer-core-3.2.0-12.25.fc13.i686 openoffice.org-calc-core-3.2.0-12.25.fc13.i686 openoffice.org-math-core-3.2.0-12.25.fc13.i686 openoffice.org-math-3.2.0-12.25.fc13.i686 openoffice.org-graphicfilter-3.2.0-12.25.fc13.i686 openoffice.org-writer2latex-1.0-3.fc13.i686 openoffice.org-impress-core-3.2.0-12.25.fc13.i686 openoffice.org-presenter-screen-3.2.0-12.25.fc13.i686 openoffice.org-draw-core-3.2.0-12.25.fc13.i686 openoffice.org-langpack-he_IL-3.2.0-12.25.fc13.i686 openoffice.org-langpack-hr_HR-3.2.0-12.25.fc13.i686 openoffice.org-langpack-gl_ES-3.2.0-12.25.fc13.i686 openoffice.org-langpack-th_TH-3.2.0-12.25.fc13.i686 openoffice.org-langpack-cy_GB-3.2.0-12.25.fc13.i686 openoffice.org-langpack-sk_SK-3.2.0-12.25.fc13.i686 openoffice.org-langpack-eu_ES-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ca_ES-3.2.0-12.25.fc13.i686 openoffice.org-langpack-gu_IN-3.2.0-12.25.fc13.i686 openoffice.org-langpack-hu_HU-3.2.0-12.25.fc13.i686 openoffice.org-langpack-nn_NO-3.2.0-12.25.fc13.i686 openoffice.org-langpack-af_ZA-3.2.0-12.25.fc13.i686 openoffice.org-langpack-bn-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ko_KR-3.2.0-12.25.fc13.i686 openoffice.org-langpack-zh_TW-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ar-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ja_JP-3.2.0-12.25.fc13.i686 openoffice.org-langpack-el_GR-3.2.0-12.25.fc13.i686 openoffice.org-langpack-lt_LT-3.2.0-12.25.fc13.i686 openoffice.org-langpack-it-3.2.0-12.25.fc13.i686 openoffice.org-langpack-de-3.2.0-12.25.fc13.i686 openoffice.org-langpack-zu_ZA-3.2.0-12.25.fc13.i686 openoffice.org-langpack-da_DK-3.2.0-12.25.fc13.i686 openoffice.org-langpack-pl_PL-3.2.0-12.25.fc13.i686 openoffice.org-langpack-zh_CN-3.2.0-12.25.fc13.i686 openoffice.org-langpack-et_EE-3.2.0-12.25.fc13.i686 openoffice.org-langpack-es-3.2.0-12.25.fc13.i686 openoffice.org-langpack-sl_SI-3.2.0-12.25.fc13.i686 openoffice.org-langpack-tr_TR-3.2.0-12.25.fc13.i686 openoffice.org-langpack-fi_FI-3.2.0-12.25.fc13.i686 openoffice.org-langpack-nl-3.2.0-12.25.fc13.i686 openoffice.org-langpack-fr-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ru-3.2.0-12.25.fc13.i686 openoffice.org-langpack-pt_PT-3.2.0-12.25.fc13.i686 openoffice.org-langpack-hi_IN-3.2.0-12.25.fc13.i686 openoffice.org-langpack-nb_NO-3.2.0-12.25.fc13.i686 openoffice.org-langpack-pt_BR-3.2.0-12.25.fc13.i686 openoffice.org-langpack-cs_CZ-3.2.0-12.25.fc13.i686 openoffice.org-langpack-pa-3.2.0-12.25.fc13.i686 openoffice.org-langpack-bg_BG-3.2.0-12.25.fc13.i686 openoffice.org-langpack-sv-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ta_IN-3.2.0-12.25.fc13.i686 openoffice.org-langpack-ms_MY-3.2.0-12.25.fc13.i686

 

and again for new errors:

rpm -e $(cat errors2.txt|grep "Error: Package"|sort|uniq -c|sed -e "s/[0-9]://g"|grep -Ev "librep|sawfish|koffice-kchart|koffice-kformula|goffice|system-config-display|tsclient"|awk '{ printf $4" "; }') alchemist-devel-1.0.37-8.fc12.i686 alchemist-devel-1.0.37-8.fc12.i686 alchemist-devel-1.0.37-8.fc12.i686 avidemux-2.5.3-3.fc13.i686 bittorrent-gui-4.4.0-14.fc13.noarch bjfilter-pixusip4100-lprng-2.50-2.i386 evolution-devel-2.30.2-1.fc13.i686 gg2-2.3.0-16.fc13.i686 gg2-gadu-gadu-2.3.0-16.fc13.i686 gg2-systray-2.3.0-16.fc13.i686 gg2-tlen-2.3.0-16.fc13.i686 gg2-jabber-2.3.0-16.fc13.i686 gnome-pilot-conduits-2.0.17-4.fc13.i686 gnome-pilot-devel-2.0.17-9.fc13.i686 evolution-2.30.2-1.fc13.i686 gnome-pilot-conduits-2.0.17-4.fc13.i686 gnome-pilot-devel-2.0.17-9.fc13.i686 evolution-2.30.2-1.fc13.i686 gnome-pilot-conduits-2.0.17-4.fc13.i686 gnome-pilot-devel-2.0.17-9.fc13.i686 evolution-2.30.2-1.fc13.i686 gnome-pilot-conduits-2.0.17-4.fc13.i686 gnome-pilot-devel-2.0.17-9.fc13.i686 system-config-mouse-1.2.11-1.noarch hwbrowser-0.44-1.fc12.noarch azureus-4.3.1.4-1.fc13.noarch xfdesktop-4.6.2-1.fc13.i686 m17n-lib-flt-1.5.5-3.fc13.i686 system-config-mouse-1.2.11-1.noarch system-config-keyboard-1.3.1-1.fc12.i686 system-config-mouse-1.2.11-1.noarch xfce-utils-4.6.2-1.fc13.i686 emacs-23.2-1.fc13.i686 anaconda-13.42-1.fc13.i686 system-config-kickstart-2.8.4-1.fc13.noarch firstboot-1.110-1.fc13.i686 emacspeak-29.0-3.fc12.noarch

Once upgrading, it needs 2.6GB but got this error when it progressed:

Transaction Summary

======================================================================================Install    1654 Package(s)
Upgrade     984 Package(s)

 

Total size: 2.6 G
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID de7f38bd: NOKEY
updates/gpgkey                                                                                                                                                                              | 3.2 kB     00:00 …
Importing GPG key 0xDE7F38BD:
 Userid : Fedora (18) <fedora@fedoraproject.org>
 Package: fedora-release-18-1.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 982e0a7c: NOKEY


GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-18-i386
You have new mail in /var/spool/mail/root
[root@moto F13toF18]#

So we visit

http://rpmfusion.org/keys

And get the right one:

[root@moto F13toF18]# wget ftp://fr2.rpmfind.net/linux/rpmfusion/free/fedora/updates/18/x86_64/rpmfusion-free-release-18-3.noarch.rpm

–2013-07-18 08:54:20–  ftp://fr2.rpmfind.net/linux/rpmfusion/free/fedora/updates/18/x86_64/rpmfusion-free-release-18-3.noarch.rpm
           => "rpmfusion-free-release-18-3.noarch.rpm"
Resolving fr2.rpmfind.net… 195.220.108.108
Connecting to fr2.rpmfind.net|195.220.108.108|:21… connected.
Logging in as anonymous … Logged in!
==> SYST … done.    ==> PWD … done.
==> TYPE I … done.  ==> CWD (1) /linux/rpmfusion/free/fedora/updates/18/x86_64 … done.
==> SIZE rpmfusion-free-release-18-3.noarch.rpm … 16648
==> PASV … done.    ==> RETR rpmfusion-free-release-18-3.noarch.rpm … done.
Length: 16648 (16K) (unauthoritative)

100%[=========================================>] 16,648      –.-K/s   in 0.1s    

2013-07-18 08:54:23 (122 KB/s) – "rpmfusion-free-release-18-3.noarch.rpm" saved [16648]

[root@moto F13toF18]#

And install using:

rpm -Ivh rpmfusion-free-release-18-3.noarch.rpm

And this resulted in a few other messages:

Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem-3.1-2.fc18.i686
perl(Sys::Syslog) is needed by spamassassin-3.3.2-14.fc18.i686

Please report this error in http://yum.baseurl.org/report
 You could try running: rpm -Va –nofiles –nodigest
[root@moto F13toF18]#

So we rpm -e them, or at least spam assassin for fc13 (rpm -aq|grep spamassassin).  Then try again:

So looks like we need an upgraded RPM installer in case of the filesystem package but we can't get the RPM installer unless we upgrade everything to F18 (From F13, yeah a jump).  So we run:

[root@moto F13toF18]# yum update yum coreutils-libs.i686 coreutils.i686 –exclude=filesystem-3.1-2.fc18.i686 2>&1

And we try with –nodeps to get the below after downloading the below RPM's (WARNING: THIS BROKE RPM FOR ME AND I HAD TO RECOVER THE FC13 ONES AND SIMPLY UPGRADE IN STAGES TO FC14 AND ONWARDS):

# rpm -Uvh rpm-4.10.3.1-1.fc18.i686.rpm rpm-devel-4.10.3.1-1.fc18.i686.rpm rpm-build-libs-4.10.3.1-1.fc18.i686.rpm rpm-libs-4.10.3.1-1.fc18.i686.rpm rpm-python-4.10.3.1-1.fc18.i686.rpm –nodeps
 

And then when you get this error:

[root@moto F13toF18]# rpm -Uvh
rpm: error while loading shared libraries: libdb-5.3.so: cannot open shared object file: No such file or directory
[root@moto F13toF18]# strace rpm -Uvh
execve("/bin/rpm", ["rpm", "-Uvh"], [/* 59 vars */]) = 0
brk(0)                                  = 0x92bc000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77ca000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=224710, …}) = 0
mmap2(NULL, 224710, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7793000
close(3)                                = 0
open("/usr/lib/librpm.so.3", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\264\0\0004\0\0\0"…, 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=398888, …}) = 0
mmap2(NULL, 397088, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0×129000
mmap2(0×186000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5c) = 0×186000
close(3)                                = 0
open("/usr/lib/librpmio.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`o\0\0004\0\0\0"…, 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=162652, …}) = 0
mmap2(NULL, 171844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0×750000
mmap2(0×776000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0×25) = 0×776000
mmap2(0×778000, 8004, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0×778000
close(3)                                = 0
open("/lib/libselinux.so.1", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\221\316\0004\0\0\0"…, 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=118316, …}) = 0
mmap2(0xce5000, 121848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xce5000
mmap2(0xd01000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0xd01000
close(3)                                = 0
open("/lib/libcap.so.2", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\314\336\0074\0\0\0"…, 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14456, …}) = 0
mmap2(0x7dec000, 15792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7dec000
mmap2(0x7def000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0×2) = 0x7def000
close(3)                                = 0
open("/lib/libacl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\245\344\0074\0\0\0"…, 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=31380, …}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7792000
mmap2(0x7e49000, 32516, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7e49000
mmap2(0x7e50000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0×6) = 0x7e50000
close(3)                                = 0
open("/lib/tls/i686/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2", 0xbfc889a0) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
open("/lib/tls/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfc889a0)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR|0555, st_size=4096, …}) = 0
open("/lib/i686/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbfc889a0)    = -1 ENOENT (No such file or directory)
open("/lib/i686/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
open("/lib/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfc889a0)         = -1 ENOENT (No such file or directory)
open("/lib/libdb-5.3.so", O_RDONLY)     = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0555, st_size=16384, …}) = 0
open("/usr/lib/tls/i686/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/sse2", 0xbfc889a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbfc889a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbfc889a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", {st_mode=S_IFDIR|0555, st_size=4096, …}) = 0
open("/usr/lib/i686/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2", 0xbfc889a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
open("/usr/lib/sse2/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2", {st_mode=S_IFDIR|0555, st_size=4096, …}) = 0
open("/usr/lib/libdb-5.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0555, st_size=253952, …}) = 0
writev(2, [{"rpm", 3}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libdb-5.3.so", 12}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10rpm: error while loading shared libraries: libdb-5.3.so: cannot open shared object file: No such file or directory
) = 115
exit_group(127)                         = ?
[root@moto F13toF18]#

And using this snippet from the above:

open("/lib/libdb-5.3.so", O_RDONLY)     = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0555, st_size=16384, …}) = 0

create a symbolic link:

# ln -s libdb-4.8.so libdb-5.3.so

Then link the rest of the missing libraries in a similar manner.  And your RPM should limp along but if it doesn't, use the F14 packages and extract using rpm2cpio rpm-4.8.1-5.fc14.i686.rpm | cpio -idm then copy the resultant :

 

 

 

 

 

 

 

 

1671704 drwxr-xr-x   6 root root    4096 Jul 18 10:49 usr

1671994 drwxr-xr-x   3 root root    4096 Jul 18 10:49 var
1671819 drwxr-xr-x   3 root root    4096 Jul 18 10:49 etc
1671817 drwxr-xr-x   2 root root    4096 Jul 18 10:49 bin

to the / filesystem to overwrite the non working f18 ones.  You may need to force the package update of rpm-python for F14 if you get these issues:

[root@moto F13toF18]# rpm -Uvh rpm-python-4.8.1-5.fc14.i686.rpm –nodeps

rpm: /lib/libz.so.1: no version information available (required by /usr/lib/librpmio.so.1)
warning: rpm-python-4.8.1-5.fc14.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 97a1071f: NOKEY
Preparing…                ########################################### [100%]
        package rpm-python-4.10.3.1-1.fc18.i686 (which is newer than rpm-python-4.8.1-5.fc14.i686) is already installed
[root@moto F13toF18]#
[root@moto F13toF18]#
[root@moto F13toF18]# man rpm
[root@moto F13toF18]# rpm -Uvh rpm-python-4.8.1-5.fc14.i686.rpm –force
rpm: /lib/libz.so.1: no version information available (required by /usr/lib/librpmio.so.1)
warning: rpm-python-4.8.1-5.fc14.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 97a1071f: NOKEY
error: Failed dependencies:
        libpython2.7.so.1.0 is needed by rpm-python-4.8.1-5.fc14.i686
        librpm.so.1 is needed by rpm-python-4.8.1-5.fc14.i686
        librpmbuild.so.1 is needed by rpm-python-4.8.1-5.fc14.i686
        librpmio.so.1 is needed by rpm-python-4.8.1-5.fc14.i686
        python(abi) = 2.7 is needed by rpm-python-4.8.1-5.fc14.i686
        rpm = 4.8.1-5.fc14 is needed by rpm-python-4.8.1-5.fc14.i686
[root@moto F13toF18]#
[root@moto F13toF18]# rpm -Uvh rpm-python-4.8.1-5.fc14.i686.rpm –force –nodeps
rpm: /lib/libz.so.1: no version information available (required by /usr/lib/librpmio.so.1)
warning: rpm-python-4.8.1-5.fc14.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 97a1071f: NOKEY
Preparing…                ########################################### [100%]
   1:rpm-python             ########################################### [100%]
[root@moto F13toF18]# rpm -aq|grep -i rpm-python
rpm: /lib/libz.so.1: no version information available (required by /usr/lib/librpmio.so.1)
rpm-python-4.8.1-5.fc14.i686
[root@moto F13toF18]#

Unfortunately, looks like we need to go to F14 first BECAUSE IT JUST WONT GIVE:

 You could try using –skip-broken to work around the problem

** Found 22 pre-existing rpmdb problem(s), 'yum check' output follows:
rpm-4.10.3.1-1.fc18.i686 is a duplicate with rpm-4.8.0-14.fc13.i686
rpm-4.10.3.1-1.fc18.i686 has missing requires of libdb-5.3.so
rpm-4.10.3.1-1.fc18.i686 has missing requires of liblzma.so.5
rpm-4.10.3.1-1.fc18.i686 has missing requires of librpm.so.3
rpm-4.10.3.1-1.fc18.i686 has missing requires of librpmio.so.3
rpm-build-4.8.1-2.fc13.i686 has missing requires of rpm = ('0', '4.8.1', '2.fc13')
rpm-build-libs-4.10.3.1-1.fc18.i686 has missing requires of libc.so.6(GLIBC_2.15)
rpm-build-libs-4.10.3.1-1.fc18.i686 has missing requires of libdb-5.3.so
rpm-build-libs-4.10.3.1-1.fc18.i686 has missing requires of liblzma.so.5
rpm-build-libs-4.10.3.1-1.fc18.i686 has missing requires of librpm.so.3
rpm-build-libs-4.10.3.1-1.fc18.i686 has missing requires of librpmio.so.3
rpm-build-libs-4.10.3.1-1.fc18.i686 has missing requires of rpm-libs(x86-32) = ('0', '4.10.3.1', '1.fc18')
rpm-devel-4.10.3.1-1.fc18.i686 is a duplicate with rpm-devel-4.8.0-14.fc13.i686
rpm-devel-4.10.3.1-1.fc18.i686 has missing requires of libdb-5.3.so
rpm-devel-4.10.3.1-1.fc18.i686 has missing requires of liblzma.so.5
rpm-devel-4.10.3.1-1.fc18.i686 has missing requires of librpm.so.3
rpm-devel-4.10.3.1-1.fc18.i686 has missing requires of librpmio.so.3
rpm-devel-4.10.3.1-1.fc18.i686 has missing requires of rpm-libs(x86-32) = ('0', '4.10.3.1', '1.fc18')
rpm-python-4.8.1-5.fc14.i686 is a duplicate with rpm-python-4.8.0-14.fc13.i686
rpm-python-4.8.1-5.fc14.i686 has missing requires of libpython2.7.so.1.0
rpm-python-4.8.1-5.fc14.i686 has missing requires of python(abi) = ('0', '2.7', None)
rpm-python-4.8.1-5.fc14.i686 has missing requires of rpm = ('0', '4.8.1', '5.fc14')
[root@moto F13toF18]#
[root@moto F13toF18]#
[root@moto F13toF18]# rpm -e –justdb rpm-build-libs-4.10.3.1-1.fc18.i686 –nodeps
[root@moto F13toF18]# rpm -e –justdb rpm-build-libs-4.10.3.1-1.fc18 –nodeps
error: package rpm-build-libs-4.10.3.1-1.fc18 is not installed
[root@moto F13toF18]# rpm -e –justdb rpm-4.10.3.1-1.fc18.i686 –nodeps
[root@moto F13toF18]# rpm -e –justdb rpm-4.10.3.1-1.fc18.i686 –nodeps
error: package rpm-4.10.3.1-1.fc18.i686 is not installed
[root@moto F13toF18]# rpm -e –justdb rpm-devel-4.10.3.1-1.fc18.i686 –nodeps
You have new mail in /var/spool/mail/root
[root@moto F13toF18]#

So after trying to jump to Fedora 18 from Fedora 13 after numerous attempts, I did the step updates to Fedora 14, then 15 then all the way up to 18.  The jump upgrade to Fedora 18 from 13 was too great.  Maybe my problems had something to do with the fact that I downloaded and installed the below RPM:

fedora-release-rawhide-15-3.noarch

When upgrading to Fedora 15, booting was a problem with dependency problems.  However I did manage to upgrade to FC16 as the SSH connection lasted long enough for that.  All in all, simply remove any dependency problems by removing the existing RPM for them to proceed.

https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_16_-.3E_Fedora_17

yum update filesystem 

yields this issue below. (For a resolution on this issue, please see rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem):

ERROR You need to update rpm to handle:
rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem-3-2.fc17.i686
RPM needs to be updated
 You could try running: rpm -Va –nofiles –nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2013-08-04.00-26.TT32LE.yumtx
[root@moto F13toF18]# yum update rpm

Use and install fedup like this (yum search fedup) then install the resultant page that is shown:

[root@moto F13toF18]# fedup –network
usage: fedup SOURCE [options]
fedup: error: argument –network: expected one argument
[root@moto F13toF18]# fedup –network 17
setting up repos…
default-installrepo/metalink                                                                                 |  25 kB     00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-install-17&arch=i386 error was
No repomd file
Error: can't get boot images.
The installation repo isn't available.
You need to specify one with –instrepo.
[root@moto F13toF18]# fedup –network 18

So we run this to upgrade further:

fedup –network 18

And that gave me a bootlink / entry in /boot/grub/grub/conf which didn't work.  So I'm back to trying using the F18 fedora-release files again.  Trying to update rpm and filesystem revealed a dependency chain 1.6GB big.  So off I go downloading the stack hoping not to max out my usage for the month.  

But that failed on reboot and system got hung on checking LVM2 volumes.  Next we try some suggestions from the earlier F16 to F17 page but following the suggestions on the page for using package-cleanup resulted in this:

[root@moto F13toF18]# package-cleanup –orphans|wc -l
3445
[root@moto F13toF18]#

Which essentially lists all the packages (but was supposed to list only those where the RPM scriplet failed.).   In order to fix this pesky error, I took the gloves off:


==================================================================================================================================
 Package                   Arch                 Version                      Repository                                      Size
==================================================================================================================================
Installing:
 kobo-rpmlib               noarch               0.3.8-1.fc18                 /kobo-rpmlib-0.3.8-1.fc18.noarch                25 k
Installing for dependencies:
 kobo                      noarch               0.3.8-1.fc18                 updates                                         96 k
 koji                      noarch               1.8.0-1.fc18                 updates                                        203 k
 python-krbV               i686                 1.0.90-5.fc18                fedora                                          52 k

Transaction Summary
==================================================================================================================================
Install  1 Package (+3 Dependent packages)

Total size: 376 k
Total download size: 351 k
Installed size: 1.3 M
Is this ok [y/N]: y

But that did not work:

[root@moto packages]# rpm -Uvh filesystem-3.1-2.fc18.i686.rpm
error: Failed dependencies:
        rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem-3.1-2.fc18.i686
[root@moto packages]#

Then I tried:

[root@moto packages]# ls -altri rpm*
260712 -rw-r–r– 1 root root 45368 Aug 11  2012 rpmreaper-0.1.6-11.fc18.i686.rpm
[root@moto packages]# 

but rpm wasn't in the folder path which I thought was odd.  So I downloaded it:

# yumdownloader rpm

and this braught in:

[root@moto packages]# ls -altri rpm*
260712 -rw-r–r– 1 root root   45368 Aug 11  2012 rpmreaper-0.1.6-11.fc18.i686.rpm
264191 -rw-r–r– 1 root root 1133668 Feb  6 21:59 rpm-4.10.3.1-1.fc18.i686.rpm
[root@moto packages]#

which is good.  So I run:

yum install rpm-4.10.3.1-1.fc18.i686.rpm

to see what happens.  And so my error disappears but I get the standard set of errors about broken RPM's so I do this:

yum install rpm-4.10.3.1-1.fc18.i686.rpm –skip-broken

which get's me further along.  I get a single error this time:

Transaction Check Error:
  file /usr/bin/groff from install of groff-base-1.22.1-2.fc18.i686 conflicts with file from package groff-1.21-4.fc16.i686
  file /usr/bin/eqn from install of groff-base-1.22.1-2.fc18.i686 conflicts with file from package groff-1.21-4.fc16.i686

and we're off to the races after removing groff fc16 using rpm -e + dependencies:  

rpm -e groff-1.21-4.fc16.i686 linuxdoc-tools-0.9.66-9.fc15.i686 man-db-2.6.0.2-4.fc16.i686 groff-perl-1.21-4.fc16.i686 groff-x11-1.21-4.fc16.i686 man-pages-fr-3.23-5.fc15.noarch man-pages-ja-20110915-1.fc16.noarch man-pages-pl-0.24-12.fc16.noarch man-pages-3.32-15.fc16.noarch man-pages-es-1.55-16.fc15.noarch man-pages-cs-0.18.20090209-12.fc16.noarch man-pages-it-2.80-11.fc16.noarch man-pages-ko-20050219-19.fc15.noarch redhat-lsb-4.0-7.1.fc16.i686 a2ps-4.14-12.fc15.i686 tomcat6-6.0.35-1.fc16.noarch

Then we run into:

Transaction Check Error:
  file /usr/lib/libpng.so.3 from install of libpng12-1.2.50-2.fc18.i686 conflicts with file from package libpng-2:1.2.49-1.fc16.i686
  file /usr/lib/libpng12.so.0 from install of libpng12-1.2.50-2.fc18.i686 conflicts with file from package libpng-2:1.2.49-1.fc16.i686
  file /usr/lib/libgdbm.so.3.0.0 from install of compat-gdbm-1.8.3-12.fc18.i686 conflicts with file from package gdbm-1.8.3-9.fc15.i686
  file /usr/lib/libgdbm_compat.so.3.0.0 from install of compat-gdbm-1.8.3-12.fc18.i686 conflicts with file from package gdbm-1.8.3-9.fc15.i686

Error Summary
————-

So we download some needed packages:

# yumdownloader libtiff-devel.i686 libtiff.i686

libtiff-devel-4.0.3-6.fc18.i686.rpm                                                                        | 469 kB     00:00
libtiff-4.0.3-6.fc18.i686.rpm                                                                              | 170 kB     00:00

And do an upgrade using rpm of the few key packages:

Fedora 17  download.fedora.redhat.com/pub/fedora/linux/updates/17/x86_64/libtiff-3.9.7-2.fc17.x86_64.rpm

We see the above for Fedora 17 but not for Fedora 18.  So we may need to scale down a bit to Fedora 17 first.  So we force a rollback to 17:

rpm -Uvh –force fedora-release-17-2.noarch.rpm fedora-release-notes-17.1.0-1.fc17.noarch.rpm

yum –releasever=17 –disableplugin=presto distro-sync

and then we repeat getting some of the RPM's from above like the rpm rpm into the /var/cache/yum/fedora/packages directory.  Yum update doesn't bring it in by itself hence the error above maybe.  

[root@moto packages]# yumdownloader rpm

Config time: 0.085
repo time: 0.000
Setting up Package Sacks
pkgsack time: 2.078
Running compare_providers() for [
, ]
Reading Local RPMDB
rpmdb time: 0.000
base package rpm is installed for rpm-4.9.1.3-8.fc17.i686
base package rpm is installed for rpm-4.9.1.3-6.fc17.i686
Best Order: [(
, 2002), (, -2043)]
http://fedora-archive.mirror.iweb.com/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://fedora-archive.mirror.iweb.com/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm
Trying other mirror.
http://www.muug.mb.ca/pub/fedora/archive/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://www.muug.mb.ca/pub/fedora/archive/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm
Trying other mirror.
ftp://ftp.muug.mb.ca/pub/fedora/archive/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm: [Errno 12] Timeout on ftp://ftp.muug.mb.ca/pub/fedora/archive/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm: (28, '')
Trying other mirror.
http://archive.kernel.org/fedora-archive/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://archive.kernel.org/fedora-archive/fedora/linux/updates/17/i386/rpm-4.9.1.3-8.fc17.i686.rpm
Trying other mirror.
rpm-4.9.1.3-8.fc17.i686.rpm                                                                                   | 992 kB     00:01
[root@moto packages]# pwd
/var/cache/yum/fedora/packages
[root@moto packages]#

Once you have it downloaded restart the upgrade again to see what else is missing.  Use yumdownloader to get the following:

kobo-rpmlib-0.3.8-1.fc17.noarch.rpm
kobo-0.3.8-1.fc17.noarch.rpm

Then

# rpm -Uvh kobo-rpmlib-0.3.8-1.fc17.noarch.rpm kobo-0.3.8-1.fc17.noarch.rpm

and then try the upgrade again.  Quick search yields:

[root@moto cache]# pwd
/var/cache
[root@moto cache]# find ./ -iname filesystem-3-2.fc17.i686
[root@moto cache]#

And we do this instead:

[root@moto packages]# rpm -Uvh filesystem-3-2.fc17.i686.rpm
error: Failed dependencies:
        rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem-3-2.fc17.i686
[root@moto packages]# rpm -Uvh filesystem-3-2.fc17.i686.rpm –nodeps
Preparing…                ########################################### [100%]
   1:filesystem             ########################################### [100%]
error: unpacking of archive failed on file /bin: cpio: rename failed – Is a directory
error: filesystem-3-2.fc17.i686: install failed
error: filesystem-2.4.44-1.fc16.i686: erase skipped
[root@moto packages]#

Removed some links from / :

lrwxrwxrwx    1 root root     7 Aug  8 22:13 bin;52045042 -> usr/bin
lrwxrwxrwx    1 root root     7 Aug  8 22:15 bin;520450ab -> usr/bin

We had better progress with 18….Let's go back:

yum –releasever=18 –disableplugin=presto distro-sync

To get over the rpm file conflict, we force the install:

[root@moto packages]# rpm -qa|grep -i libpng
libpng-1.2.49-1.fc16.i686
libpng-devel-1.2.49-1.fc16.i686
libpng10-1.0.59-1.fc16.i686
libpng10-devel-1.0.59-1.fc16.i686
[root@moto packages]# rpm -Uvh libpng12-1.2.50-2.fc18.i686.rpm
Preparing…                ########################################### [100%]
        file /usr/lib/libpng.so.3 from install of libpng12-1.2.50-2.fc18.i686 conflicts with file from package libpng-2:1.2.49-1.fc16.i686
        file /usr/lib/libpng12.so.0 from install of libpng12-1.2.50-2.fc18.i686 conflicts with file from package libpng-2:1.2.49-1.fc16.i686
[root@moto packages]# rpm -Uvh libpng12-1.2.50-2.fc18.i686.rpm –force
Preparing…                ########################################### [100%]
   1:libpng12               ########################################### [100%]
[root@moto packages]#

In case of GDM, we were able to remove it without too many dependencies:

  file /usr/lib/libgdbm_compat.so.3.0.0 from install of compat-gdbm-1.8.3-12.fc18.i686 conflicts with file from package gdbm-1.8.3-9.fc15.i686

Error Summary
————-

But in the process broke something:

[root@moto packages]# rpm -e gdm-3.2.1.1-10.fc16.i686 fedorainfinity-gdm-theme-8.0.1-3.fc12.noarch pulseaudio-gdm-hooks-0.9.23-1.fc16.i686

(gconftool-2:5135): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
warning: /etc/gdm/custom.conf saved as /etc/gdm/custom.conf.rpmsave
[root@moto packages]#

Which is fine.  We'll fix it after the upgrade, whenever we get done.  And we rerun the line again:

yum install rpm-4.10.3.1-1.fc18.i686.rpm –skip-broken

In this case we get this final conflict.  In a way this is good because it tells us we'll get the file back with the newer package:

Transaction Check Error:
  file /usr/lib/libgdbm.so.3.0.0 from install of compat-gdbm-1.8.3-12.fc18.i686 conflicts with file from package gdbm-1.8.3-9.fc15.i686
  file /usr/lib/libgdbm_compat.so.3.0.0 from install of compat-gdbm-1.8.3-12.fc18.i686 conflicts with file from package gdbm-1.8.3-9.fc15.i686

So we do this:

[root@moto packages]# rpm -Uvh compat-gdbm-1.8.3-12.fc18.i686.rpm –force
Preparing…                ########################################### [100%]
   1:compat-gdbm            ########################################### [100%]
[root@moto packages]# rpm -aq|grep -i compat-gdbm
compat-gdbm-1.8.3-12.fc18.i686
[root@moto packages]#

Then we try the upgrade again.

yum install rpm-4.10.3.1-1.fc18.i686.rpm –skip-broken

And this finally appeared to allow us to upgrade rpm but upon checking, rpm still wasn't upgraded to the fc18 package.  So we remove –skip-broken flag and try again removing any packages yum errors on:

[root@moto packages]# rpm -Uvh –test filesystem-3.1-2.fc18.i686.rpm
error: Failed dependencies:
        rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem-3.1-2.fc18.i686
[root@moto packages]#

Then we do (some extrapolation from the error name above):

[root@moto packages]# rpm -qpR filesystem-3.1-2.fc18.i686.rpm
rpmlib(BuiltinLuaScripts) <= 4.2.2-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(X-CheckUnifiedSystemdir)
setup
rpmlib(PayloadIsXz) <= 5.2-1
[root@moto packages]#

Amd then:

# yumdownloader systemd

which gives us:

systemd-201-2.fc18.7.i686.rpm

But that didn't help.  So we try the rpm package road again but this time we notice something interesting:

[root@moto packages]# rpm -Uvh –force rpm-4.10.3.1-1.fc18.i686.rpm
error: Failed dependencies:
        libdb-5.3.so is needed by rpm-4.10.3.1-1.fc18.i686
        librpm.so.3 is needed by rpm-4.10.3.1-1.fc18.i686
        librpmio.so.3 is needed by rpm-4.10.3.1-1.fc18.i686
        rpm = 4.9.1.3-8.fc17 is needed by (installed) rpm-libs-4.9.1.3-8.fc17.i686
        rpm = 4.9.1.3-8.fc17 is needed by (installed) rpm-build-4.9.1.3-8.fc17.i686
        rpm = 4.9.1.3-8.fc17 is needed by (installed) rpm-python-4.9.1.3-8.fc17.i686
        rpm = 4.9.1.3-8.fc17 is needed by (installed) rpm-devel-4.9.1.3-8.fc17.i686
[root@moto packages]# ls -al rpm-libs* rpm-build* rpm-python* rpm-devel*
ls: cannot access rpm-libs*: No such file or directory
ls: cannot access rpm-build*: No such file or directory
ls: cannot access rpm-python*: No such file or directory
ls: cannot access rpm-devel*: No such file or directory
[root@moto packages]#
[root@moto packages]# yumdowloader rpm-libs
-bash: yumdowloader: command not found
[root@moto packages]# yumdownloader rpm-libs
Config time: 0.008
repo time: 0.000
Setting up Package Sacks
pkgsack time: 0.088
Running compare_providers() for [
, ]
Reading Local RPMDB
rpmdb time: 0.000
base package rpm is installed for rpm-libs-4.10.1-3.fc18.i686
base package rpm is installed for rpm-libs-4.10.3.1-1.fc18.i686
Best Order: [(
, 1002), (, -1014)]
rpm-libs-4.10.3.1-1.fc18.i686.rpm                                                                             | 259 kB     00:00
[root@moto packages]#

So we get the packages using yumdownloader.  Looks like a case of alot of missing packages.  All in all after some more attempts, we get into this RPM error:

[root@moto F13toF18]# yum –releasever=18 –disableplugin=presto distro-sync
Config time: 0.005
Yum Version: 3.4.3
COMMAND: yum –releasever=18 –disableplugin=presto distro-sync
Installroot: /
Reading Local RPMDB
rpmdb time: 0.000
illegal flag specified to DB_ENV->set_timeout
Segmentation fault
[root@moto F13toF18]#

[root@moto F13toF18]# rpmdb –rebuilddb
illegal flag specified to DB_ENV->set_timeout
Segmentation fault
[root@moto F13toF18]#

To recover from this, I extract the files like this to get at the files then copy them over:

[root@moto F13toF18]# ls -altri rpm*17*
3581115 -rw-r–r– 1 root root  132817 Aug  9 14:28 rpm-build-4.9.1.3-6.fc17.x86_64.rpm
3581116 -rw-r–r– 1 root root 1015293 Aug  9 14:30 rpm-4.9.1.3-6.fc17.i686.rpm
3581117 -rw-r–r– 1 root root   93841 Aug  9 14:31 rpm-devel-4.9.1.3-6.fc17.i686.rpm
3581118 -rw-r–r– 1 root root  253461 Aug  9 14:32 rpm-libs-4.9.1.3-6.fc17.i686.rpm
3581119 -rw-r–r– 1 root root   64877 Aug  9 14:33 rpm-python-4.9.1.3-6.fc17.i686.rpm
[root@moto F13toF18]#
[root@moto F13toF18]#
[root@moto F13toF18]# rpm2cpio $(ls rpm*17*) | cpio -idm
v

 

[root@moto F13toF18]# /bin/cp -Rp ./usr/* /usr/; /bin/cp -Rp ./etc/* /etc/; /bin/cp -Rp ./var/* /var/; /bin/cp -Rp ./bin/* /bin/
[root@moto F13toF18]# rpm -aq
rpm: error while loading shared libraries: librpm.so.2: cannot open shared object file: No such file or directory
[root@moto F13toF18]#

And then:

[root@moto lib]# ln -s librpm.so.3 librpm.so.2
[root@moto lib]# ls -altri librpm.so.3
4456625 lrwxrwxrwx 1 root root 15 Aug  9 01:31 librpm.so.3 -> librpm.so.3.0.3
[root@moto lib]#

[root@moto F13toF18]# rpm
rpm: error while loading shared libraries: librpmio.so.2: cannot open shared object file: No such file or directory
[root@moto F13toF18]#
[root@moto F13toF18]# cd /usr/lib
[root@moto lib]# ln -s librpmio.so.3
ln: failed to create symbolic link `./librpmio.so.3': File exists
[root@moto lib]# ln -s librpmio.so.3 librpmio.so.2
[root@moto lib]# rpm
RPM version 4.10.3.1
Copyright (C) 1998-2002 – Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Then I got this but realized I accidentally grabbed the wrong package (x86_64 istead of the i686):

 

 

[root@moto lib]# rpm -qa|grep -i rpm
BDB1565 DB_ENV->stat_print: method not permitted before handle's open method
[root@moto lib]#

3581115 -rw-r–r–   1 root root  132817 Aug  9 14:28 rpm-build-4.9.1.3-6.fc17.x86_64.rpm

So I get the appropriate one and try again but the same issue.  I revisit what I did then get th emissing package:

rpm -Uvh rpm-4.10.3.1-1.fc18.i686.rpm rpm-devel-4.10.3.1-1.fc18.i686.rpm rpm-build-libs-4.10.3.1-1.fc18.i686.rpm rpm-libs-4.10.3.1-1.fc18.i686.rpm rpm-python-4.10.3.1-1.fc18.i686.rpm –nodeps
 

[root@moto F13toF18]# strings /lib/libdb-5.2.so|grep -i "method not permitted"
BDB1564 %s: method not permitted when environment specified
BDB1565 %s: method not permitted %s handle's open method
BDB3029 DB_ENV->memp_fcreate: method not permitted when replication is configured
BDB3001 %smethod not permitted when replication is configured
[root@moto F13toF18]# rpm -aq
BDB1565 DB_ENV->stat_print: method not permitted before handle's open method
Segmentation fault
[root@moto F13toF18]# cat /etc/*release*
Fedora release 18 (Spherical Cow)
NAME=Fedora
VERSION="18 (Spherical Cow)"
ID=fedora
VERSION_ID=18
PRETTY_NAME="Fedora 18 (Spherical Cow)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:18"
Fedora release 18 (Spherical Cow)
Fedora release 18 (Spherical Cow)
Fedora release 18 (Spherical Cow)
cpe:/o:fedoraproject:fedora:18
[root@moto F13toF18]#

So we check and restore some files to get this:

[root@moto F13toF18]# rpm -aq
illegal flag specified to DB_ENV->set_timeout
Segmentation fault
[root@moto F13toF18]#

Ad this means we're not linking to the right Berkeley DB library it appears.  So we have to down load and link manually libdb-5.3 appropriately:

[root@moto F13toF18]# rpm2cpio libdb-5.3.21-3.fc18.i686.rpm | cpio -idmv
rpm2cpio: error while loading shared libraries: libdb-5.3.so: cannot open shared object file: No such file or directory
cpio: premature end of archive
[root@moto F13toF18]#

So we temporarily link to the libdb-5.3.so to get rpm2cpio working.  Once done, we can try to use rpm and yum again hopefully:

[root@moto lib]# ls -altri libdb*
787025 -rwxr-xr-x 1 root root 1551836 Feb  8  2011 libdb-4.7.so
785046 -rwxr-xr-x 1 root root 1668908 Feb  8  2011 libdb_cxx-4.7.so
788599 -rwxr-xr-x 1 root root 1612404 Feb  8  2011 libdb-4.8.so
787003 -rwxr-xr-x 1 root root 1805292 Sep 20  2011 libdb-5.2.so
786395 -rwxr-xr-x 1 root root  297128 Sep 13  2012 libdbus-1.so.3.5.6
786391 lrwxrwxrwx 1 root root      18 Jul 19 12:16 libdbus-1.so.3 -> libdbus-1.so.3.5.6
790180 lrwxrwxrwx 1 root root      18 Jul 19 12:39 libdbus-1.so -> libdbus-1.so.3.5.6
[root@moto lib]# ln -s libdb-5.3.so ./libdb-5.2.so
ln: failed to create symbolic link `./libdb-5.2.so': File exists
[root@moto lib]# ln -s libdb-5.2.so ./libdb-5.3.so
[root@moto lib]# ls -altri libdb*
787025 -rwxr-xr-x 1 root root 1551836 Feb  8  2011 libdb-4.7.so
785046 -rwxr-xr-x 1 root root 1668908 Feb  8  2011 libdb_cxx-4.7.so
788599 -rwxr-xr-x 1 root root 1612404 Feb  8  2011 libdb-4.8.so
787003 -rwxr-xr-x 1 root root 1805292 Sep 20  2011 libdb-5.2.so
786395 -rwxr-xr-x 1 root root  297128 Sep 13  2012 libdbus-1.so.3.5.6
786391 lrwxrwxrwx 1 root root      18 Jul 19 12:16 libdbus-1.so.3 -> libdbus-1.so.3.5.6
790180 lrwxrwxrwx 1 root root      18 Jul 19 12:39 libdbus-1.so -> libdbus-1.so.3.5.6
784930 lrwxrwxrwx 1 root root      12 Aug  9 16:45 libdb-5.3.so -> libdb-5.2.so
[root@moto lib]#

And so rpm2cpio works now but not the rpm executable:

[root@moto F13toF18]# rpm2cpio libdb-5.3.21-3.fc18.i686.rpm | cpio -idmv
./usr/lib/libdb-5.3.so
./usr/lib/libdb-5.so
./usr/share/doc/libdb-5.3.21
./usr/share/doc/libdb-5.3.21/LICENSE
./usr/share/doc/libdb-5.3.21/README
3618 blocks
[root@moto F13toF18]#

 

But the same still.  Looks like another library or RPM itself:

[root@moto lib]# rpm -aq
illegal flag specified to DB_ENV->set_timeout
Segmentation fault
[root@moto lib]#

So we get the FC19 libdb but then get this:

[root@moto lib]# rpm -aq
rpm: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/libdb-5.3.so)
[root@moto lib]#

So we will get the FC19 rpm RPM's.

So unfortunately we got the same error + 3 others.  However, looks like after running rpm2cpio we do not need to worry about the first three it seems:

[root@moto F13toF18]# rpm -aq
error: bad option 'archcolor' at (null):91
error: bad option 'archcolor' at (null):91
error: cannot open /usr/lib/rpm/rpmrc at /usr/lib/rpm/redhat/rpmrc:1: No such file or directory
BDB1565 DB_ENV->stat_print: method not permitted before handle's open method
Segmentation fault
[root@moto F13toF18]#

So we'll focus on the one we need highlighted above.  We can get rid of all of these by unlinking like this:

[root@moto lib]# ls -altri /lib/libdb*
787025 -rwxr-xr-x 1 root root 1551836 Feb  8  2011 /lib/libdb-4.7.so
785046 -rwxr-xr-x 1 root root 1668908 Feb  8  2011 /lib/libdb_cxx-4.7.so
788599 -rwxr-xr-x 1 root root 1612404 Feb  8  2011 /lib/libdb-4.8.so
787003 -rwxr-xr-x 1 root root 1805292 Sep 20  2011 /lib/libdb-5.2.so
786395 -rwxr-xr-x 1 root root  297128 Sep 13  2012 /lib/libdbus-1.so.3.5.6
786391 lrwxrwxrwx 1 root root      18 Jul 19 12:16 /lib/libdbus-1.so.3 -> libdbus-1.so.3.5.6
790180 lrwxrwxrwx 1 root root      18 Jul 19 12:39 /lib/libdbus-1.so -> libdbus-1.so.3.5.6
784930 lrwxrwxrwx 1 root root      12 Aug  9 17:04 /lib/libdb-5.3.so -> libdb-5.2.so
[root@moto lib]# cd /lib/
[root@moto lib]# unlink /lib/libdb-5.3.so
[root@moto lib]# rpm -aq
rpm: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/libdb-5.3.so)
[root@moto lib]#
[root@moto lib]#
[root@moto lib]# pwd
/lib
[root@moto lib]# ln -s libdb-5.2.so libdb-5.3.so
[root@moto lib]# rpm -aq
error: bad option 'archcolor' at (null):91
error: bad option 'archcolor' at (null):91
error: cannot open /usr/lib/rpm/rpmrc at /usr/lib/rpm/redhat/rpmrc:1: No such file or directory
BDB1565 DB_ENV->stat_print: method not permitted before handle's open method
Segmentation fault
[root@moto lib]# unlink /lib/libdb-5.3.so
[root@moto lib]# rpm -aq
rpm: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/libdb-5.3.so)
[root@moto lib]#

Because we extracted the FC19 ones here (libdb-5.3.21-11.fc19.i686.rpm):

[root@moto lib]# ls -al /usr/lib/libdb-5*
lrwxrwxrwx 1 root root      22 Jul 19 12:17 /usr/lib/libdb-5.2.so -> ../../lib/libdb-5.2.so
-rwxr-xr-x 1 root root 1847852 Aug  9 17:24 /usr/lib/libdb-5.3.so
-rwxr-xr-x 1 root root 1847852 Aug  9 17:24 /usr/lib/libdb-5.so
[root@moto lib]#

So we extract the glibc-2.17-4.fc19.i686.rpm and copy all the files over to the system:

[root@moto F13toF18]# ls -ald etc usr var sbin lib
drwxr-xr-x 3 root root 4096 Aug  9 18:37 etc
drwxr-xr-x 4 root root 4096 Aug  9 18:37 lib
drwxr-xr-x 2 root root 4096 Aug  9 18:37 sbin
drwxr-xr-x 6 root root 4096 Aug  9 18:37 usr
drwxr-xr-x 4 root root 4096 Aug  9 18:37 var
[root@moto F13toF18]#

Which killed my ssh session right away.  But I reestablished it which was a relief.  Now that we copied the libraries, we unlink libdb-5.3.so from libdb-5.2.so as per above:

784930 lrwxrwxrwx 1 root root      12 Aug  9 18:27 libdb-5.3.so -> libdb-5.2.so
[root@moto lib]#
[root@moto lib]#
[root@moto lib]# unlink libdb-5.3.so
[root@moto lib]#

And big trouble when copying:

[root@moto F13toF18]# rpm -aq
error: bad option 'archcolor' at (null):91
error: bad option 'archcolor' at (null):91
error: cannot open /usr/lib/rpm/rpmrc at /usr/lib/rpm/redhat/rpmrc:1: No such file or directory
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 –  (-30969)
error: cannot open Packages database in /var/lib/rpm
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /var/lib/rpm
[root@moto F13toF18]# for KEY in $( ls -d etc var usr sbin lib); do /bin/cp -Rp ./$KEY/* /$KEY/; done
/bin/cp: cannot create regular file `/lib/ld-2.17.so': Text file busy
Bus error
/bin/cp: error while loading shared libraries: /lib/libc.so.6: file too short
/bin/cp: error while loading shared libraries: /lib/libc.so.6: file too short
/bin/cp: error while loading shared libraries: /lib/libc.so.6: file too short
[root@moto F13toF18]#
[root@moto F13toF18]#
[root@moto F13toF18]#
[root@moto F13toF18]# rpm -aq
rpm: error while loading shared libraries: /lib/libc.so.6: file too short
[root@moto F13toF18]#
[root@moto F13toF18]#
[root@moto F13toF18]# rpm -aq
rpm: error while loading shared libraries: /lib/libc.so.6: file too short
[root@moto F13toF18]# ls -al /lib/libc.so.6
ls: error while loading shared libraries: /lib/libc.so.6: file too short
[root@moto F13toF18]#

Thankfully we can use sash which is a statically linked shell for use in emergencies.  This is an emergency.  So let's use that to copy our stuff:

[root@moto F13toF18]# sash
Stand-alone shell (version 3.7)
> -cp
usage: -cp srcName … destName
> -ls
.
..
16
18
19

> -cp ./lib/* /lib/
/lib//i686: Is a directory
/lib//rtkaio: Is a directory
> ls
16                                              fedora-release-rawhide-15-3.noarch.rpm   rpm-build-libs-4.9.1.3-6.fc17.i686.rpm
18                                              glibc-2.17-4.fc19.i686.rpm               rpm-devel-4.11.0.1-2.fc19.i686.rpm
19                                              lib                                      rpm-devel-4.8.0-14.fc13.i686.rpm
dmesg.Jun.20.2013.1.50.PM                       libdb-5.2.36-5.fc17.i686.rpm             rpm-devel-4.9.1.3-1.fc16.i686.rpm
errors2.txt                                     libdb-5.2.so.old                         rpm-devel-4.9.1.3-6.fc17.i686.rpm
errors.txt                                      libdb-5.3.21-11.fc19.i686.rpm            rpmfusion-free-release-18-3.noarch.rpm
etc                                             libdb-5.3.21-3.fc18.i686.rpm             RPM-GPG-KEY-rpmfusion-free-fedora-18
F13-to-F18-upgrade.June.5.2013.2:00.AM.txt      messages.Jul.20.2013.1.50.PM             rpm-libs-4.11.0.1-2.fc19.i686.rpm
fedora-release-14-1.noarch.rpm                  out-new-0.txt                            rpm-libs-4.8.0-14.fc13.i686.rpm
fedora-release-15-3.noarch.rpm                  out-new.txt                              rpm-libs-4.9.1.3-6.fc17.i686.rpm
fedora-release-16-1.noarch.rpm                  out.txt                                  rpm-python-4.11.0.1-2.fc19.i686.rpm
fedora-release-17-2.noarch.rpm                  rpm-4.11.0.1-2.fc19.i686.rpm             rpm-python-4.8.0-14.fc13.i686.rpm
fedora-release-18-1.noarch.rpm                  rpm-4.8.0-14.fc13.i686.rpm               rpm-python-4.9.1.3-1.fc16.i686.rpm
fedora-release-19-2.noarch.rpm                  rpm-4.9.1.3-1.fc16.i686.rpm              rpm-python-4.9.1.3-6.fc17.i686.rpm
fedora-release-notes-14.0.3-1.fc14.noarch.rpm   rpm-4.9.1.3-6.fc17.i686.rpm              sbin
fedora-release-notes-15.1.0-1.fc15.noarch.rpm   rpm-build-4.11.0.1-2.fc19.i686.rpm       usr
fedora-release-notes-16.1.0-1.fc16.noarch.rpm   rpm-build-4.9.1.3-1.fc16.i686.rpm        var
fedora-release-notes-17.1.0-1.fc17.noarch.rpm   rpm-build-4.9.1.3-6.fc17.i686.rpm        yum-3.2.28-7.fc14.noarch.rpm
fedora-release-notes-17.95.0-1.fc19.noarch.rpm  rpm-build-libs-4.11.0.1-2.fc19.i686.rpm
fedora-release-notes-18.0.0-3.fc18.noarch.rpm   rpm-build-libs-4.9.1.3-1.fc16.i686.rpm
> pwd
/Files/F13toF18
>

So, lessons learned, instead of trying to copy all the folders at once, copy the ./lib one individually from the libc package we extracted above, using sash instead of this:

for KEY in $( ls -d etc var usr sbin lib); do /bin/cp -Rp ./$KEY/* /$KEY/; done

This is because during the copy, cp will break and won't copy libc.so.6 properly breaking the rest of the for loop.  Take the lib folder out of the loop on the next copy to avoid the break:

[root@moto F13toF18]# for KEY in $( ls -d etc var usr sbin); do /bin/cp -Rp ./$KEY/* /$KEY/; done
[root@moto F13toF18]#

Since we already copied it using sash above.  The ./lib subfolders can be copied using regular cp since it will work at that point.  Since RPM complains about some of the libraries we have, we'll individually identify them, run strings to search for the error message we are getting in each then update them accordingly:

[root@moto lib]# ldd /bin/rpm
        linux-gate.so.1 =>  (0xb7768000)
        librpm.so.3 => /usr/lib/librpm.so.3 (0xb76c9000)
        librpmio.so.3 => /usr/lib/librpmio.so.3 (0xb769f000)
        libselinux.so.1 => /lib/libselinux.so.1 (0xb767f000)
        libcap.so.2 => /lib/libcap.so.2 (0xb767a000)
        libacl.so.1 => /lib/libacl.so.1 (0xb7671000)
        libdb-5.3.so => /usr/lib/libdb-5.3.so (0xb74b0000)
        libbz2.so.1 => /lib/libbz2.so.1 (0xb74a0000)
        libelf.so.1 => /usr/lib/libelf.so.1 (0xb7489000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0xb745f000)
        liblua-5.1.so => /usr/lib/liblua-5.1.so (0xb7433000)
        libm.so.6 => /lib/libm.so.6 (0xb73ef000)
        libnss3.so => /usr/lib/libnss3.so (0xb72ab000)
        libpopt.so.0 => /lib/libpopt.so.0 (0xb72a2000)
        libz.so.1 => /lib/libz.so.1 (0xb728c000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7287000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb726d000)
        libc.so.6 => /lib/libc.so.6 (0xb70ae000)
        /lib/ld-linux.so.2 (0xb7769000)
        libattr.so.1 => /lib/libattr.so.1 (0xb70a9000)
        librt.so.1 => /lib/librt.so.1 (0xb70a0000)
        libnssutil3.so => /usr/lib/libnssutil3.so (0xb707c000)
        libplc4.so => /lib/libplc4.so (0xb7076000)
        libplds4.so => /lib/libplds4.so (0xb7070000)
        libnspr4.so => /lib/libnspr4.so (0xb7033000)
[root@moto lib]#

Here's an example of how to do this:

[root@moto lib]# strings /usr/lib/librpm.so.3|grep -i "error: bad option"
[root@moto lib]# strings /usr/lib/librpm.so.3|grep -i "bad option"
bad option '%s' at %s:%d
[root@moto lib]# ls -al /usr/lib/librpm.so.3
lrwxrwxrwx 1 root root 15 Aug  9 01:31 /usr/lib/librpm.so.3 -> librpm.so.3.0.3
[root@moto lib]# ls -al /usr/lib/librpm.so.3.0.3
-rwxr-xr-x 1 root root 398888 Feb  6  2013 /usr/lib/librpm.so.3.0.3
[root@moto lib]#

whereas the latest version available from the FC19 rpm-libs rpm is:

[root@moto F13toF18]# rpm -qlp rpm-libs-4.11.0.1-2.fc19.i686.rpm
error: bad option 'archcolor' at (null):91
error: bad option 'archcolor' at (null):91
error: cannot open /usr/lib/rpm/rpmrc at /usr/lib/rpm/redhat/rpmrc:1: No such file or directory

error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 –  (-30969)
error: cannot open Packages database in /var/lib/rpm
warning: rpm-libs-4.11.0.1-2.fc19.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fb4b18e6: NOKEY
/usr/lib/librpm.so.3
/usr/lib/librpm.so.3.1.0
/usr/lib/librpmio.so.3
/usr/lib/librpmio.so.3.1.0
[root@moto F13toF18]#

Extracting ( rpm2cpio rpm-libs-4.11.0.1-2.fc19.i686.rpm | cpio -idmv ) and copying the 3.2 librpm to /usr/lib results in one of the errors disappearing:

[root@moto lib]# strings /usr/lib/librpm.so.3.0.3 | grep -i archcolor
[root@moto lib]#

whereas the new one does have it:

[root@moto F13toF18]# ls -altri ./usr/lib/
total 588
1978612 -rwxr-xr-x 1 root root 416256 May 28 03:15 librpm.so.3.1.0
1978614 -rwxr-xr-x 1 root root 166824 May 28 03:15 librpmio.so.3.1.0
1978598 lrwxrwxrwx 1 root root     15 Aug  9 21:18 librpm.so.3 -> librpm.so.3.1.0
1978613 lrwxrwxrwx 1 root root     17 Aug  9 21:18 librpmio.so.3 -> librpmio.so.3.1.0
1684496 drwxr-xr-x 3 root root   4096 Aug  9 21:18 ..
1684497 drwxr-xr-x 2 root root   4096 Aug  9 21:18 .
[root@moto F13toF18]# strings ./usr/lib/librpm.so.3|grep -i archcolor
rpmGetArchColor
archcolor

[root@moto F13toF18]#

Next we check the linkeage in the existing folder:

[root@moto F13toF18]# ls -altri /usr/lib/librpm.so.3*
4456493 -rwxr-xr-x 1 root root 398888 Feb  6  2013 /usr/lib/librpm.so.3.0.3
4456625 lrwxrwxrwx 1 root root     15 Aug  9 01:31 /usr/lib/librpm.so.3 -> librpm.so.3.0.3
[root@moto F13toF18]# ls -altri /usr/lib/librpmio.so.3*
4456515 -rwxr-xr-x 1 root root 162652 Feb  6  2013 /usr/lib/librpmio.so.3.0.3
4456513 lrwxrwxrwx 1 root root     17 Aug  9 01:31 /usr/lib/librpmio.so.3 -> librpmio.so.3.0.3
[root@moto F13toF18]#

So we need to copy over the new one and relink:

[root@moto F13toF18]# cd /usr/lib
[root@moto lib]# unlink /usr/lib/librpm.so.3
[root@moto lib]# unlink /usr/lib/librpmio.so.3
[root@moto lib]#
[root@moto lib]#
[root@moto lib]#
[root@moto lib]# ls -altri /usr/lib/librpm.so.3*
4456493 -rwxr-xr-x 1 root root 398888 Feb  6  2013 /usr/lib/librpm.so.3.0.3
[root@moto lib]# ls -altri /usr/lib/librpmio.so.3*
4456515 -rwxr-xr-x 1 root root 162652 Feb  6  2013 /usr/lib/librpmio.so.3.0.3
[root@moto lib]# pwd
/usr/lib
[root@moto lib]# cp -ip /Files/F13toF18/usr/lib/librpm
librpmio.so.3      librpmio.so.3.1.0  librpm.so.3        librpm.so.3.1.0
[root@moto lib]# cp -ip /Files/F13toF18/usr/lib/librpm.so.3.1.0
cp: missing destination file operand after `/Files/F13toF18/usr/lib/librpm.so.3.1.0'
Try `cp –help' for more information.
[root@moto lib]# cp -ip /Files/F13toF18/usr/lib/librpm.so.3.1.0 .
[root@moto lib]# cp -ip /Files/F13toF18/usr/lib/librpmio.so.3.1.0 .
[root@moto lib]# ls -altri /usr/lib/librpm.so.3*
4456493 -rwxr-xr-x 1 root root 398888 Feb  6  2013 /usr/lib/librpm.so.3.0.3
4456513 -rwxr-xr-x 1 root root 416256 May 28 03:15 /usr/lib/librpm.so.3.1.0
[root@moto lib]# ls -altri /usr/lib/librpmio.so.3*
4456515 -rwxr-xr-x 1 root root 162652 Feb  6  2013 /usr/lib/librpmio.so.3.0.3
4456625 -rwxr-xr-x 1 root root 166824 May 28 03:15 /usr/lib/librpmio.so.3.1.0
[root@moto lib]# pwd
/usr/lib
[root@moto lib]# ln -s librpm.so.3.1.0 librpm.so.3
[root@moto lib]# ln -s librpmio.so.3.1.0 librpmio.so.3
[root@moto lib]# ls -altri /usr/lib/librpmio.so.3*
4456515 -rwxr-xr-x 1 root root 162652 Feb  6  2013 /usr/lib/librpmio.so.3.0.3
4456625 -rwxr-xr-x 1 root root 166824 May 28 03:15 /usr/lib/librpmio.so.3.1.0
4456748 lrwxrwxrwx 1 root root     17 Aug  9 21:38 /usr/lib/librpmio.so.3 -> librpmio.so.3.1.0
[root@moto lib]# ls -altri /usr/lib/librpm.so.3*
4456493 -rwxr-xr-x 1 root root 398888 Feb  6  2013 /usr/lib/librpm.so.3.0.3
4456513 -rwxr-xr-x 1 root root 416256 May 28 03:15 /usr/lib/librpm.so.3.1.0
4456745 lrwxrwxrwx 1 root root     15 Aug  9 21:37 /usr/lib/librpm.so.3 -> librpm.so.3.1.0
[root@moto lib]#

So now that we run the rpm command again to see what's the latest output to verify we are seeing less issues (Normally this is done with RPM but we need to fix up RPM so we can use it to automaticaly fix up everything else).  And sure enough, the error about archcolor is gone and so is the error about rpmrc:

[root@moto lib]# rpm -aq 
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 –  (-30969)
error: cannot open Packages database in /var/lib/rpm
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /var/lib/rpm
[root@moto lib]#

Next we look after BDB0091:

[root@moto lib]# strings /usr/lib/libdb-5.3.so | grep BDB0091
BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
[root@moto lib]#

[root@moto lib]# ls -al /var/lib/rpm
total 324000
drwxr-xr-x.  2 root root      4096 Aug  9 21:46 .
drwxr-xr-x. 97 root root      4096 Aug  9 17:48 ..
-rw-r–r–.  1 rpm  rpm   22614016 Aug  9 01:31 Basenames
-rw-r–r–.  1 rpm  rpm      24576 Aug  9 01:31 Conflictname
-rw-r–r–   1 root root    262144 Aug  9 01:31 __db.001
-rw-r–r–   1 root root     81920 Aug  9 01:31 __db.002
-rw-r–r–   1 root root   1318912 Aug  9 01:31 __db.003
-rw-r–r–   1 root root         0 Aug  9 21:46 .dbenv.lock
-rw-r–r–.  1 rpm  rpm   10817536 Aug  9 01:31 Dirnames
-rw-r–r–   1 root root  42332160 Jul 19 23:41 Filedigests
-rw-r–r–.  1 rpm  rpm   21217280 Dec  5  2008 Filemd5s
-rw-r–r–.  1 rpm  rpm     110592 Aug  9 01:31 Group
-rw-r–r–.  1 rpm  rpm      53248 Aug  9 01:31 Installtid
-rw-r–r–.  1 rpm  rpm     172032 Aug  9 01:31 Name
-rw-r–r–   1 root root     86016 Aug  9 01:03 Obsoletename
-rw-r–r–.  1 rpm  rpm  238227456 Aug  9 01:31 Packages
-rw-r–r–.  1 rpm  rpm    2707456 Aug  9 01:31 Providename
-rw-r–r–.  1 rpm  rpm     774144 Jul 19 23:41 Provideversion
-rw-r–r–.  1 rpm  rpm      12288 Jul 19 21:01 Pubkeys
-rw-r–r–.  1 rpm  rpm    1986560 Aug  9 01:31 Requirename
-rw-r–r–.  1 rpm  rpm    1200128 Jul 19 23:41 Requireversion
-rw-r–r–   1 root root         0 Jun 27  2010 .rpm.lock
-rw-r–r–.  1 rpm  rpm     626688 Aug  9 01:31 Sha1header
-rw-r–r–.  1 rpm  rpm     323584 Aug  9 01:31 Sigmd5
-rw-r–r–.  1 rpm  rpm      12288 Aug  9 01:30 Triggername
[root@moto lib]#

In this case our libdb-5.3 was already fine from our previous changes:

[root@moto F13toF18]# rpm2cpio libdb-5.3.21-11.fc19.i686.rpm | cpio -idmv
./usr/lib/libdb-5.3.so
./usr/lib/libdb-5.so
./usr/share/doc/libdb-5.3.21
./usr/share/doc/libdb-5.3.21/LICENSE
./usr/share/doc/libdb-5.3.21/README
3626 blocks
[root@moto F13toF18]# ls -al ./usr/lib/libdb-5.3.so
-rwxr-xr-x 1 root root 1847852 May 16 07:41 ./usr/lib/libdb-5.3.so
[root@moto F13toF18]# ls -al /usr/lib/libdb-5.3*
-rwxr-xr-x 1 root root 1847852 Aug  9 17:24 /usr/lib/libdb-5.3.so
[root@moto F13toF18]#

So we may now need to look at converting the RPM database on our system.  First, let's back it up:

[root@moto lib]# cp -iRp /var/lib/rpm /var/lib/rpm-Aug.09.2013
[root@moto lib]# du -sm /var/lib/rpm
317     /var/lib/rpm
[root@moto lib]# diff /var/lib/rpm /var/lib/rpm-Aug.09.2013
[root@moto lib]#

Once that's done, run:

[root@moto F13toF18]# rpm –rebuilddb
[root@moto F13toF18]#

And for a change we get no errors from at least one command.  Now we try a simple rpm command again:

(continued here)

Cheers,
TK

 

 

 

2 Responses to “Upgrading to Fedora 19”

  1. [...] Upgrading to Fedora 19 (continued) (continued from here) [...]

  2. [...] distribution.  More towards the error, it came about when trying to upgrade rpm using yum upgrade rpm.  There was no simple solution.  It was a catch-22 situation.  We needed filesystem [...]

Leave a Reply

 


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License