problem with yum

General support questions
Post Reply
Posts: 1
Joined: 2019/08/19 16:18:57

problem with yum

Post by ross » 2019/08/19 16:26:10

yum version: yum-3.4.3-161.el7.centos
python version: 2.7.5

If I try to install something with yum or run yum update I get this error:

Code: Select all

Total download size: 32 M
Is this ok [y/d/N]: y
Downloading packages:
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/", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/", line 281, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/", line 683, in doTransaction
    problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb) 
  File "/usr/lib/python2.7/site-packages/yum/", line 2492, in downloadPkgs
    presto = DeltaInfo(self, pkgs, adderror)
  File "/usr/lib/python2.7/site-packages/yum/", line 199, in __init__
    for ev, el in iterparse(path):
  File "<string>", line 107, in next
cElementTree.ParseError: no element found: line 1, column 0
I am not really sure what to do to fix this


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

Re: problem with yum

Post by TrevorH » 2019/08/19 16:30:13

Start by trying yum --noplugins update and see if that works. If it doesn't then add --disablerepo=\* --enablerepo=base,updates to that command and see if that works. If it does then gradually add repos to the --enablerepo list until you find the problem one.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”