프록시 뒤의 RHEL 7에서 epel 사용

프록시 뒤의 RHEL 7에서 epel 사용

저는 Red Hat Enterprise Linux Server 7을 실행 중이고 epel(Enterprise Linux용 추가 패키지) 저장소가 작동하도록 하는 데 몇 가지 문제가 있습니다(최종적으로 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 구성에 액세스할 수 없습니다. 그럴듯한 해결책은 무엇입니까?

답변1

yum연결할 수 있도록 프록시 세부정보를 제공해야 하는 것 같습니다 .

여기에 /etc/yum.conf다음 행을 추가해야 합니다(유효한 프록시 및 로그인 세부 정보로 업데이트됨).

proxy=http://<your proxy address>:<proxy port>
proxy_username=<username>
proxy_password=<password>

이것은확실히구성 파일에 일반 텍스트로 된 유효한 로그인 자격 증명이 있으므로 보안 문제가 있습니다. 찾는 사람은 누구나 이러한 세부 정보를 얻을 수 있으므로 보안 조치를 알고 있는지 확인하십시오.

더 많은 정보는 문서에서 찾을 수 있습니다여기.

이것을 유일한 실제 옵션에 추가할 수 없는 경우 yum.conf가능한 사람에게 연락하는 것 외에는 더 많은 프록시와 전달자를 설정해야 하는데, 이는 어쨌든 할 수 없을 것 같습니다.

관련 정보