//////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]#
uj5u.com熱心網友回復:
1、網路問題,不能通外網2、repo檔案里面地址有問題,你試試復制出來能不能訪問
uj5u.com熱心網友回復:
試了下,在虛擬機上不能訪問uj5u.com熱心網友回復:
試了下在虛擬機下不能訪問
uj5u.com熱心網友回復:
試了下在虛擬機下不能訪問
uj5u.com熱心網友回復:
你試下能不能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
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/100559.html
標籤:非技術區
下一篇:求大神幫忙
