Yumはなぜプロキシや他の奇妙な行動を試みるのですか?

Yumはなぜプロキシや他の奇妙な行動を試みるのですか?

私は時々別の場所でインターネットを使用しているように見えるようにSSHトンネルプロキシを設定しました。私はそれを次のように設定しました:

ssh -D 8080 <remote host>

そして、GNOMEシェルネットワーク設定ダイアログボックスを使用してプロキシを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 ....

おすすめ記事