One error make me craze that the yum does not work for me in fedora8 for  some days. Research it for a long time to fix it.  Now share it.

The error below:

when you use yum to update or install , it will output below message "Errno -3] Error performing checksum
Trying other mirror." Details in below :

# yum update python

b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 00:07
http://mirrors.163.com/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 00:08
http://ubuntu.cn99.com/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 01:20
http://mirror1.ku.ac.th/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 6.0 MB 01:58
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 01:21
http://ftp.jaist.ac.jp/pub/Linux/Fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
http://ftp.linux.org.tr/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 02:43
ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 01:58
http://ftp.kddilabs.jp/Linux/packages/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 2.3 MB 00:23

Error: failure: repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2 from development: [Errno 256] No more mirrors to try.

--------------

The reason is that one resp. is broken. 

To fix it, simple to disable the source.   In my above case ,it broke the development source, so disable it.

open the configure file:

vi /etc/yum.repos.d/fedora-development.repo

1 # These packages are untested and still under development. This
2 # repository is used for updates to test releases, and for
3 # development of new releases.
4 #
5 # This repository can see significant daily turnover and major
6 # functionality changes which cause unexpected problems with other
7 # development packages. Please use these packages if you want to work
8 # with the Fedora developers by testing these new development packages.
9 #
10 # fedora-test-list@redhat.com is available as a discussion forum for
11 # testing and troubleshooting for development packages in conjunction
12 # with new test releases.
13 #
14 # More information is available at http://fedoraproject.org/wiki/Testing
15 #
16 # Reproducible and reportable issues should be filed at
17 # http://bugzilla.redhat.com/.
18 #
19 # Product: Fedora
20 # Version: devel

21 [development]
22 name=Fedora - Development
23 failovermethod=priority
24 #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/x86_64/os/
25 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=x86_64
  26 enabled =1 
27 gpgcheck=0
28 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

29 [development-debuginfo]
30 name=Fedora - Development - Debug
31 failovermethod=priority
32 #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/x86_64/debug/
33 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-debug&arch=x86_64
34 enabled=0
35 gpgcheck=0
36 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

37 [development-source]
38 name=Fedora - Development - Source
39 failovermethod=priority
40 #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/
41 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-source&arch=x86_64
42 enabled=0
43 gpgcheck=0
44 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

Change the line26 ,  enabled=1 to  enabled=0.

Then try yum again. It is really work! perfact

yum install scons
Existing lock /var/run/yum.pid: another copy is running as pid 28490.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...


Exiting on user cancel.
[root@localhost yum.repos.d]# yum install scons
epel 100% |=========================| 3.4 kB 00:00
f0f92614b5fb873dadd850673 100% |=========================| 1.1 MB 00:05
fedora 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 5.8 MB 01:49
rpmforge 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 3.4 MB 00:57
rpmforge : ################################################## 9539/9539
updates 100% |=========================| 2.6 kB 00:00
primary.sqlite.bz2 100% |=========================| 2.2 kB 00:00
adobe-linux-i386 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 12 kB 00:00
adobe-linu: ################################################## 17/17
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package scons.noarch 0:1.2.0-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
scons noarch 1.2.0-1.el5.rf rpmforge 1.2 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): scons-1.2.0-1.el5. 100% |=========================| 1.2 MB 00:22
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: scons ######################### [1/1]

Installed: scons.noarch 0:1.2.0-1.el5.rf
Complete!



posted on 2009-12-18 19:13  RocZhang  阅读(7408)  评论(2编辑  收藏  举报