yum error

General support questions
Post Reply
grelu119
Posts: 2
Joined: 2018/05/30 04:33:17

yum error

Post by grelu119 » 2018/05/30 04:38:51

hello! I have a problem with YUM after I updated my python.

Code: Select all

Dependencies Resolved
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 288, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 223, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 453, in doTransaction
    lsts = self.listTransaction()
  File "/usr/share/yum-cli/output.py", line 1055, in listTransaction
    (_('Not installed'), self._not_found_i.values()),
AttributeError: 'YumBaseCli' object has no attribute '_not_found_i'

User avatar
avij
Forum Moderator
Posts: 2720
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: yum error

Post by avij » 2018/05/30 07:32:33

Well, that was not a good idea.. The fix is to revert the changes you did to your python and use the python provided by CentOS.

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

Re: yum error

Post by TrevorH » 2018/05/30 15:14:35

You can find parallel installable copies of various versions of python in the IUS repo, in SCL or even in EPEL. Use one of those. Do not replace the system python or you will break system tools. Now you must undo everything you did and possibly download the original packages from a CentOS mirror and reinstall them using rpm.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply