Groovy를 어떻게 설치합니까? download.oracle.com (download.oracle.com)… 96.17.181.40,

내가 이것을 시도 할 때 :

sudo apt-get install groovy 

이 큰 오류가 발생합니다.

Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
Downloading...
--2012-04-28 18:43:39--  http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)... 96.17.181.40, 96.17.181.49
Connecting to download.oracle.com (download.oracle.com)|96.17.181.40|: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-04-28 18:43:39--  https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.50.22.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.50.22.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-04-28 18:43:40--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|96.17.181.40|: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% 47.2K=0.1s

2012-04-28 18:43:40 (47.2 KB/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
dpkg: dependency problems prevent configuration of groovy:
 groovy depends on default-jre-headless | sun-java6-jre; however:
  Package default-jre-headless is not installed.
  Package oracle-java7-installer which provides default-jre-headless is not configured yet.
  Package sun-java6-jre is not installed.
dpkg: error processing groovy (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 oracle-java7-installer
 groovy
E: Sub-process /usr/bin/dpkg returned an error code (1)

내 PC에 이미 Java가 설치되어 있습니다. 내가 실행할 때 :

java -version

나는 얻다 :

java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Server VM (build 23.0-b21, mixed mode)

내가 실수하는 곳?

미리 감사드립니다.



답변

나는 다음을 수행 하여이 오류를 복구했습니다.

sudo apt-get purge openjdk*

openjdk시스템에 설치된 것을 제거하라는 메시지 가 나타납니다. 계속 진행하십시오. openjdkPC에서를 제거한 후에는 다음을 수행 할 수 있습니다.

sudo apt-add-repository ppa:groovy-dev/groovy
sudo apt-get update
sudo apt-get install groovy

안정적인 버전이 설치됩니다. 그런 다음 터미널 에서이 작업을 수행하십시오.

groovy -version

이것은 당신에게 출력을 줄 것입니다 :

Groovy Version: 1.8.6 JVM: 1.6.0_24 Vendor: Sun Microsystems Inc. OS: Linux

답변

대신 GVM (Groovy enVironment Manager) 을 설치하고 groovy를 설치하는 데 사용했습니다.