1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sudoを実行するときに環境変数を引き継ぐ

1
Posted at

Ubuntuを使っていて、aptとかでインストールをやろうとすると、Proxy環境だと少しコツが必要

ログインユーザの環境変数で、http_proxy、https_proxyを設定していてもSudoには引き継がれない。
そういう場合は、以下の通り

sudo -E apt update

これでログインユーザの環境変数を引き継いで、sudoが実行されます。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?