//////VMware虚拟机安装好Fedora-14-i386-DVD.iso镜像后,执行yum -y install vim 报错如下:劳烦大神看看如何解决?
[root@localhost yum.repos.d]# yum -y install vim
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[[root@localhost yum.repos.d]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[root@localhost yum.repos.d]# 根据网上提示使用网上的fedora.repo文件,重新yum操作:
/////////////////////////////////////////////////////////////////////
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
File contains parsing errors: file://///etc/yum.repos.d/fedora_update.repo
[line  2]:  name=Fedora 14 -i386 - Updates -ustc [line  3]:  failovermethod=priority [line  4]:  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/updates/14/i386/ [line  5]:  mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f14&arch=i386 [line  6]:  enabled=1 [line  7]:  gpgcheck=1 [line  8]:  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386 [line 10]:  [updates-debuginfo] [line 11]:  name=Fedora14 - i386 - Updates - Debug-ustc [line 12]:  failovermethod=priority [line 13]:  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/updates/14/i386/debug/ [line 14]:  mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f14&arch=i386 [line 15]:  enabled=0 [line 16]:  gpgcheck=1 [line 17]:  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386 [line 19]:  [updates-source] [line 20]:  name=Fedora14 - Updates Source -ustc [line 21]:  failovermethod=priority [line 22]:  baseurl=http://mirrors.ustc.edu.cn/fedora/linux/updates/14/SRPMS/ [line 23]:  mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f14&arch=i386 [line 24]:  enabled=0 [line 25]:  gpgcheck=1 [line 26]:  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386[root@localhost yum.repos.d]# ^C
[root@localhost yum.repos.d]# ^C
[root@localhost yum.repos.d]# 

解决方案 »

  1.   

    1、网络问题,不能通外网
    2、repo文件里面地址有问题,你试试复制出来能不能访问
      

  2.   

    试了下在虚拟机下不能访问
    你试下能不能ping通www.baidu.com,可以ping通,就是repo里面的链接有问题,可以换一个对应系统版本的yum源(下面这个试试)
    [Fedora-mirrors.163.com]
    name=Fedora 14 – i386
    baseurl=http://mirrors.163.com/fedora/updates/14/i386/
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    [Everything-mirrors.163.com]
    name=Everything 14 – i386
    baseurl=http://mirrors.163.com/fedora/updates/14/i386/
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    [updates-mirrors.163.com]
    name=Fedora updates
    baseurl=http://mirrors.163.com/fedora/updates/14/i386/
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY