Yum and rpm crashed - dynamic module does not define init function (init_rpm)

Issues related to applications and software problems
Post Reply
levback
Posts: 2
Joined: 2017/09/18 07:52:38

Yum and rpm crashed - dynamic module does not define init function (init_rpm)

Post by levback » 2017/09/18 08:02:15

Hi,

This morning, I tried to update latest packages with "sudo yum update" however something went wrong and I cannot access most of the commands from the console anymore. sudo, su, rpm, vzyum and ls -l, ln, ldd and many others directly gives "segmentation fault (core dumped)" error and whenever I try to run yum, it gives this error:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

dynamic module does not define init function (init_rpm)

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.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq


Since I cannot access the most of the commands, I have no idea how to proceed. Could you please help me out to find my way out from this trouble?
Thanks

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum and rpm crashed - dynamic module does not define init function (init_rpm)

Post by TrevorH » 2017/09/18 09:01:00

Since you mention vzyum this sounds like an openvz instance so it's not something we can advise on here. Openvz containers are too different from CentOS to allow us to give advice so you need to talk to their support people.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

levback
Posts: 2
Joined: 2017/09/18 07:52:38

Re: Yum and rpm crashed - dynamic module does not define init function (init_rpm)

Post by levback » 2017/09/18 11:37:03

I don't use vzyum but I gave it as an example. It happened whenever I updated yum with yum update. The screen locked and I restarted. The computer stucks before coming to login screen and whenever I try the Linux Core rescue, the kernel panic appears.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum and rpm crashed - dynamic module does not define init function (init_rpm)

Post by TrevorH » 2017/09/18 12:21:41

It's doesn't matter if you use it, the fact that it's present means you don't have a CentOS system, you have an openvz container.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply