Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Centos Yum缓存问题?_Centos_Yum - Fatal编程技术网

Centos Yum缓存问题?

Centos Yum缓存问题?,centos,yum,Centos,Yum,因此,我最近尝试运行yum更新和yum安装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 e

因此,我最近尝试运行yum更新和yum安装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,但仍显示该错误。请提供帮助,谢谢。

通过输入

ls -ld /var/cache/yum/x86_64/6/epel
它应该像打印sthg一样

drwxr-xr-x. 4 root root 4096 Aug  4 23:27 /var/cache/yum/x86_64/6/epel
然后,您可以检查yum config和日志文件,如果没有可疑,请发布您的yum版本

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

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