Saya mencoba menginstal Java 1.7_51 di Debian Wheezy dengan:
apt-get install oracle-java7-installer=7u51-0~webupd8~1
dari: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
Di masa lalu itu OK, sekarang saya sudah menghapus 1.7_45 lama saya dan ingin 1.7_51 segar tetapi dalam beberapa cara aneh instalasi gagal.
Instalasi mengunduh beberapa file, salah satunya adalah jdk-7u51-linux-x64.tar.gz
, yang merupakan halaman kesalahan HTML. Lihat di bawah ini jalur output dengan:
Permintaan HTTP terkirim, menunggu respons ... 200 OK Panjang: 5307 (5.2K)
[teks / html] Menyimpan ke: `jdk-7u51-linux-x64. tar.gz '
Bagaimana cara menginstalnya?
Di bawah ini saya menyajikan konten output perintah ( 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)
sumber
Masalahnya adalah bahwa paket yang diunduh tidak cocok dengan checksum yang ada dalam paket:
Anda harus beralih ke cermin yang berbeda, jalankan
apt-get update
dan coba pasang lagi. Jika masalah berlanjut, ada sesuatu yang mengubah file yang Anda unduh.Mirror unduhan / repositori untuk paket Debian diatur
/etc/apt/sources.list
dan Anda dapat mengedit file ini dengan editor teks apa pun.sumber