![通过 sudo apt-get upgrade 命令升级时出错](https://linux22.com/image/919653/%E9%80%9A%E8%BF%87%20sudo%20apt-get%20upgrade%20%E5%91%BD%E4%BB%A4%E5%8D%87%E7%BA%A7%E6%97%B6%E5%87%BA%E9%94%99.png)
设置 oracle-java11-installer-local (11.0.5-1~linuxuprising0) ... 在安装此软件包之前,请下载与此软件包相同版本(版本 11.0.4)的 Oracle JDK 11 .tar.gz 文件,并将其放在 /var/cache/oracle-jdk11-installer-local 中,
例如:
sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.4_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
sha256sum mismatch jdk-11.0.5_linux-x64_bin.tar.gz
Oracle JDK 11 is NOT installed.
dpkg: error processing package oracle-java11-installer-local (--configure):
installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
**Errors were encountered while processing:
oracle-java11-installer-local
E: Sub-process /usr/bin/dpkg returned an error code (1)**