简体   繁体   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

OS: Oracle Linux 6操作系统: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

The error is that:错误在于:

[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

The yum.config: 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

Could you please tell what the issue is?你能告诉我是什么问题吗?

Thanks in advance!提前致谢!

your repo is expecting to find its repository metadata in:您的存储库期望在以下位置找到其存储库元数据:

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

but it does not exist in that path .但它不存在于该路径中。 first check the path and if the file exist and then clear your yum cache首先检查路径以及文件是否存在,然后清除 yum 缓存

# yum clean # 干净

it will also be good, if you enable DVD Repo instead如果您改为启用 DVD Repo,它也会很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 子进程签出OSError:[Errno 2]没有这样的文件或目录 - subprocess checkouput OSError: [Errno 2] No such file or directory Python OSError:[Errno 2]没有这样的文件或目录错误 - Python OSError: [Errno 2] No such file or directory ERROR LocalAudioFile(file)错误返回OSError:[Errno 2]没有这样的文件或目录 - Error with LocalAudioFile(file) returns OSError: [Errno 2] No such file or directory Python:OSError:[Errno 2] subprocess.Popen上没有这样的文件或目录 - Python: OSError: [Errno 2] No such file or directory on subprocess.Popen subprocess.Popen:仅在Linux上,“ OSError:[Errno 2]没有这样的文件或目录” - subprocess.Popen: 'OSError: [Errno 2] No such file or directory' only on Linux linux命令产生Python OSError:[Errno 2]没有这样的文件或目录 - linux command produce Python OSError: [Errno 2] No such file or directory epoll_ctl()失败:没有这样的文件或目录[errno = 2] - epoll_ctl() failed: No such file or directory [errno = 2] errno 2:没有此类文件或目录 - errno 2: No such file or directory Traceroute的Python脚本和在文件中打印输出显示Linux Mint中的错误(OSError:[Errno 2]没有这样的文件或目录) - Python Script for Traceroute and printing the output in file shows error( OSError: [Errno 2] No such file or directory) in Linux Mint 错误信息是 Errno 2 No such file or directory - Error Message is Errno 2 No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM