我最近尝试在Ubuntu 12.04上安装Java 7,我想我搞砸了
我按照这里给出的说明进行操作。
First you need to remove openjdk for this run the following command from your terminal
sudo apt-get purge openjdk*
Now you can install Java7 by adding the following repository:
sudo add-apt-repository ppa:eugenesan/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
现在,每次我安装新程序时,都会出现以下错误:
Download done.
sha256sum mismatch jdk-7u3-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
Setting up python-central (0.6.17ubuntu1) ...
Setting up python-eggtrayicon (2.25.3-11) ...
Setting up gmail-notify (1.6.1.1-1ubuntu1) ...
Processing triggers for python-central ...
Errors were encountered while processing:
oracle-java7-installer
Error in function:
但是,该程序似乎可以安装并正常运行,因此似乎不会阻止我执行任何操作
因此,我通过以下方式重新安装了openjdk:
须藤apt-get install openjdk *
但是我仍然遇到同样的错误。
进行中:
sudo apt-get install oracle-java7-installer给了我同样的错误。
到底是怎么回事?
请让我知道是否清楚,请尝试更好地解释我的问题