오랫동안 이 오류가 발생하여 해결책을 찾을 수 없습니다. 내가 사용하여 무엇이든 설치하려고 할 때마다
$ sudo apt-get install <package>
Setting up oracle-java8-installer (8u111+8u111arm-1~webupd8~0) ... Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc Downloading Oracle Java 8...
--2018-02-09 17:00:08-- http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 106.51.144.109 Connecting to download.oracle.com (download.oracle.com)|106.51.144.109|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz [following]
--2018-02-09 17:00:08-- https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)...
104.122.10.148, 2600:140f:c000:189::2d3e, 2600:140f:c000:187::2d3e Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.122.10.148|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz?AuthParam=1518175928_00ed0e25d1821b70eb9e792e6c25a9bf [following]
--2018-02-09 17:00:08-- http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz?AuthParam=1518175928_00ed0e25d1821b70eb9e792e6c25a9bf Connecting to download.oracle.com (download.oracle.com)|106.51.144.109|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2018-02-09 17:00:08 ERROR 404: Not Found.
download failed Oracle JDK 8 is NOT installed. dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of oracle-java8-set-default: oracle-java8-set-default depends on oracle-java8-installer; however: Package oracle-java8-installer is not configured yet.
dpkg: error processing package oracle-java8-set-default (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: oracle-java8-installer oracle-java8-set-default
dpkg: error processing package oracle-java8-set-default (--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-java8-installer
oracle-java8-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)
나는 다음을 사용하여 적절한 청소를 시도했습니다.
sudo apt-get clean
모든 것을 제거하려고 시도했지만 생성된 /var/cache regarding oracle-java8
폴더를 시도할 때마다 다시 시도 했습니다 /var/cache/oracle-java8-installer
. 에서 모든 잠금 파일을 제거해 보았습니다 /var/cache and var/lib/dpkg
.
나도 시도했다
sudo apt-get -f install
을 사용하여 무엇을 설치하려고 해도 sudo apt-get
이 오류가 나타납니다.
답변1
이는 네트워크 오류처럼 보입니다.
모든 것이 괜찮다면 오프라인으로 설치해 보세요.Java 오프라인 설치
또한 시도해 보세요
sudo apt-get purge
구성을 정리하려면
sudo apt-get update
절반 정도 빌드된 패키지를 나열해야 합니다.