Re: yum problem + TypeError: Parsing primary.xml error

"Stelios A." <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
I run all of them and always got the following error:

[root@euripidis ~]# yum update --disablerepo=\* --enablerepo=base
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 94, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 381, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
    return base.updatePkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 673, in updatePkgs
    self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 109, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 338,
in doSackSetup
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 200, in
populateSack
    sack.populate(repo, with, callback, cacheonly)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 91, in populate
    dobj = repo.cacheHandler.getPrimary(xml, csum)
  File "/usr/lib/python2.4/site-packages/sqlitecachec.py", line 32, in
getPrimary
    self.callback))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found

2008/6/25 Jan Hutař <[email protected]>:
> On Wed, 25 Jun 2008 09:53:56 +0300
> "Stelios A." <[email protected]> wrote:
>
>> Hi Jan,
>>
>> You can download the file form here:
>> http://92.48.107.13/primary.xml.gz
>> This is the file stored under /var/cache/yum/base
>>
>> I'm not sure what you want me to upload, I am pasting the content of
>> /etc/yum.repos.d/CentOS-Base.repo in case that you want this.
>>
>> [base]
>> name=CentOS-$releasever - Base
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
>> #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
>> gpgcheck=1
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>>
>> #released updates
>> [updates]
>> name=CentOS-$releasever - Updates
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
>> #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
>> gpgcheck=1
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>>
>> #packages used/produced in the build but not released
>> [addons]
>> name=CentOS-$releasever - Addons
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
>> #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
>> gpgcheck=1
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>>
>> #additional packages that may be useful
>> [extras]
>> name=CentOS-$releasever - Extras
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
>> #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
>> gpgcheck=1
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>>
>> #additional packages that extend functionality of existing packages
>> [centosplus]
>> name=CentOS-$releasever - Plus
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
>> #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
>> gpgcheck=1
>> enabled=0
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>
> So cmp says it is same as
> http://mirror.centos.org/centos/5/os/i386/repodata/primary.xml.gz, so
> you downloads it correctly.
>
> My yum-3.2.16-2.fc9.noarch reads the [base] repo correctly.
>
> Are you sure it is this file which causes troubles? Could you run:
>
> # yum update --disablerepo=\* --enablerepo=base
>
> to check it? In case it is not, you can substitute "base" with
> "updates", "addons", "extras" or "centosplus".
>
> Regards,
> Jan
>
>
>
> --
> Jan Hutar   Quality Assurance Engineer
> [email protected]        Red Hat, Inc.
>
> _______________________________________________
> Yum mailing list
> [email protected]
> https://lists.dulug.duke.edu/mailman/listinfo/yum
>
>



-- 
Stelios A

_______________________________________________
Yum mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.