Score:-1

Install openjdk-11-jdk 32bit on Ubuntu 20.04 64bit

cn flag

I have installed openjdk-11 64 bit, but I need to install 32bit version

$ lsb_release -a
 No LSB modules are available.
 Distributor ID: Ubuntu
 Description:    Ubuntu 20.04.2 LTS
 Release:        20.04
 Codename:       focal
$ java -version
 openjdk version "11.0.11" 2021-04-20
 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
 OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
$ update-java-alternatives --list
 java-1.11.0-openjdk-amd64      1111       /usr/lib/jvm/java-1.11.0-openjdk-amd64

I tried to run:

$ sudo apt-get install openjdk-11-jdk:i386
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 E: Unable to locate package openjdk-11-jdk:i386

How can install it?

David avatar
cn flag
From this info it is not saying it can not install it. It is saying it can not find it. Where do you expect this app to be found?
nobody avatar
gh flag
Does `apt-cache search default-jdk:i386` find something. you are aware you have to add i386 architecture.
guiverc avatar
cn flag
Are you using Ubuntu, or a Ubuntu-based system as your `lsb_release -a` details do **not** match an upgraded Ubuntu 20.04 system, but instead match a system based on an older Ubuntu 20.04.2 system. Your details match a system prior to [late August-2021](https://fridge.ubuntu.com/2021/08/27/ubuntu-20-04-3-lts-released/) which is not what an [updated system will report](https://fridge.ubuntu.com/2023/03/23/ubuntu-20-04-6-lts-released/) & note the ISO release dates in my links are week+ behind when installed systems got those updates.
Score:1
pl flag

You likely don't have the i386 architecture enabled. Do the following:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install openjdk-11-jdk:i386
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.