
CentOS7 サーバーでちょっとした問題に遭遇しました。プロキシの背後にある仮想サーバーで、インターネットに接続できますが、yum を使用できません。試すたびに、次のエラーが発生します。
Could not retrieve mirrorlist http://mirrorlist.centos.org/?
release=7&arch=x86_64&repo=os&infra=stock error was
14: HTTP Error 407 - Proxy Authentication Required
プロキシを設定しているにもかかわらず/etc/環境:
http_proxy='http://user:password@url:8088/'
HTTP_PROXY='http://user:password@url:8088/'
https_proxy='http://user:password@url:8088/'
HTTPS_PROXY='http://user:password@url:8088/'
ftp_proxy='http://user:password@url:8088/'
FTP_PROXY='http://user:password@url:8088/'
no_proxy='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
NO_PROXY='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
そして設定ファイル:
proxy=http://url:8088/
proxy_username=user_name
proxy_password=password
私は宣言しました/root/.bash_profile:
export http_proxy="http://url:8088/"
そして/etc/wgetrc:
http_proxy='http://user:password@url:8088/'
HTTP_PROXY='http://user:password@url:8088/'
https_proxy='http://user:password@url:8088/'
HTTPS_PROXY='http://user:password@url:8088/'
ftp_proxy='http://user:password@url:8088/'
FTP_PROXY='http://user:password@url:8088/'
no_proxy='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
NO_PROXY='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
なぜ認証がまだ行われないのか本当に理解できません。これを解決する方法を誰か知っていますか?