English version at cphow.com 

วันนี้ติดตั้ง Fedora Core 6 บนเครื่องพีซีครับ พอดีว่าจะทำให้ yum ไปอ่านข้อมูลที่อยู่ในแผ่นดีวีดี มาติดตั้ง หลังจากปรับแต่งเสร็จ ก็ลองติดตั้งซอฟต์แวร์บางตัวดู ปรากฏว่า เจอปัญหาดังนี้ 

[[email protected] ~]# yum install mysql-bench
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysql-bench to pack into transaction set.
media://1161131669.029329%234/Fedora/RPMS/mysql-bench-5.0.22-2.1.i386.rpm: [Errn
o 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve Fedora/RPMS/mysql-bench-5.0.22-2.1.i386.rpm from dvd
error was [Errno 4] IOError: <urlopen error unknown url type: media>

 สำหรับวิธีแก้ไขนะครับ

ใช้คำสั่ง 

# yum  clean  all

[[email protected] ~]# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything
[[email protected] ~]# yum check-update
Loading "installonlyn" plugin
Setting up repositories
dvd                       100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 666 kB    00:00
################################################## 2242/2242

จากนั้นก็ลองติดตั้งตามปกติครับ


[[email protected] ~]# yum install mysql-bench
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysql-bench to pack into transaction set.
mysql-bench-5.0.22-2.1.i3 100% |=========================|  32 kB    00:00
---> Package mysql-bench.i386 0:5.0.22-2.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mysql-bench             i386       5.0.22-2.1       dvd               513 k

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

Total download size: 513 k
Is this ok [y/N]: y