Cảm ơn các bạn đã giúp mình hiểu thêm về lệnh yum...
Ở trên là mình không post rõ chi tiết lỗi bởi vì mình đã chỉnh sửa hết rùi và không còn lưu lại cái gì cả. Sau đó mình cài lại FC9 và sau đây là chi tiết lỗi (đây là lần đầu tiên logon vào máy !):
Code:
[root@fedora ~]# yum install cvs
Loaded plugins: refresh-packagekit
removing mirrorlist with no valid mirrors: //var/cache/yum/updates/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again
[root@fedora ~]# yum install d4x
Loaded plugins: refresh-packagekit
removing mirrorlist with no valid mirrors: //var/cache/yum/updates/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again
[root@fedora ~]# yum update
Loaded plugins: refresh-packagekit
removing mirrorlist with no valid mirrors: //var/cache/yum/updates/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again
Một số thông tin khác:
Code:
[root@fedora ~]# yum repolist
Loaded plugins: refresh-packagekit
repo id repo name status
fedora Fedora 9 - i386 enabled
updates Fedora 9 - i386 - Updates enabled
[root@fedora ~]# ls -l /var/cache/yum
total 16
drwxr-xr-x 3 root root 4096 2008-08-17 22:28 fedora
drwxr-xr-x 3 root root 4096 2008-08-17 23:08 updates
[root@fedora ~]# ls -l /var/cache/yum/fedora
total 8
drwxr-xr-x 2 root root 4096 2008-08-17 22:28 packages
[root@fedora ~]# ls -l /var/cache/yum/updates
total 8
drwxr-xr-x 2 root root 4096 2008-08-17 22:28 packages
[root@fedora ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[root@fedora ~]# ls -l /etc/yum.repos.d
total 32
-rw-r--r-- 1 root root 1849 2008-05-07 00:16 fedora-rawhide.repo
-rw-r--r-- 1 root root 1168 2008-05-07 00:16 fedora.repo
-rw-r--r-- 1 root root 1078 2008-05-07 00:16 fedora-updates.repo
-rw-r--r-- 1 root root 1151 2008-05-07 00:16 fedora-updates-testing.repo
Nội dung file fedora.repo:
Code:
[root@fedora ~]# cat /etc/yum.repos.d/fedora.repo
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
Nội dung file fedora-updates.repo:
Code:
[root@fedora ~]# cat /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Nội dung file fedora-updates-testing.repo:
Code:
[root@fedora ~]# cat /etc/yum.repos.d/fedora-updates-testing.repo
[updates-testing]
name=Fedora $releasever - $basearch - Test Updates
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
[updates-testing-debuginfo]
name=Fedora $releasever - $basearch - Test Updates Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
[updates-testing-source]
name=Fedora $releasever - Test Updates Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
Nội dung file refresh-packagekit.conf:
Code:
[root@fedora ~]# cat /etc/yum/pluginconf.d/refresh-packagekit.conf
[main]
enabled=1
Máy vẫn ra được internet bình thường:
Code:
[root@fedora ~]# ping 203.162.0.181
PING 203.162.0.181 (203.162.0.181) 56(84) bytes of data.
64 bytes from 203.162.0.181: icmp_seq=1 ttl=122 time=23.4 ms
64 bytes from 203.162.0.181: icmp_seq=2 ttl=122 time=22.2 ms
64 bytes from 203.162.0.181: icmp_seq=3 ttl=122 time=21.0 ms
64 bytes from 203.162.0.181: icmp_seq=4 ttl=122 time=21.2 ms
64 bytes from 203.162.0.181: icmp_seq=5 ttl=122 time=23.5 ms
^C
--- 203.162.0.181 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4623ms
rtt min/avg/max/mdev = 21.040/22.308/23.525/1.063 ms
Cảm ơn các bạn nhiều !