apt-get 으로 뭘 하려고 해도 아래와 같은 에러가 뜨면서 실행이 안된다...

Setting up oracle-java8-installer (8u11+8u6arm-1~webupd8~3) ...
Downloading Oracle Java 8...
--2014-10-27 22:23:12--  http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 61.111.58.9, 61.111.58.27
Connecting to download.oracle.com (download.oracle.com)|61.111.58.9|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz [following]
--2014-10-27 22:23:12--  https://edelivery.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.12.230.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.12.230.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz?AuthParam=1414416312_44740ceede27da6e7cfe1d92708974bf [following]
--2014-10-27 22:23:12--  http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz?AuthParam=1414416312_44740ceede27da6e7cfe1d92708974bf
Connecting to download.oracle.com (download.oracle.com)|61.111.58.9|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

Download done.
Removing outdated cached downloads...
sha256sum mismatch jdk-8u11-linux-x64.tar.gz
Oracle JDK 8 is NOT installed.
dpkg: error processing oracle-java8-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)


위 에러 중 빨간 글씨로 하이라이트 한 부분을 보자 해결 방법을 제시해 주고 있다...ㅋㅋ
java 8 installer에서 문제가 있으므로 우선 아래 명령어로 캐시를 살펴보자

$ ls -l /var/cache/oracle-jdk8-installer/
total 155328
-rw-r--r-- 1 root root     13959 May  6 19:16 fontconfig.Ubuntu.properties
-rw-r--r-- 1 root root        91 Sep  4  2012 jar.binfmt
-rwxr-xr-x 1 root root       148 Feb  9  2011 javaws-wrapper.sh
-rw-r--r-- 1 root root 159019376 Jun 18 04:00 jdk-8u11-linux-x64.tar.gz
-rw-r--r-- 1 root root        90 Oct 27 22:23 wgetrc

해당하는 부분을 발견 할 수 있었다.
이제 제거하고 다시 설치하는 일만 남았다. 아래 명령어를 수행한다.

sudo rm /var/cache/oracle-jdk8-installer/jdk-8u11-linux-x64.tar.gz
sudo dpkg --configure -a
sudo apt-get -f install


  1. 문승찬 2014.10.28 00:42

    밤에도 열심이군요. 자면서 합시다 :)

+ Recent posts