Error Java Oracle di Ubuntu 20.04

Aku pernah nyobain masang java oracle di Ubuntu 20.04, hari ini aku mau upgrade seperti biasanya saat proses muncul error berikut :

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.4_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)

Solusi penyelesaian error :

sudo rm -rf /var/cache/oracle-jdk11-installer-local
sudo rm /var/lib/dpkg/info/oracle*
sudo apt purge oracle-java11-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt autoremove

Semoga bermanfaat

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s