Re: Yum error: SyntaxError: not well-formed (invalid token):
Seth Vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 12 Mar 2009, Heimburger,Justin C wrote: > > Hello, > > I'm getting an error when I try to list available packages with yum: > > ---- > Reading repository metadata in from local files > ejrpm_noar: ##################################### 979/1320Traceback (most recent call last): > File "/usr/bin/yum", line 29, in ? > yummain.main(sys.argv[1:]) > File "/usr/share/yum-cli/yummain.py", line 97, in main > result, resultmsgs = do() > File "/usr/share/yum-cli/cli.py", line 516, in doCommands > ypl = self.returnPkgLists() > File "/usr/share/yum-cli/cli.py", line 1192, in returnPkgLists > ypl = self.doPackageLists(pkgnarrow=pkgnarrow) > File "__init__.py", line 972, in doPackageLists > File "/usr/share/yum-cli/cli.py", line 82, in doRepoSetup > self.doSackSetup(thisrepo=thisrepo) > File "__init__.py", line 291, in doSackSetup > File "repos.py", line 289, in populateSack > File "sqlitecache.py", line 96, in getPrimary > File "sqlitecache.py", line 89, in _getbase > File "sqlitecache.py", line 344, in updateSqliteCache > File "/usr/lib/python2.3/site-packages/yum/mdparser.py", line 61, in next > for event, elem in self.reader: > File "<string>", line 61, in __iter__ > SyntaxError: not well-formed (invalid token): line 2380, column 321 > ---- > > I'm of the mind that this was caused by a package that was added to the repository yesterday afternoon, as one time it > worked, and the next it didn't. I've been searching the internet for a good chunk of the day, but haven't found this > particular error and its solution anywhere. > > I'm also guessing that the line and column numbers at the end of the error refer to the position in the primary.xml.gz > file, but taking a look there shows me nothing different than what's in every other package in the repo. > > Any suggestions? I'm able to get around it by just using rpm, but I lose the some of the benefits provided by yum. > Thanks in advance for your help! > you're probably not wrong. 1. what ver of yum? 2. what is generating the repodata on the repository side 3. what pkgs got added to the repo yesterday? 4. can you post your primary.xml.gz file? thanks, -sv _______________________________________________ Yum mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum