LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem using yum and pirut (http://www.linuxquestions.org/questions/linux-software-2/problem-using-yum-and-pirut-485083/)

SamuelHenderson 09-19-2006 04:41 PM

Problem using yum and pirut
 
I'm not sure what happened exactly...

I went to install the Glade IDE using the package manager, but when I checked the more info button before installing I decided that I didn't have time to download, install, and update the many dependencies required. I exited the the package manager (I did not start to install Glade, it was not downloading or updating or installing anything). It did not give me any error messages, everything seemed great.

Later when I had more time I decided to install Apache, I figured rather than go about using the package manager I would use `yum install apache` here was the result

Code:

# yum install apache
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
livna                                                                [1/8]
flash                                                                [2/8]
core                                                                [3/8]
jpackage-fedora                                                      [4/8]
jpackage-generic                                                    [5/8]
mono                                                                [6/8]
extras                                                              [7/8]
updates                                                              [8/8]
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 366 kB    00:00
http://mirrors.dotsrc.org/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz                                                  32 kB 00:00
http://planetmirror.com/pub/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================| 366 kB    00:00
http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
ftp://ftp.pbone.net/pub/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno 4] IOError: [Errno ftp error] timed out
Trying other mirror.
primary.xml.gz            100% |=========================| 366 kB    00:00
http://sunsite.rediris.es/mirror/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================| 366 kB    00:01
ftp://gsa10.eps.cdf.udc.es/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================| 366 kB    00:00
http://www.mirrorservice.org/sites/jpackage.org/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================| 366 kB    00:00
http://ftp.heanet.ie/pub/jpackage/1.6/generic/free/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from jpackage-generic: [Errno 256] No more mirrors to try.

I have seen the Metadata file does not match checksum error before, but it would just bounce over to another mirror and work fine... apparently all the Metadata files are not matching the checksums which I found highly suspicious.

Next I went to use the package manager, I noticed right away that it was really slow and seemed to be sucking back resources, it didn't even finish retrieving software information when it generated this error message "An unhandled exception has occured. This is most likely a bug. Please save the crash dump and file a detailed Bug Report against Software Manager at https://bugzilla.redhat.com/bugzilla

Code:

omponent: Software Manager
Summary: TBa02cbfcc repos.py:629:get:RepoError: failure: repodata/primary.xml.gz from jpackage-generic: [Errno 256] No more mirrors to try.

Traceback (most recent call last):
  File "/usr/sbin/pirut", line 363, in ?
    main()
  File "/usr/sbin/pirut", line 359, in main
    pm.run()
  File "/usr/sbin/pirut", line 286, in run
    self.doRefresh()
  File "/usr/sbin/pirut", line 297, in doRefresh
    self.reposSetup(pbar)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 151, in reposSetup
    self.doSackSetup()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 291, in doSackSetup
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 287, in populateSack
    xml = repo.getPrimaryXML()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 796, in getPrimaryXML
    return self._retrieveMD('primary')
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 783, in _retrieveMD
    cache=self.http_caching == 'all')
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 629, in get
    raise Errors.RepoError, "failure: %s from %s: %s" % (relative, self.id, e)
RepoError: failure: repodata/primary.xml.gz from jpackage-generic: [Errno 256] No more mirrors to try.

Local variables in innermost frame:
e: [Errno 256] No more mirrors to try.
prxy: None
url: None
text: None
self: jpackage-generic
cache: True
reget: None
relative: repodata/primary.xml.gz
headers: None
checkfunc: (<bound method Repository._checkMD of <yum.repos.Repository instance at 0xb798086c>>, ('primary',), {})
copy_local: 1
end: None
local: //var/cache/yum/jpackage-generic/primary.xml.gz
start: None

I tried googling the error message and different questions about pirut but so far nothing has really been revealed...


I actually laughed at the unhandled exception because the reason I wanted to install apache was to procrastinate in doing my Java homework... the topic was "handling exceptions"... :) :scratch:


Edit#1

I think I should have used "Package Manager" or "Software Manager" in the topic instead of pirut

hob 09-20-2006 09:07 AM

I think that I've had this problem... and ran "yum clean" as root to purge the local indexes, so that they were reloaded from scratch with the next operation, i.e.:

su -c 'yum clean'

su -c 'yum list yum'

The list operation will cause yum to refresh the indexes, without doing anything to your installed packages.

tuhin 01-25-2007 07:22 AM

yes i work well. But i think the command for cleaning is "yum clean all" not "yum clean".

01d55 02-06-2007 10:37 PM

I had essentially this exact problem, "yum clean all" fixed it. It didn't fix my other problem, but that has its own thread.

SamuelHenderson 02-07-2007 12:02 PM

[resolved]
 
Yeah, that fixed it. I should have posted this months ago but I was busy/lazy :D

It was "yum clean all" btw ;)


All times are GMT -5. The time now is 02:52 AM.