Yum은 왜 프록시 및 기타 이상한 행동을 시도합니까?

Yum은 왜 프록시 및 기타 이상한 행동을 시도합니까?

나는 때때로 다른 위치에서 인터넷을 사용하는 것처럼 보이도록 SSH 터널 프록시를 설정했습니다. 나는 그것을 다음과 같이 설정했습니다 :

ssh -D 8080 <remote host>

그리고 그놈 쉘 네트워크 설정 대화 상자를 사용하여 프록시를 http://localhost:8080.

현재 프록시는 "없음"으로 설정되어 있으며 ssh연결이 끊어졌습니다.

내 인터넷 검색은 잘 작동합니다. 하지만사용할 수 없습니다yum:

[root@Eiger yum.repos.d]# yum update
Loaded plugins: langpacks, refresh-packagekit
http://linuxdownload.adobe.com/linux/x86_64/repodata/repomd.xml: [Errno 14] curl
#7 - "Failed connect to localhost:8080; Connection refused"
Trying other mirror.
   <repeated 9 more times>

 One of the configured repositories failed (Adobe Systems Incorporated),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:

            yum-config-manager --disable adobe-linux-x86_64

     4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=adobe-linux-x86_64.skip_if_unavailable=true

failure: repodata/repomd.xml from adobe-linux-x86_64: [Errno 256] No more mirrors to try.
http://linuxdownload.adobe.com/linux/x86_64/repodata/repomd.xml: [Errno 14] curl
#7 - "Failed connect to localhost:8080; Connection refused"
   <repeated 9 more times>

저장소 를 비활성화하면 adobe-linux다음만 표시됩니다.

[root@Eiger yum.repos.d]# yum update
Loaded plugins: langpacks, refresh-packagekit


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>

     4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: fedora/19/x86_64. Please verify its path and try again

이상한 점은실패한 저장소의 이름을 모릅니다.두 번째. 이것도 이상해요내가 구성한 다른 저장소는 시도하지 않습니다.(fedora, fedora-updates, google-chrome, google-talkplugin, insync, intellinuxgraphics, rpmfusion-free, rpmfusion-free-updates, rpmfusion-nonfree, rpmfusion-nonfree-updates).

이것은 1년 넘게 작동해 왔지만 아직 손대지 않았습니다 /etc/yum*.


나는 컴퓨터를 잠자기 상태로 설정하고 하루 후에 깨어납니다. 이제 모든 것이 잘 작동합니다. 어제 본 행동을 설명할 수는 없지만 다시 재현할 수는 없습니다.

답변1

/etc/yum.conf내 YUM 구성 파일에 정의 가 포함되어 있지 않음 을 확인했습니다 proxy.

[main]
proxy=http://localhost:8080
proxy_username=put_proxy_user_name_here
proxy_password=put_proxy_user_password_here

.conf또한 아래의 다른 파일에 /etc/yum.repo.d/*프록시 세부정보가 언급되어 있지 않은지 확인하세요 .

또한 verbose 함수를 사용하여 yum문제를 추가로 디버깅 하겠습니다.

$ yum -v ....

답변2

캐시를 삭제하면 문제가 해결되었습니다.

rm -Rf /var/cache 

그리고 새 폴더를 생성해주세요

mkdir /var/cache 

이것은 나에게 효과적입니다.

관련 정보