You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't been able to install latest JDK 21 using repos available. After getting through the required gpg key additions and checks, I get this:
sudo apt-get install temurin-21-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
p11-kit-modules : Depends: libp11-kit0 (= 0.24.0-6build1) but 0.25.3-4ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.
info on system:
uname --all
Linux NAME 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Which just got reinstalled through wsl. Any insights are deeply appreciated.
Regards,
Felipe Roos
The text was updated successfully, but these errors were encountered:
The error you’re encountering is due to a conflict with the p11-kit-modules package and its dependencies. This usually happens when there’s a mismatch between package versions available in the repository and those installed on your system. Here’s how you can try to resolve it:
Solution Steps
1. Update Your Package Lists and Upgrade Existing Packages
sudo apt-get update
sudo apt-get upgrade
This makes sure all your packages are up-to-date and may resolve some dependency issues.
2. Fix Broken Packages
Use the following command to automatically fix broken dependencies:
sudo apt --fix-broken install
3. Install Required Dependencies Manually
If the above steps don’t resolve the issue, try installing the correct version of libp11-kit0:
sudo apt-get install libp11-kit0=0.24.0-6build1
This may downgrade the library to match the dependencies for p11-kit-modules.
4. Force Install temurin-21-jdk
After resolving the dependency issues, try installing temurin-21-jdk again with:
sudo apt-get install temurin-21-jdk
5. Add the Correct Repository (Optional)
If temurin-21-jdk is not directly available in your default repositories, you may need to add the appropriate repository:
Hi!
I haven't been able to install latest JDK 21 using repos available. After getting through the required gpg key additions and checks, I get this:
info on system:
Which just got reinstalled through wsl. Any insights are deeply appreciated.
Regards,
Felipe Roos
The text was updated successfully, but these errors were encountered: