From my personal computer (Win 11) where I have installed WSL2 with Ubuntu 20.04, I am having some difficulties installing programs.
I tried to install OpenFoam and Geogebra and with both I get an error related to certificates.
Could anyone help me understand why and how to solve?
When installing GEOGEBRA with:
sudo apt-add-repository -u 'deb http://www.geogebra.net/linux/ stable main'
I get the error:
...
Err:17 https://sourceforge.net/projects/openfoam/files/repos/deb focal Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 204.68.111.105 443]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [207 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.7 kB]
Reading package lists... Done
W: GPG error: http://www.geogebra.net/linux stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C072A32983A736CF
E: The repository 'http://www.geogebra.net/linux stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://dl.openfoam.com/repos/deb focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
With OpenFOAM:
Add the repository
curl https://dl.openfoam.com/add-debian-repo.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3862 100 3862 0 0 11392 0 --:--:-- --:--:-- --:--:-- 11358
Detected distribution code-name: focal
Overwrote /etc/apt/sources.list.d/openfoam.list
Importing openfoam gpg key... done
Overwrote /etc/apt/trusted.gpg.d/openfoam.gpg
Running apt-get update... done
The repository is setup! You can now install packages.
Install preferred package:
sudo apt-get install openfoam2112-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openfoam2112-default
At this link they proposed this solution:
sudo apt install ca-certificates
And for geogebra I found this proposed solution.
But before proceeding I would like to understand the problem better.
Can someone help me understand it better please?
apt-key add
is required forgeogebra
and why aca-certificates
is needed for OpenFOAM, correct? – NotTheDr01ds May 26 '22 at 13:28apt
expert myself, but I'll see if I can provide the explanation for you if no one else answers first. Also, no worries on your English - It's pretty good! I did a few edits to make it more readable, but they were more on the formatting. – NotTheDr01ds May 26 '22 at 19:58