Red Hat Enterprise Linux Server 7を実行していますが、Enterprise Linux(epel)リポジトリの追加パッケージを動作させるのに問題があります(最終的にXFCEをインストールしたい)。問題は企業のプロキシ設定にあると特定したと思います。
Epelをインストールしました
wget http://dl.fedoraproject.org/pub/epel/7Server/x86_64/e/epel-release-7-9.noarch.rpm
Sudo rpm -ivh epel-release-7-9.noarch.rpm
これはうまくいきました(プロキシ設定を使用するように〜/ .wgetrcファイルを構成しました)。しかし、私がやろうとすると
Sudo yum repolist
「リポジトリのメタリンクを取得できません:epel/x86_64。パスを確認して再試行してください」というエラーが表示されますが、
Sudo yum --disablerepo=epel repolist
正常に動作します。ランニング
URLGRABBER_DEBUG=1 yum repolist
次の抜粋によるプロキシの問題であると私に信じさせてください。
2017-01-13 17:23:18,207 attempt 1/10: https://mirrors.fedoraproject.org/metalink?repo=epel-7&Arch=x86_64
2017-01-13 17:23:18,207 opening local file "/var/tmp/yum-usernameredacted-nARLQn/x86_64/7Server/epel/metalink.xml.tmp" with mode wb
* About to connect() to mirrors.fedoraproject.org port 443 (#10)
* Trying 209.132.181.15...
* After 14938ms connect time, move on!
* Trying 152.19.134.142...
* After 7468ms connect time, move on!
* Trying 209.132.181.16...
* After 3734ms connect time, move on!
* Trying 185.141.165.254...
* After 1866ms connect time, move on!
* Trying 174.141.234.172...
* After 932ms connect time, move on!
* Trying 152.19.134.198...
* After 466ms connect time, move on!
* Trying 67.219.144.68...
* After 232ms connect time, move on!
* Trying 8.43.85.67...
* After 116ms connect time, move on!
* Trying 140.211.169.206...
* After 58ms connect time, move on!
* Trying 140.211.169.196...
* After 28ms connect time, move on!
* Trying 2604:1580:fe00:0:dead:beef:cafe:fed1...
* Failed to connect to 2604:1580:fe00:0:dead:beef:cafe:fed1: Network is unreachable
* Trying 2610:28:3090:3001:dead:beef:cafe:fed3...
* Failed to connect to 2610:28:3090:3001:dead:beef:cafe:fed3: Network is unreachable
* Trying 2605:bc80:3010:600:dead:beef:cafe:fed9...
* Failed to connect to 2605:bc80:3010:600:dead:beef:cafe:fed9: Network is unreachable
* Failed connect to mirrors.fedoraproject.org:443; Network is unreachable
* Closing connection 10
2017-01-13 17:23:48,178 exception: [Errno 14] curl#7 - "Failed to connect to 2604:1580:fe00:0:dead:beef:cafe:fed1: Network is unreachable"
2017-01-13 17:23:48,178 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
私はSudo権限を持っていますが、ほとんどのyum構成にアクセスできません。もっともらしい解決策は何ですか?
接続できるように、プロキシの詳細をyum
に提供する必要があるようです。
/etc/yum.conf
に、次の行を追加する必要があります(有効なプロキシとログインの詳細で更新されます)。
proxy=http://<your proxy address>:<proxy port>
proxy_username=<username>
proxy_password=<password>
これは明らかにセキュリティ上の懸念事項です。設定ファイルにプレーンテキストで有効なログイン資格情報があるためです。探している人は誰でもそれらの詳細を知ることができるので、セキュリティの取り決めを知っていることを確認してください。
詳細については、ドキュメント ここ を参照してください。
これをyum.conf
に追加できない場合、唯一の本当の選択肢は、できる人に連絡することです。それ以上の場合は、プロキシとフォワーダーをさらに設定する必要がありますが、とにかくできないと思います。