簡體   English   中英

無法執行 "yum list": Errno 5] OSError: [Errno 2] No such file or directory

[英]Failed to execute "yum list": Errno 5] OSError: [Errno 2] No such file or directory

操作系統:Oracle Linux 6

[xxx@host /etc]$ uname -a
Linux slc08yld 2.6.39-400.298.2.el5uek #1 SMP Mon Jan 22 13:08:39 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

錯誤在於:

[xxxx@host /etc]$ yum list
file://localhost/tmp/common1/x86_64/redhat/50/base/ga/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/tmp/common1/x86_64/redhat/50/base/ga/Server/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

yum.config:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
metadata_expire=0


[base]
name=Red Hat Linux - Base
baseurl=file://localhost/tmp/common1/x86_64/redhat/50/base/ga/Server
#baseurl=http://pd-yum-slc-01.us.oracle.com/yum/OracleLinux/EL5/GA/x86_64/base/Server


#[updates]
#name=Red Hat Linux - Updates
#baseurl=file://localhost/tmp/common/AS4.0_u1_x86_64/RedHat/Updates
proxy=http://www-proxy.us.oracle.com:80

你能告訴我是什么問題嗎?

提前致謝!

您的存儲庫期望在以下位置找到其存儲庫元數據:

file://localhost/tmp/common1/x86_64/redhat/50/base/ga/Server/repodata/repomd.xml

但它不存在於該路徑中。 首先檢查路徑以及文件是否存在,然后清除 yum 緩存

# 干凈

如果您改為啟用 DVD Repo,它也會很好

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM