Hello KodeKloud,
I am not able to install java jdk packages in ubuntu plaground vm’s, Below is the command which i ran and the error i got.
sudo apt-get install openjdk-11-jdk-headless -y
update-alternatives: error: error creating symbolic link ‘/usr/share/man/man1/java.1.gz.dpkg-tmp’: No such file or directory
dpkg: error processing package openjdk-11-jre-headless:amd64 (–configure):
installed openjdk-11-jre-headless:amd64 package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-11-jdk-headless:amd64:
openjdk-11-jdk-headless:amd64 depends on openjdk-11-jre-headless (= 11.0.17+8-1ubuntu2~18.04); however:
Package openjdk-11-jre-headless:amd64 is not configured yet.
dpkg: error processing package openjdk-11-jdk-headless:amd64 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ca-certificates-java:
ca-certificates-java depends on openjdk-11-jre-headless | java8-runtime-headless; however:
Package openjdk-11-jre-headless:amd64 is not configured yet.
Package java8-runtime-headless is not installed.
Package openjdk-11-jre-headless:amd64 which provides java8-runtime-headless is not configured yet.
dpkg: error processing package ca-certificates-java (–configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1.4) …
Processing triggers for ca-certificates (20211016ubuntu0.18.04.1) …
Updating certificates in /etc/ssl/certs…
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…
done.
Errors were encountered while processing:
openjdk-11-jre-headless:amd64
openjdk-11-jdk-headless:amd64
ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried all the solutions in all forums, nothing helps, Please help me on this.