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에서 문제가 있으므로 우선 아래 명령어로 캐시를 살펴보자
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
'Eureka > Linux' 카테고리의 다른 글
[Tip] How to copy only part of a file using dd in linux (0) | 2018.01.05 |
---|---|
[Tip] How to install eXtensible ARchiver (xar) in linux (0) | 2017.07.27 |
[Solution] You must choose a longer password (0) | 2014.11.20 |
[Tip] How to Install Safety NVIDIA Graphics Driver in Linux (0) | 2014.11.20 |
[Tip] How to Change Display Resolutions in Linux (0) | 2014.10.26 |
[Tip] How to Change Keyboard repeat delay in linux (0) | 2014.10.26 |
[Tip] How to get make build time (0) | 2014.10.08 |
[Tip] How to get the number of CPU Cores in linux (0) | 2014.10.08 |