How to Install and Uninstall openjdk-21-jdk-headless Package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Last updated: November 07,2024
Notice
You can also install and uninstall the openjdk-21-jdk-headless on the following distributions in the same way, as they are all based on the Ubuntu system
- Kubuntu 22.04 LTS
- Lubuntu 22.04 LTS
- Xubuntu 22.04 LTS
- Ubuntu MATE 22.04 LTS
- Ubuntu Studio 22.04 LTS
- Pop!_OS 22.04 LTS
- Zorin OS 16 / Zorin OS 17
- Ubuntu Budgie 22.04
1. Install "openjdk-21-jdk-headless" package
In this section, we are going to explain the necessary steps to install openjdk-21-jdk-headless on Ubuntu 22.04 LTS (Jammy Jellyfish)
$
sudo apt update
Copied
$
sudo apt install
openjdk-21-jdk-headless
Copied
2. Uninstall "openjdk-21-jdk-headless" package
This guide covers the steps necessary to uninstall openjdk-21-jdk-headless on Ubuntu 22.04 LTS (Jammy Jellyfish):
$
sudo apt remove
openjdk-21-jdk-headless
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the openjdk-21-jdk-headless package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Package: openjdk-21-jdk-headless
Architecture: amd64
Version: 21.0.2+13-1~22.04.1
Multi-Arch: same
Priority: optional
Section: universe/java
Source: openjdk-21
Origin: Ubuntu
Maintainer: OpenJDK Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 93688
Provides: java-compiler, java-sdk-headless (= 21), java10-sdk-headless, java11-sdk-headless, java12-sdk-headless, java13-sdk-headless, java14-sdk-headless, java15-sdk-headless, java16-sdk-headless, java17-sdk-headless, java18-sdk-headless, java19-sdk-headless, java2-sdk-headless, java20-sdk-headless, java21-sdk-headless, java5-sdk-headless, java6-sdk-headless, java7-sdk-headless, java8-sdk-headless, java9-sdk-headless
Depends: openjdk-21-jre-headless (= 21.0.2+13-1~22.04.1), libc6 (>= 2.34), zlib1g (>= 1:1.1.4)
Suggests: openjdk-21-demo, openjdk-21-source
Breaks: openjdk-17-jre-headless (<< 17~10), openjdk-21-jre-headless (<< 21~27ea)
Replaces: openjdk-17-jre-headless (<< 17~10), openjdk-21-jre-headless (<< 21~27ea)
Filename: pool/universe/o/openjdk-21/openjdk-21-jdk-headless_21.0.2+13-1~22.04.1_amd64.deb
Size: 82446402
MD5sum: a94a9ff5cf4063a059d53aab8e7ec5ef
SHA1: 75056932a508160a8262751bfdfa375d607fce91
SHA256: 7b9777d902c69ea589ac96f03df92b204971158fce5086150cbd77f9babb7482
SHA512: efedd3d6cf3aad82874e448493a0ed7eda2b60767cc25a2bbd4e74348d2b25c130efbf52b5b9dd47758f646f2b640bb85551bc989032adafe8e8eded8ff5e5b0
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK) (headless)
Description-md5: 494a52f34d707a832270d6d51a78f511
Architecture: amd64
Version: 21.0.2+13-1~22.04.1
Multi-Arch: same
Priority: optional
Section: universe/java
Source: openjdk-21
Origin: Ubuntu
Maintainer: OpenJDK Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 93688
Provides: java-compiler, java-sdk-headless (= 21), java10-sdk-headless, java11-sdk-headless, java12-sdk-headless, java13-sdk-headless, java14-sdk-headless, java15-sdk-headless, java16-sdk-headless, java17-sdk-headless, java18-sdk-headless, java19-sdk-headless, java2-sdk-headless, java20-sdk-headless, java21-sdk-headless, java5-sdk-headless, java6-sdk-headless, java7-sdk-headless, java8-sdk-headless, java9-sdk-headless
Depends: openjdk-21-jre-headless (= 21.0.2+13-1~22.04.1), libc6 (>= 2.34), zlib1g (>= 1:1.1.4)
Suggests: openjdk-21-demo, openjdk-21-source
Breaks: openjdk-17-jre-headless (<< 17~10), openjdk-21-jre-headless (<< 21~27ea)
Replaces: openjdk-17-jre-headless (<< 17~10), openjdk-21-jre-headless (<< 21~27ea)
Filename: pool/universe/o/openjdk-21/openjdk-21-jdk-headless_21.0.2+13-1~22.04.1_amd64.deb
Size: 82446402
MD5sum: a94a9ff5cf4063a059d53aab8e7ec5ef
SHA1: 75056932a508160a8262751bfdfa375d607fce91
SHA256: 7b9777d902c69ea589ac96f03df92b204971158fce5086150cbd77f9babb7482
SHA512: efedd3d6cf3aad82874e448493a0ed7eda2b60767cc25a2bbd4e74348d2b25c130efbf52b5b9dd47758f646f2b640bb85551bc989032adafe8e8eded8ff5e5b0
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK) (headless)
Description-md5: 494a52f34d707a832270d6d51a78f511