왜 항상 Java 7을 설치하고 싶나요? 저는 Java 7을 원하지 않습니다. 어떻게든 Java 7의 시도를 막을 수 있나요?

왜 항상 Java 7을 설치하고 싶나요? 저는 Java 7을 원하지 않습니다. 어떻게든 Java 7의 시도를 막을 수 있나요?

oracle-java7-installer를 계속 설치하려는 이유는 무엇입니까? 이런 일을 시도하는 것을 막을 수 있는 방법이 있나요?

home@home-Vostro-220s-Series:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  printer-driver-postscript-hp
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up oracle-java7-installer (7u51-0~webupd8~1) ...
Downloading Oracle Java 7...
--2014-07-26 18:26:07--  http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 219.76.14.26, 219.76.14.9
Connecting to download.oracle.com (download.oracle.com)|219.76.14.26|: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-07-26 18:26:07--  https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.41.102.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.41.102.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2014-07-26 18:26:08--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|219.76.14.26|: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% 38.3M=0s

2014-07-26 18:26:08 (38.3 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
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)
home@home-Vostro-220s-Series:~$ 

답변1

oracle-java7-installer설치 프로세스 중에 Oracle JDK 7을 다운로드한 패키지를 설치했습니다 . 이를 실행하면 apt-get upgrade부분적으로 설치된 패키지의 설치가 완료됩니다. apt-get install패키지를 업그레이드하지 않고도 이 작업을 수행할 수 있습니다(일반적으로 모든 패키지가 완전히 설치되었기 때문에 이 작업은 아무 작업도 수행되지 않습니다). Java 7이 필요하지 않은 경우 다음 패키지를 제거하세요.

apt-get remove oracle-java7-installer

관련 정보