LoginSignup
1
1

More than 5 years have passed since last update.

Proxy 環境下でJava8をUbuntu にインストールする

Last updated at Posted at 2016-05-26

あらまし

Ubuntu では PPA で Oracle製のJava8をインストールできるが、
Proxy環境下ではダウンロードエラーになってしまうので、回避する

本題

以下のようにすればいい

/etc/apt/apt.conf
  Acquire::http::Proxy "http://proxy:8080";
+ Acquire::https::Proxy "http://proxy:8080";

あとはProxy設定を変数から与えつつPPAの設定、インストール

Ubuntu16.04の場合
sudo http_proxy=http://proxy:8080 https_proxy=http://proxy:8080 add-apt-repository  ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer oracle-java8-set-default

参考

その他

危うく社内サーバのIPアドレス晒すところであったでござるよ

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