VMware5でUbuntu 10.4.04 LTSを使用しています。自動プロキシ設定を使用し、Firefoxからインターネットを使用できます。 apt-get update
を更新したいときに、次のエラーが発生します。次のリンクはいくつかの解決策を提供しますが、自動プロキシを使用しているため、ポート番号がありません https://answers.launchpad.net/uck/+question/10886 。
エラー:
Ign http security.ubuntu.com lucid-security multiverse Packages
Ign http security.ubuntu.com lucid-security multiverse Sources
Ign http security.ubuntu.com lucid-security main Packages
Err http security.ubuntu.com lucid-security main Packages
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/restricted Packages
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/main Sources
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/restricted Sources
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http security.ubuntu.com lucid-security/universe Packages
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http security.ubuntu.com/ubuntu/dists/lucid-security/Release.gpg Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http security.ubuntu.com/ubuntu/dists/lucid-security/main/i18n/Translation-en_US.bz2 Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http security.ubuntu.com/ubuntu/dists/lucid-security/restricted/i18n/Translation-en_US.bz2 Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
ご回答ありがとうございます!
apt-get
はグローバルプロキシ設定を使用しません。プロキシ設定を/etc/apt/apt.conf
に追加してみてください:
Acquire::http::proxy "http://<your-proxy-url>";
または、ターミナルで次のコマンドを実行します。
Sudo su
echo 'Acquire::http::proxy "http://<your-proxy-url>";' >> /etc/apt/apt.conf
今すぐ動作します!
何らかの理由でプロキシURLが接続に失敗しましたが、proxy.pac
を開いてALLプロキシURLをapt.conf
に追加しました。