Centos光盤yum源問題

今天在電腦上裝了個Centos5.3的系統,接着裝了個yum源,ide

yum文件: [feng]url

          name=yum serverserver

          baseurl=file:///mnt/CentOSxml

          gpgcheck=0索引

可是一直提示報錯:it

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] 沒有那個文件或目錄: '/mnt/CentOS/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentOS-Base. Please verify its path and try againast

後來發現,實際上是yum找不到光盤的rpm索引文件repomd.xml,最後,把/mnt/CentOs 更改成/mnt便可。class

相關文章
相關標籤/搜索