problem with yum

General support questions
Post Reply
ross
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/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 281, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 683, in doTransaction
    problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb) 
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2492, in downloadPkgs
    presto = DeltaInfo(self, pkgs, adderror)
  File "/usr/lib/python2.7/site-packages/yum/drpm.py", 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

Thanks

User avatar
TrevorH
Site Admin
Posts: 33202
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.
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