RPM dead after upgrade of Fedora 8 to Fedora 10
Hello,
I just upgraded my machine from Fedora 8 to Fedora 10, and now rpm isn't working at all. If I do the "rpm -qa" command, it just returns with nothing. I looked in the /var/lib/rpm directory, and there were no __db.* files. I tried doing "rpm --rebuilddb", but that just immediately returned without any errors or messages, and didn't seem to fix anything. In fact, the only command I've found that returned some text, was the "rpm -?" command, which returned the standard help text. I've done so many google searches now that my head is spinning. Anyone have any ideas of how to fix this or what to check? I know the basics of rpm, but this seems to be way beyond that. Files in /var/lib/rpm: Basenames Conflictname Dirnames Filedigests Filemd5s Group Installtid Name Packages Providename Provideversion Pubkeys Requirename Requireversion Sha1header Sigmd5 Triggername Thanks for any help or ideas, B. J. |
Quote:
Quote:
Is there anything in /var/log/messages (and /var/log/audit/* if you have it) that points to problems? What does 'ls -alZh /var/lib/rpm' show? If the RPM database files in /var/lib/rpm have a size greater than zero, what does '/usr/lib/rpm/rpmdb_dump /var/lib/rpm/Name | wc -l' show? |
Quote:
Quote:
Quote:
drwxr-xr-x root root system_u:object_r:var_lib_t:s0 .. -rw-r--r-- rpm rpm ? Basenames -rw-r--r-- rpm rpm ? Conflictname -rw-r--r-- rpm rpm ? Dirnames -rw-r--r-- root root ? Filedigests -rw-r--r-- rpm rpm ? Filemd5s -rw-r--r-- rpm rpm ? Group -rw-r--r-- rpm rpm ? Installtid -rw-r--r-- rpm rpm ? Name -rw-r--r-- rpm rpm ? Packages -rw-r--r-- rpm rpm ? Providename -rw-r--r-- rpm rpm ? Provideversion -rw-r--r-- rpm rpm ? Pubkeys -rw-r--r-- rpm rpm ? Requirename -rw-r--r-- rpm rpm ? Requireversion -rw-r--r-- rpm rpm ? Sha1header -rw-r--r-- rpm rpm ? Sigmd5 -rw-r--r-- rpm rpm ? Triggername I also tried to chown rpm:rpm for Filedigests, but I don't see any changes in getting rpm to work. I'm not sure what I did to get that ownership to root:root. Quote:
|
Your 'wc -l' shows its got legible entries which is good. Files in /var/lib/rpm should have TE (system_u object_r) rpm_var_lib_t. Try 'chcon -R rpm_var_lib_t /var/lib/rpm/*', then try any rpm ops again?
|
Quote:
chcon: invalid context: rpm_var_lib_t UPDATE: I noticed that the '.' directory entry has the rpm_var_lib_t, so I tried a 'chcon --reference=. *' from inside the /usr/lib/rpm directory, and now I have this: drwxr-xr-x root root system_u:object_r:rpm_var_lib_t:s0 . drwxr-xr-x root root system_u:object_r:var_lib_t:s0 .. -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Basenames -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Conflictname -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Dirnames -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Filedigests -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Filemd5s -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Group -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Installtid -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Name -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Packages -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Providename -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Provideversion -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Pubkeys -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Requirename -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Requireversion -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Sha1header -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Sigmd5 -rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Triggername (hopefully that :s0 isn't a problem) And 'rpm --qa' and 'rpm --rebuilddb' still don't do anything. |
CYP attach the output from running 'strace -v rpm -qf /bin/ps 2>&1 | tee /tmp/rpm.log' as root account user?
|
1 Attachment(s)
Quote:
|
One of the basic things of a strace log is that you can see what it tries to find, opens or reads. In your case it doesn't even try to find RPM configs or 'open("/var/lib/rpm/", ..)'. Did you ever try to relabel the complete filesystem after installing F10? If you boot the F10 installer CD/DVD in resuce mode, mount the drive. chroot to it, then run any rpm command, does that show anything usable?
|
Quote:
Now I'll take a backup of the system and then start investigating all of the files in the lib64 dir to see if there is anything else that didn't upgrade properly. So a great big thanks goes to you for helping me figure out the problem! Now I just have to get my asterisk server running again! :D And, I have learned my lesson about jumping releases. Fedora 11 will be the next version installed on this thing. |
Quote:
Quote:
Other than that: well done! |
All times are GMT -5. The time now is 01:30 AM. |