J'essaie d'installer Java 7 sur mon Ubuntu 12.04. Mais à chaque fois que j'essaie, une erreur s'affiche comme ci-dessous. C'est quand j'essaie de mettre à jour même si Java 7 n'est pas installé.
harits@harits-ubuntu:~$ sudo apt-get upgrade
[sudo] password for harits:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
oracle-java7-installer
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/15.3 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
Downloading...
--2012-07-14 17:53:46-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)... 111.94.254.10, 111.94.254.17
Connecting to download.oracle.com (download.oracle.com)|111.94.254.10|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz [following]
--2012-07-14 17:53:46-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.51.118.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.51.118.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-07-14 17:53:47-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|111.94.254.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-i586.tar.gz'
0K ..... 100% 95.1M=0s
2012-07-14 17:53:47 (95.1 MB/s) - `./jdk-7u3-linux-i586.tar.gz' saved [5307/5307]
Download done.
sha256sum mismatch jdk-7u3-linux-i586.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
No apport report written because MaxReports is reached already
Errors were encountered while processing:
oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
harits@harits-ubuntu:~$
Quelqu'un peut-il me dire comment résoudre ce problème ?
0 votes
Je ne comprends pas. Essayez-vous de passer de 6 à 7 ?
0 votes
À ce stade, je recommande simplement d'utiliser openJDK 7.
sudo apt-get install openjdk-7-jre
et/ousudo apt-get install openjdk-7-jdk
si vous envisagez de développer des applications Java.