Я пытаюсь установить Java 1.7_51 на Debian Wheezy с помощью:
apt-get install oracle-java7-installer=7u51-0~webupd8~1
от: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
В прошлом все было в порядке, теперь я удалил свой старый 1.7_45 и хочу новый 1.7_51, но каким-то странным образом установка не удалась.
Для установки загрузите несколько файлов, одним из которых является jdk-7u51-linux-x64.tar.gz
, который является страницей с ошибкой HTML. Смотрите ниже строки вывода с:
HTTP-запрос отправлен в ожидании ответа ... 200 OK Длина: 5307 (5,2 К)
[text/html] Сохранение в: `jdk-7u51-linux-x64. tar.gz '
Как это установить?
Ниже я представляю содержимое вывода команды (http://pastebin.com/gPBCivvU):
$ sudo apt-get install oracle-java7-installer=7u51-0~webupd8~1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox iceape-browser mozilla-browser
epiphany-gecko epiphany-webkit epiphany-browser galeon midbrowser moblin-web-browser xulrunner xulrunner-1.9 konqueror chromium-browser midori google-chrome
The following NEW packages will be installed:
oracle-java7-installer
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/17.6 kB of archives.
After this operation, 110 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package oracle-java7-installer.
(Reading database ... 41559 files and directories currently installed.)
Unpacking oracle-java7-installer (from .../oracle-java7-installer_7u51-0~webupd8~1_all.deb) ...
Processing triggers for shared-mime-info ...
Setting up oracle-java7-installer (7u51-0~webupd8~1) ...
Downloading Oracle Java 7...
--2014-03-15 18:02:52-- http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 84.53.175.152, 84.53.175.146
Connecting to download.oracle.com (download.oracle.com)|84.53.175.152|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz [following]
--2014-03-15 18:02:52-- https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 172.227.102.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|172.227.102.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2014-03-15 18:02:53-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|84.53.175.152|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `jdk-7u51-linux-x64.tar.gz'
0K 100% 387M=0s
2014-03-15 18:02:53 (387 MB/s) - `jdk-7u51-linux-x64.tar.gz' saved [5307/5307]
Download done.
Removing outdated cached downloads...
sha256sum mismatch jdk-7u51-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)