http://user:password@host:port/
Debianのインストール中に、私が入力した形式の標準プロキシ文字列を要求されました。 apt-getはアップデート中に実行され、Debianがインストールされているファイルを検索します。しかし、実行しようとすると、「インストール中に入力したホストはどこにありますか?」sudo apt-get install ...
というメッセージとともにエラーメッセージが表示されます。Could not resolve proxy_host
proxy_host
プロキシ情報を設定する必要がある他の場所はありますか?
ベストアンサー1
以下は、一般的なプロキシであるaptとwgetについてです。user:password@
不要なプロキシを削除できます。
一般代理人の場合:
touch /etc/profile.d/proxy.sh
以下を追加してください。
export ftp_proxy=ftp://user:password@host:port
export http_proxy=http://user:password@host:port
export https_proxy=https://user:password@host:port
export socks_proxy=https://user:password@host:port
APTエージェントの場合:
touch /etc/apt/apt.conf.d/99HttpProxy
以下を追加してください。
Acquire::http::Proxy "http://user:password@host:port";
wgetの場合:
nano /etc/wgetrc
エージェント行を探してコメントを削除するか、存在しない場合は追加します。
http_proxy = http://user:password@host:port
https_proxy = ...
...