yum and rpm issue

Issues related to applications and software problems
Post Reply
Posts: 1
Joined: 2020/07/15 20:16:08

yum and rpm issue

Post by redlight_lnx » 2020/07/15 20:25:59

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

liblua-5.1.so: cannot open shared object file: No such file or directory

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, Apr 9 2019, 14:30:50)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

If you cannot solve this problem yourself, please go to
the yum faq at:

rpm: error while loading shared libraries: liblua-5.1.so: cannot open shared object file: No such file or directory

User avatar
Forum Moderator
Posts: 29985
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum and rpm issue

Post by TrevorH » 2020/07/15 21:43:33

What's the output from rpm -q lua and also from rpm -V lua ?

That liblua-5.1.so file is provided by that package and if it's not installed or the files it provides are missing or corrupted then you'll need to download the lua rpm package from your nearest CentOS mirror and install it locally with rpm.

You might also want to run rpm -Va to verify that all files owned by all packages match their correct checksums. That will run for quite a while and will produce quite a bit of output, even in normal circumstances as it will report on all changed config files etc. It will show you if there are other problems lurking though.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Software Support”