我最近在我的 Raspberry Pi B+ 上安装了 pidora,我没有安装任何程序,没有进行任何配置,并尝试运行 yum update,但失败了。
我尝试了不同论坛上建议的几种修复方法,但yum clean
都不起作用。
这不是 DNS 错误,因为我可以从 Pi ping 主机名(pidora.proximity.on.ca)以及其他网站。
以下是我对 yum 更新的详细记录。如有任何想法,我将不胜感激。
[mike@pidora /]$ sudo yum -v update
Not loading "blacklist" plugin, as it is disabled
Loading "langpacks" plugin
Loading "refresh-packagekit" plugin
Not loading "whiteout" plugin, as it is disabled
Adding en to language list
Config time: 0.419
Yum version: 3.4.3
rpmdb time: 0.003
Updating Everything
Building updates object
Setting up Package Sacks
Could not retrieve mirrorlist http://pidora.proximity.on.ca/mirrorlist/mirrorlist.cgi?repo=pidora-20&arch=arm error was
14: curl#7 - "Failed connect to pidora.proximity.on.ca:80; Connection refused"
Could not retrieve mirrorlist http://pidora.proximity.on.ca/mirrorlist/mirrorlist.cgi?repo=pidora-rpfr-updates-20&arch=arm error was
14: curl#7 - "Failed connect to pidora.proximity.on.ca:80; Connection refused"
One of the configured repositories failed (pidora 20 - arm),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable pidora-rpfr-updates
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=pidora-rpfr-updates.skip_if_unavailable=true
Cannot find a valid baseurl for repo: pidora-rpfr-updates/20/arm
答案1
经过一番折腾,我尝试了不同的 repo 主机名,现在 yum 可以正常工作了。修复步骤如下。
- 禁用 /etc/yum.repos.d/ 中的所有 repos
在 /etc/yum.conf 底部添加以下 repo url。
http://pidora.ca/pidora/updates/20/armv6hl/
http://japan.proximity.on.ca/kojifiles/repos/f20-build/latest/armv6hl/