Hi, I have upgraded Centos from 3.x to 4.3.
The upgrade apparently didn't go too bad. I had to do the upgrade remotely, and I used as a base the post at http://www.centos.org/modules/newbb/viewtopic.php?topic_id=382
I rebooted the server, and it works. But yum does not work anymore, apparently due to some conflict between rpmlibs and selinux.
This is the error that I get:
--------------------------
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
/usr/lib/python2.3/site-packages/rpmmodule.so: undefined symbol: rpmtsSetREContext
Please install a package which provides this module, or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python, which is: 2.3.4 (#1, Feb 22 2005, 04:09:37) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]
--------------------------
These are the relevant rpms that I have installed in my system: python-2.3.4-14.1 rpm-4.3.3-13_nonptl rpm-libs-4.3.3-13_nonptl yum-2.4.2-2.centos4
any suggestion?
Thanks in advance, Andres
On Wed, Sep 20, 2006 at 05:16:09PM +0100, Andres Baravalle enlightened us:
I have upgraded Centos from 3.x to 4.3.
The upgrade apparently didn't go too bad. I had to do the upgrade remotely, and I used as a base the post at http://www.centos.org/modules/newbb/viewtopic.php?topic_id=382
I rebooted the server, and it works. But yum does not work anymore, apparently due to some conflict between rpmlibs and selinux.
This is the error that I get:
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
/usr/lib/python2.3/site-packages/rpmmodule.so: undefined symbol: rpmtsSetREContext
Please install a package which provides this module, or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python, which is: 2.3.4 (#1, Feb 22 2005, 04:09:37) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]
These are the relevant rpms that I have installed in my system: python-2.3.4-14.1 rpm-4.3.3-13_nonptl rpm-libs-4.3.3-13_nonptl yum-2.4.2-2.centos4
Is python-rpm installed?
2006/9/20, Matt Hyclak hyclak@math.ohiou.edu:
Is python-rpm installed?
-- Matt Hyclak
Hi, if you mean rpm-python, yes. I haven't a package called python-rpm.
I have rebooted with selinux enabled as permissive and yum it's not working either. Before it was set up as disabled.
Andres
On Wed, Sep 20, 2006 at 06:58:53PM +0100, Andres Baravalle enlightened us:
2006/9/20, Matt Hyclak hyclak@math.ohiou.edu:
Is python-rpm installed?
Hi, if you mean rpm-python, yes. I haven't a package called python-rpm.
Yes, I did. I even double checked it on my system and still typed it wrong...
I have rpm-python-4.3.3-18_nonptl installed.
I have rebooted with selinux enabled as permissive and yum it's not working either. Before it was set up as disabled.
I don't think your error has anything to do with SELinux, per se.
required to run yum. The error leading to this problem was:
/usr/lib/python2.3/site-packages/rpmmodule.so: undefined symbol: rpmtsSetREContext
indicates to me that a library is missing or can't be found. What does
ldd /usr/lib/python2.3/site-packages/rpmmodule.so
tell you?
And now you know why upgrades between major versions are not supported ;-)
Matt
2006/9/20, Matt Hyclak hyclak@math.ohiou.edu:
On Wed, Sep 20, 2006 at 06:58:53PM +0100, Andres Baravalle enlightened us:
2006/9/20, Matt Hyclak hyclak@math.ohiou.edu:
Is python-rpm installed?
Hi, if you mean rpm-python, yes. I haven't a package called python-rpm.
Yes, I did. I even double checked it on my system and still typed it wrong...
I have rpm-python-4.3.3-18_nonptl installed.
I have rebooted with selinux enabled as permissive and yum it's not working either. Before it was set up as disabled.
I don't think your error has anything to do with SELinux, per se.
required to run yum. The error leading to this problem was:
/usr/lib/python2.3/site-packages/rpmmodule.so: undefined symbol: rpmtsSetREContext
indicates to me that a library is missing or can't be found. What does
ldd /usr/lib/python2.3/site-packages/rpmmodule.so
tell you?
And now you know why upgrades between major versions are not supported ;-)
Matt
Hi Matt, upgrading rpm-python to your version (alog with the other rpm* packages) made it work. Thanks!
I know that it's not suggested to upgrade but I was getting stuck with old packages all the time. It took time, but finally is (mostly) sorted (apart from a few warnings that I'm still trying to track).
Thanks again,
Andres
Andres Baravalle spake the following on 9/20/2006 10:58 AM:
2006/9/20, Matt Hyclak hyclak@math.ohiou.edu:
Is python-rpm installed?
-- Matt Hyclak
Hi, if you mean rpm-python, yes. I haven't a package called python-rpm.
I have rebooted with selinux enabled as permissive and yum it's not working either. Before it was set up as disabled.
Andres
IMHO enabling SELinux usually doesn't FIX any problems, although it might CAUSE some. ;-) It sounds as though you have some rpm leftovers from the old install. This is why it is advised against doing major version upgrades.
Andres Baravalle wrote:
These are the relevant rpms that I have installed in my system: python-2.3.4-14.1 rpm-4.3.3-13_nonptl rpm-libs-4.3.3-13_nonptl yum-2.4.2-2.centos4
any suggestion?
Update
rpm-python
package accordingly as well. You will have to grab it by hand off a mirror and update with rpm -Uvf <packagefile>.
-Andy