【问题标题】:Yum cache issue?百胜缓存问题?
【发布时间】:2014-08-24 04:37:21
【问题描述】:

所以我最近尝试运行 yum update 和 yum install perl。 由于某种原因,这个错误弹出:

-bash-4.1# yum install libpcap
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Error: Error making cache directory: /var/cache/yum/x86_64/6/epel error was: [Errno 17] File exists: '/var/cache/yum/x86_64/6/epel'

我已经尝试了 yum clean all,但仍然显示该错误。请帮忙,谢谢。

【问题讨论】:

    标签: centos yum


    【解决方案1】:

    通过输入检查您的缓存目录是否为可写目录

    ls -ld /var/cache/yum/x86_64/6/epel
    

    它应该像

    那样打印
    drwxr-xr-x. 4 root root 4096 Aug  4 23:27 /var/cache/yum/x86_64/6/epel
    

    然后您可以检查 yum 配置和日志文件,如果没有任何可疑之处,请发布您的 yum 版本。

    grep -i error  /var/log/yum.log
    cat /etc/yum.conf
    yum --version
    

    【讨论】:

      【解决方案2】:

      在我的系统上,/var/cache/yum 是指向另一个不存在的目录的链接 - 重新创建了链接,一切正常。

      【讨论】:

        猜你喜欢
        • 2019-03-24
        • 1970-01-01
        • 2011-08-12
        • 2012-05-20
        • 1970-01-01
        • 2020-10-05
        • 1970-01-01
        • 2011-03-15
        相关资源
        最近更新 更多