Ubuntu apt-get install для установщика OracleJava 8 - ошибка HTTP 501 - PullRequest
0 голосов
/ 12 июня 2018

Я пытаюсь установить Oracle Java 8 JDK на мою машину с Ubuntu 16.04, и похоже, что установщик не работает - я продолжаю получать ERROR 501: Redirected to invalid target.

Я на новой установкеUbuntu 16.04, поэтому я запустил следующее:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer 

При установке, вот вывод:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
oracle-java8-installer is already the newest version (8u171-1~webupd8~0).
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic linux-image-4.4.0-45-generic linux-image-extra-4.4.0-45-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u171-1~webupd8~0) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
--2018-06-12 10:49:41--  http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz
Connecting to 10.0.10.117:3142... connected.
Proxy request sent, awaiting response... 501 Redirected to invalid target
2018-06-12 10:49:41 ERROR 501: Redirected to invalid target.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я также получаю 501, когда пытаюсь получить доступ к этому http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gzв браузере.Так кто-нибудь знает обходной путь?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...