How to Install and Uninstall default-jdk Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: December 29,2024

1. Install "default-jdk" package

This is a short guide on how to install default-jdk on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install default-jdk

2. Uninstall "default-jdk" package

Please follow the steps below to uninstall default-jdk on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove default-jdk $ sudo apt autoclean && sudo apt autoremove

3. Information about the default-jdk package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: default-jdk
Architecture: amd64
Version: 2:1.11-68ubuntu1~18.04.1
Priority: optional
Section: devel
Source: java-common (0.68ubuntu1~18.04.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Java Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6
Provides: java-sdk, java10-sdk, java11-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk, java9-sdk
Depends: default-jre (= 2:1.11-68ubuntu1~18.04.1), default-jdk-headless (= 2:1.11-68ubuntu1~18.04.1), openjdk-11-jdk
Filename: pool/main/j/java-common/default-jdk_1.11-68ubuntu1~18.04.1_amd64.deb
Size: 1092
MD5sum: e20c3f07c7dc357e15f97e04650e70ce
SHA1: 31becbf3991e8a348f23297332e44efa5fa382e2
SHA256: f9e2e7ad33a1b3ac042a2b251e58dfb7c93ca443d4243ed5807e17c3e4221c01
SHA512: abf9bed0dfb0ea8b199e68fbccb7aa8f2474d092a46fa3aecf6836d6f06a28772331a7d607d0efcf458114ea2c324009df784cfe5eec4b244485b481bbca6c4f
Homepage: https://wiki.debian.org/Java/
Description: Standard Java or Java compatible Development Kit
Description-md5: c597cf36981d7716553d93e4f6672569
Cnf-Extra-Commands: javac,javadoc,jar
Supported: 5y

Package: default-jdk
Architecture: amd64
Version: 2:1.10-63ubuntu1~02
Priority: optional
Section: devel
Source: java-common (0.63ubuntu1~02)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Java Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6
Provides: java-sdk, java10-sdk, java11-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk, java9-sdk
Depends: default-jre (= 2:1.10-63ubuntu1~02), default-jdk-headless (= 2:1.10-63ubuntu1~02), openjdk-11-jdk
Filename: pool/main/j/java-common/default-jdk_1.10-63ubuntu1~02_amd64.deb
Size: 1092
MD5sum: b0bd8ab60a6d03679df9277dae0b27a5
SHA1: 95eec658a322093c74d0d97a4748581ea7b2afec
SHA256: 11827a559fe3c0a06585e81ae72310d11cee984da973c57ae46d6f52d777ead7
Homepage: https://wiki.debian.org/Java/
Description: Standard Java or Java compatible Development Kit
Description-md5: c597cf36981d7716553d93e4f6672569
Cnf-Extra-Commands: javac,javadoc,jar
Supported: 5y