axelget、yum 和 crccheck 失败

axelget、yum 和 crccheck 失败

我想用 yum 提高下载速度,终于找到了解决方案(阿克塞尔盖特)一开始效果很好。但工作一次后,我收到一个错误,并且由于“crc”问题而无法再使用它!

[root@dhcppc0 ali]# yum update -y
Loaded plugins: axelget, fastestmirror, langpacks, presto, refresh-packagekit
No metadata available for fedora
No metadata available for google-chrome
No metadata available for rpmfusion-free
No metadata available for rpmfusion-free-updates
No metadata available for rpmfusion-nonfree
No metadata available for rpmfusion-nonfree-updates
No metadata available for updates
Finish Download MetaData of Enabled Repo
Loading mirror speeds from cached hostfile
 * fedora: www.ftp.ne.jp
 * rpmfusion-free: mirror.nexcess.net
 * rpmfusion-free-updates: mirror.nexcess.net
 * rpmfusion-nonfree: mirror.nexcess.net
 * rpmfusion-nonfree-updates: mirror.nexcess.net
 * updates: www.ftp.ne.jp
Resolving Dependencies
...
Upgrade  11 Packages
Total download size: 6.8 M
Downloading Packages:

CRC check failed 0x84dd7640 != 0xbf02314L

这是另一个日志:

[root@dhcppc0 ali]# yum install axel
Loaded plugins: axelget, fastestmirror, langpacks, presto, refresh-packagekit
fedora/18/x86_64/metalink                                                             | 9.7 kB  00:00:00     
google-chrome                                                                         |  951 B  00:00:00     
rpmfusion-free                                                                        | 3.3 kB  00:00:00     
rpmfusion-free-updates                                                                | 3.3 kB  00:00:00     
rpmfusion-nonfree                                                                     | 3.3 kB  00:00:00     
rpmfusion-nonfree-updates                                                             | 3.3 kB  00:00:00     
updates/18/x86_64/metalink                                                            | 5.7 kB  00:00:00     
(1/2): rpmfusion-nonfree-updates/primary_db                                           | 133 kB  00:00:04     
(2/2): rpmfusion-free-updates/primary_db                                              | 329 kB  00:00:12     
repomd.xml                                                                            | 4.2 kB  00:00:00     
Initializing download: tp://ftp.riken.jp/Linux/fedora/releases/18/Everything/x86_64/os/repodata/7606e9d3ed634ddab6e4f2317fe2b647f7f20f00cc183613338d3929e2c4ccc0-prestodelta.xml.gz
File size: 1574148 bytes
Opening output file /var/cache/yum/x86_64/18/fedora/7606e9d3ed634ddab6e4f2317fe2b647f7f20f00cc183613338d3929e2c4ccc0-prestodelta.xml.gz
Starting download

Connection 0 finished                                                          ]
Connection 3 finished                                                          ]
Connection 1 finished                                                          ]
Connection 2 finished                                                          ]
[100%] [..................................................] [  43.5KB/s] [00:00]

Downloaded 1537.3 kilobytes in 35 seconds. (43.54 KB/s)
update fedora metadata sucessfully
repomd.xml                                                                            |  951 B  00:00:00     
update google-chrome metadata sucessfully
repomd.xml                                                                            | 3.3 kB  00:00:00     
update rpmfusion-free metadata sucessfully
repomd.xml                                                                            | 3.3 kB  00:00:00     
update rpmfusion-free-updates metadata sucessfully
repomd.xml                                                                            | 3.3 kB  00:00:00     
update rpmfusion-nonfree metadata sucessfully
repomd.xml                                                                            | 3.3 kB  00:00:00     
update rpmfusion-nonfree-updates metadata sucessfully
repomd.xml                                                                            | 4.7 kB  00:00:00     
Initializing download: tp://ftp.riken.jp/Linux/fedora/updates/18/x86_64/repodata/1767a570ae94a2e780bc276e5e0afb66788e1ac1e296d93e8292c593ccc39856-prestodelta.xml.gz
File size: 2301411 bytes
Opening output file /var/cache/yum/x86_64/18/updates/1767a570ae94a2e780bc276e5e0afb66788e1ac1e296d93e8292c593ccc39856-prestodelta.xml.gz
Starting download

