Fedora 9 下 yum 的一个奇怪的错误

昨天晚上打算安装 VMware Workstation for Linux 的时候,由于发现文件太大,由于我的笔记本是用无线网卡上网的,速度非常慢,中途关闭了终端结束了安装,然后用 yum clean all 命令清除了已经下载下来的部分 rpm 包。今天晚上回家之后安装 Picasa for Linux 的时候突然出现了如下的错误:
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=i386 error was
[Errno 12] Timeout: <urlopen error timed out>
Error: Cannot find a valid baseurl for repo: fedora

好像是我网速太慢,没有下载完毕 fedora 的 primary.sqlite.bz2 文件的缘故,详细如下:

[[email protected] ~]$ su
密码:
[[email protected] charles]# yum install picasa
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* atrpms: dl.atrpms.net
* livna: livna.cat.pdx.edu
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=i386 error was
[Errno 12] Timeout: <urlopen error timed out>
Error: Cannot find a valid baseurl for repo: fedora
[[email protected] charles]# yum install picasa
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* atrpms: dl.atrpms.net
* livna: mirrors.tummy.com
//错误出现
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=i386 error was
[Errno 12] Timeout: <urlopen error timed out>
Error: Cannot find a valid baseurl for repo: fedora

//重试了一下
[[email protected] charles]# yum clean
Loaded plugins: fastestmirror, refresh-packagekit
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, all
[[email protected] charles]# yum clean expire-cache
Loaded plugins: fastestmirror, refresh-packagekit
0 metadata files removed
[[email protected] charles]# yum install baidu
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* atrpms: dl.atrpms.net
* livna: livna.cat.pdx.edu
//错误依然
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=i386 error was
[Errno 12] Timeout: <urlopen error timed out>
Error: Cannot find a valid baseurl for repo: fedora

//同样是错误
[[email protected] charles]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* atrpms: dl.atrpms.net
* livna: mirrors.tummy.com
* fedora: ftp.twaren.net
* adobe-linux-i386: linuxdownload.adobe.com
Could not retrieve mirrorlist http://ayo.freshrpms.net/fedora/linux/9/mirrors-freshrpms error was
[Errno 12] Timeout: <urlopen error timed out>
Error: Cannot find a valid baseurl for repo: freshrpms

在网上搜索解决办法,也没有得到什么有价值的结论,但是用 yum update all 命令之后终于成功拉

[[email protected] charles]# yum update all
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* atrpms: dl.atrpms.net
* livna: livna.cat.pdx.edu
* fedora: ftp.cse.yzu.edu.tw
* adobe-linux-i386: linuxdownload.adobe.com
* freshrpms: ayo.ie.freshrpms.net
* updates: ftp.cse.yzu.edu.tw
atrpms                                                   |  951 B     00:00
primary.xml.gz                                           | 170 kB     00:44
atrpms    : ################################################## 729/729
livna                                                    | 2.1 kB     00:00
primary.sqlite.bz2                                       | 162 kB     00:19
fedora                                                   | 2.4 kB     00:00
primary.sqlite.bz2                                       | 6.1 MB     08:03
adobe-linux-i386                                         |  951 B     00:00
primary.xml.gz                                           |  10 kB     00:00
adobe-linu: ################################################## 17/17
freshrpms                                                | 2.4 kB     00:00
primary.sqlite.bz2                                       | 107 kB     00:07
updates                                                  | 2.3 kB     00:00
primary.sqlite.bz2                                       | 857 kB     01:02
Excluding Packages from Fedora Core 9 – i386 – ATrpms
Finished
Setting up Update Process
Could not find update match for all
No Packages marked for Update

现在 primary.sqlite.bz2 下载成功了,一切正常,随意安装了一个 licq ,顺利安装成功!

[[email protected] charles]# yum install licq
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* atrpms: dl.atrpms.net
* livna: livna.cat.pdx.edu
* fedora: ftp.cse.yzu.edu.tw
* adobe-linux-i386: linuxdownload.adobe.com
* freshrpms: ayo.ie.freshrpms.net
* updates: ftp.cse.yzu.edu.tw
Excluding Packages from Fedora Core 9 – i386 – ATrpms
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package licq.i386 0:1.3.5-2.fc9 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
licq                    i386       1.3.5-2.fc9      updates           2.5 M

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

Total download size: 2.5 M
Is this ok [y/N]: y
Downloading Packages:
http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/updates/9/i386/licq-1.3.5-2.fc9.i386.rpm: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
(1/1): licq-1.3.5-2.fc9.i386.rpm                         | 2.5 MB     09:33
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: licq                         ######################### [1/1]

Installed: licq.i386 0:1.3.5-2.fc9
Complete!

为了验证是否还有问题,故意用 yum 安装 beep media player 试了一下,

[[email protected] ~]$ su
密码:
[[email protected] charles]# yum install beep-media-player
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* atrpms: dl.atrpms.net
* livna: livna.cat.pdx.edu
* fedora: ftp.cse.yzu.edu.tw
* adobe-linux-i386: linuxdownload.adobe.com
* freshrpms: ayo.ie.freshrpms.net
* updates: ftp.cse.yzu.edu.tw
atrpms                                                   |  951 B     00:00
livna                                                    | 2.1 kB     00:00
fedora                                                   | 2.4 kB     00:00
Excluding Packages from Fedora Core 9 – i386 – ATrpms
Finished
Setting up Install Process
Parsing package install arguments
No package beep-media-player available.
Nothing to do

提示没有找到 beep media player 的安装包,不过 yum 已经没有问题了。真是瞎猫撞上了死耗子,嘿嘿

Leave a Reply

Your email address will not be published. Required fields are marked *