내 "yum 업데이트"가 작동하지 않습니다

내 "yum 업데이트"가 작동하지 않습니다

"yum update"에 문제가 있습니다. 결과는 다음과 같습니다.

[root@localhost yum.repos.d]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!')    
Error: Cannot find a valid baseurl for repo: base

이 문제를 어떻게 해결할 수 있나요? resolv.conf 편집을 시도했지만 작동하지 않습니다. 감사해요. Wi-Fi를 사용하며 운영체제는 Centos 6입니다.

답변1

yum 캐시를 지운 다음 yum clean all새로 yum makecache고치세요.

그래도 도움이 되지 않으면 공식 웹사이트에서 새로운 CentOS 저장소 정의 파일을 받으세요. 버전 6을 사용하고 있다는 점을 고려하면 버전 6을 설치한 지 꽤 시간이 지났고 저장소 정의가 /etc/yum.repos.d미러 목록을 가져오기 위해 잘못된 위치를 가리킬 수 있습니다.

관련 정보