LoginSignup
0
0

More than 3 years have passed since last update.

aptを、Proxy環境化で使う

Posted at

得意のProxyネタ。
今回は、WSL(Windows Subsystem for Linux)でUbuntuを使う検証をやっています。

/etc/apt/apt.confを修正する

Acquire::http::Proxy "http://{proxy_ip}:{proxy_port}";
Acquire::https::Proxy "http://{proxy_ip}:{proxy_port}";

終わりに

まぁ、いつもながら単純なんですが、これだけです。
Linuxだと環境変数「http_proxy」「https_proxy」を設定してあげると
大体うまくいく気がしてましたが、aptのように読み取ってくれない
コマンドもあるという理解ができました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0