YUM issue

General support questions
Post Reply
syedrafeeqahmed.a
Posts: 1
Joined: 2022/09/15 20:39:12

YUM issue

Post by syedrafeeqahmed.a » 2022/09/15 20:47:45

Hello,

Can someone please help me with this. I am unable to do_

yum --security update

It throughs this error.

Traceback (most recent call last):
File "/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 239, in main
(result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1213, in buildTransaction
self.plugins.run('postresolve', rescode=rescode, restring=restring)
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/kernel-livepatch.py", line 221, in postresolve_hook
preresolve_hook(conduit)
File "/usr/lib/yum-plugins/kernel-livepatch.py", line 183, in preresolve_hook
tsmbr=ts.getMembers((pkg.pkgtup))
AttributeError: 'NoneType' object has no attribute 'pkgtup'


But I am able to update security for individual package.

Thanks in Advance,
Syed R

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

Re: YUM issue

Post by TrevorH » 2022/09/15 21:44:09

On CentOS, yum --security does not function and will never function. There is no security metadata to allow it to do so in the CentOS yum repos. If you attempt to run e.g. yum --security update it will never find any updates as none of them are marked as security updates. The EPEL repo that is often used on CentOS does contain security information so the only packages that will ever be updated are those from EPEL.

Your stacktrace also shows the error is coming from "/usr/lib/yum-plugins/kernel-livepatch.py" and this is not something supplied by CentOS. There is no kernel-livepatch service or data or patches that it can use on CentOS.

What is the output from rpm -qf /usr/lib/yum-plugins/kernel-livepatch.py ?
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