Yum corrupted on CentOS 6.2, Problem importing one the python modules.
Hello Guys,
After a sudden power outage on a server where CentOS 6.2 is installed i can no longer use Yum. Whenever i run Yum i get the following: Code:
yum install sendmail Have anyone faced a similar problem before? I'd appreciate any clues to help me dig deeper. Thanks. |
you are aware that 6.2 is not supported any longer
and that the centos "update" repo was moved to the historical "vault" CentOS is currently only supporting 6.3 and the much older and current 5.8 it is recommended to upgrade but yum is normally used depending and that is a VERY big depending depending on just when you last ran Code:
su - if so you can try a force reinstall of that from the historical vault but before you try you must make 100% sure that the last update is what you have installed run this Code:
su - http://vault.centos.org/6.2/updates/i386/Packages/ python-2.6.6-29.el6_2.2.i686.rpm and ldap is in http://vault.centos.org/6.2/os/i386/Packages/ python-ldap-2.3.10-1.el6.i686.rpm IF those match the output of the what is installed ( the above rpm grep commands ) then force a reinstall download the two then Code:
su - "python-2.6.6-29.el6_2.2.i686.rpm" may or may not need to be reinstalled then you might want to upgrade to 6.3 this is a copy of the README "place-holder" in the 6.2 repo directory on the servers Quote:
|
Hello John,
Thank you very much for the detailed reply, i wasn't aware that version 6.2 is not supported anymore. Also last time i ran yum update, if i did, would be months ago. That said, there also seems to be a problem with rpm and its database. I ran rpm -qa | grep python it didn't return anything, then i ran rpm -qa and instead of listing the packages it returned: Code:
[root@insync ~]# rpm -qa Code:
[root@insync tmp]# rpm -Uvh openldap-ltb-2.4.33-1.el6.i686.rpm I tried a force install on an irrelevant package just to try and i got: Code:
[root@insync tmp]# rpm -vv --install --force python-myghty-1.1-11.el6.noarch.rpm |
?"openldap-ltb-2.4.33-1.el6.i686.rpm "
that is not the one in the 6.2 vault , nor the 6.3 os repo so you had installed openldap that "key" error is you do not have the security key to check it also from where did you get that rpm ? the version in the centos 6.2 vault is "openldap-2.4.23-20.el6.i686.rpm" if that different version IS what was installed then you might want to read the rpm man page and the help page Code:
su - and use the "--nosignature" option that dose not check if that rpm's security signature matches the the one on file on your computer but the file you are trying to force install MUSTbe the exact same that was installed if that dose not work you "can" ( last resort ) copy/paste the "libldap-2.4.so.2" after you extract it from the rpm file-roller will extract the rpm format archive you will get ( in the same folder ) a /lib folder but you must be root to copy/paste it into /lib |
Hello John,
Thanks again for your reply. I downloaded the package openldap-2.4.23-20.el6.i686.rpm from the vault and i had to use --signature and --nodigest to overcome the signing problem. But i got into another problem the dependencies as you can see below: Quote:
Quote:
What do you think? |
# 5
Quote:
I.e. use "x86_64" packages instead. Verifying the architecture : $ uname -a |
Hi Knudfl,
Quote:
|
That's 32bit alright ... you can try
Code:
rpm -Va It'll tell you how bad the problem is I guess. The first 2 or 3 items in each problem list are pretty fundamental files. If it can't them them you're pretty stuffed... :( Is the system still doing its normal job ie is it just yum/rpm that can't see those files, or do normal operations also have the same problem? Have you checked the perms & ownerships against a known good system? The rpm cmd above should tell you a lot. If you do need to fix perms/ownerships, see this http://www.cyberciti.biz/tips/reset-...ermission.html |
Hello Chris,
Thanks for your reply. rpm -Va doesn't return anything. Code:
[root@insync tmp]# rpm -Va I tried rebuilding and reinitiating the rpm database with no luck. Also i seem to have a signature/Hash problem as any package i download fail... Seems like rpm and yum don't know where the location of the file they need to run... |
Hmm; I take it you didn't interrupt that cmd? Normally it'll flag at least a few files due to custom edits etc.
If it thinks ALL files are fine, but can't actually install/update anything, that's REALLY weird. What about my qn re perms/ownerships; any way to check; did you read that link, it may help? Theoretically anything is fixable, but I'd at least start thinking about forcing an OS upgrade to 6.3. I hope it can backup itself... Speaking of which, check a very recent backup ie since the problem started; they may or may not be valid... Anything interesting in /var/log/yum.log? |
Well i can't use rpm in any way since the simplest is rpm -qa that i supposed to list the packages and it returns:
Quote:
How can i force an upgrade to 6.3 when i can't use yum or rpm? Unfortunately i don't have system backup. Thanks, Wassim. |
Quote:
one ( and i think you did this ) has you run "rm" on the rpm database file -- i never liked that ------------ cd /var/lib rm __db* ------------- my normal is ( using yum also ) Code:
su - what happens if you run this Code:
su - in an emergency ( and the procedure MIGHT kill the install so.....) and you need to reboot Warning: manually extract the files in the rpm ( do not install ) use file-roller in gnome to extract the rpm ( it is a cpio format ) the cipo terminal program can be used but the rpm is also zipped see: " cipo --help " then in the NEW folders in the folder you extracted it in, the /etc /lib /usr folders have the files BUT THE 100% MUST BE THE EXACT 100% THE EXACT same versions that ARE INSTALLED that rpm MUST be the one that was installed to begin with then copy /paste the lib ( and it's sim links )in where it belongs but this might kill the install if it is a mismatch then reboot cross your fingers |
Hello John,
Yum is not working so when i issue yum clean all i get: Quote:
Quote:
What packages need replacement? rpm and yum and python? |
/lib/libldap-2.4.so.2: undefined symbol: ber_sockbuf_io_udp
|
All times are GMT -5. The time now is 01:17 AM. |