Connection 3 finished                                                          ]
Connection 2 finished                                                          ]
Connection 1 finished                                                          ]
Connection 0 finished                                                          ]
[100%] [..................................................] [  37.2KB/s] [00:00]

Downloaded 2247.5 kilobytes in 1:00 seconds. (37.19 KB/s)
update updates metadata sucessfully
Finish Download MetaData of Enabled Repo
Loading mirror speeds from cached hostfile
 * fedora: ftp.riken.jp
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: ftp.riken.jp
Package axel-2.4-7.fc18.x86_64 already installed and latest version
Nothing to do
[root@dhcppc0 ali]# yum update -y
Loaded plugins: axelget, fastestmirror, langpacks, presto, refresh-packagekit
No metadata available for fedora
No metadata available for google-chrome
No metadata available for rpmfusion-free
No metadata available for rpmfusion-free-updates
No metadata available for rpmfusion-nonfree
No metadata available for rpmfusion-nonfree-updates
No metadata available for updates
Finish Download MetaData of Enabled Repo
Loading mirror speeds from cached hostfile
 * fedora: ftp.kddilabs.jp
 * rpmfusion-free: mirror.nexcess.net
 * rpmfusion-free-updates: mirror.nexcess.net
 * rpmfusion-nonfree: mirror.nexcess.net
 * rpmfusion-nonfree-updates: mirror.nexcess.net
 * updates: ftp.kddilabs.jp
Resolving Dependencies
--> Running transaction check
...
Upgrade  11 Packages

Total download size: 6.8 M
Downloading Packages:


CRC check failed 0x84dd7640 != 0xbf02314L

什么是“crc”以及如何解决这个问题?

已安装的软件包:

Name : axel
Arch : x86_64
Version : 2.4
Release : 7.fc18

这是 Fedora 18 上的

编辑(我的解决方案):

运行这个命令:

yum clean expire-cache
yum clean dbcache

然后禁用fastestmirror插件并更新你的缓存(yum update)。现在安装一些软件包,看看是否使用 axelget 进行下载,激活fastestmirror。

答案1

CRC 代表循环冗余校验。这是一种确保正确接收正在发送的数据的方法。基本上,它确保如果我向您发送了“1001001”位,您会收到“1001001”。

在维基百科页面上阅读有关它们的更多信息:循环冗余校验

值得尝试的事情#1

我会尝试更改您正在使用的镜子。我感觉你的问题根本不是你自己的问题。它可能与其中一面镜子有关。

您可以尝试几个这些命令,看看是否可以解决您的问题。

yum clean expire-cache
yum clean dbcache

或者你可以清理所有东西:

yum clean all

值得尝试的事情#2

此时,如果 CRC 错误仍然存​​在,那么我们仍然需要消除 2 个方面的问题:

  1. 是盒子本地的网络/硬件问题吗?
  2. 其中一个存储库上的软件包是否已损坏?

我会首先通过使用yumdownloader下载包来消除该包,如下所示:

yumdownloader axelget

下载 RPM 后,您可以尝试进行yum本地安装:

yum localinstall <axelget rpm>

rpm直接使用:

rpm -ivh <axelget rpm>

yum-plugin-fastestmirror 的问题

有时这个插件会导致我无法更新。它要么会指向提供与其他镜像不一致的软件包的镜像,要么镜像本身速度非常慢。缓慢的问题最终会自行解决,但如果您不耐烦,可以执行以下操作:

rm -f /var/cache/yum/timedhosts.txt

这将清除不同镜像服务器的时间并允许重新收集时间。通常这足以解决任何镜像问题。

如果特定镜像仍然存在问题,您可以执行以下操作来排除它们。在fastestmirror插件的配置文件中,/etc/yum/pluginconf.d/fastestmirror.conf

[main]
verbose = 0
socket_timeout = 3
enabled = 1
hostfilepath = /var/cache/yum/timedhosts.txt
maxhostfileage = 1
exclude = some-mirror.com, other-junk-mirror.com

上述更改会在您下次运行时立即发生yum

如果上述方法都不能解决似乎与提供包的镜像相关的问题,您可以随时通过其配置文件禁用该插件/etc/yum/pluginconf.d/fastestmirror::

# enabled
# enabled=1

# disabled
enabled=0

相关内容