CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] Installation Problems (https://www.cfd-online.com/Forums/openfoam-installation/234937-installation-problems.html)

ECP March 24, 2021 12:25

Installation Problems
 
Hi everyone,



I'm trying to learn OpenFoam and i'm having some troubles trying to install the software. Here is what the terminal is giving me back after i run the command "sudo apt-get install openfoam7"


Here is the message:
"Err:1 https://jztkft.dl.sourceforge.net/pr...am/foam/ubuntu focal/main amd64 openfoam7 amd64 20200508
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 45.67.159.245 443]
Err:2 https://altushost-swe.dl.sourceforge...am/foam/ubuntu focal/main amd64 paraviewopenfoam56 amd64 0-20200505
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 79.142.76.130 443]
W: https://jztkft.dl.sourceforge.net/pr...508_amd64.deb: No system certificates available. Try installing ca-certificates.
W: https://altushost-swe.dl.sourceforge...505_amd64.deb: No system certificates available. Try installing ca-certificates.
E: Failed to fetch https://jztkft.dl.sourceforge.net/pr...0508_amd64.deb Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 45.67.159.245 443]
E: Failed to fetch https://altushost-swe.dl.sourceforge...0505_amd64.deb Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 79.142.76.130 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"


I'm really interested in learning the software so I really appreciate if anyone could help me around this problem.

olesen March 27, 2021 10:53

Could try following these instructions and see if you have better luck
https://develop.openfoam.com/Develop...ompiled/debian

ECP March 27, 2021 11:35

Not much luck
 
Thanks for the reply!


Unfortunately, I've been trying with that and many other basic and simple installation guides but nothing seem to be working, this is the last mistake i got when i try to run the "add-debian-repo.sh" script.


"(base) juan@juan-Satellite-P55-A:~/Downloads$ bash add-debian-repo.sh
Detected distribution code-name: focal
add-debian-repo.sh: line 115: /etc/apt/sources.list.d/openfoam.list: Permission denied
Overwrote /etc/apt/sources.list.d/openfoam.list
Importing openfoam gpg key... add-debian-repo.sh: line 131: /etc/apt/trusted.gpg.d/openfoam.gpg: Permission denied
Error"

olesen March 28, 2021 04:21

Quote:

Originally Posted by ECP (Post 800009)
Thanks for the reply!


Unfortunately, I've been trying with that and many other basic and simple installation guides but nothing seem to be working, this is the last mistake i got when i try to run the "add-debian-repo.sh" script.


"(base) juan@juan-Satellite-P55-A:~/Downloads$ bash add-debian-repo.sh
Detected distribution code-name: focal
add-debian-repo.sh: line 115: /etc/apt/sources.list.d/openfoam.list: Permission denied
Overwrote /etc/apt/sources.list.d/openfoam.list
Importing openfoam gpg key... add-debian-repo.sh: line 131: /etc/apt/trusted.gpg.d/openfoam.gpg: Permission denied
Error"

It looks like you missed out the "sudo" part of the instructions. Even if you download it to a file location, you need root permissions to add the gpg keys and setup the repo locations. That's what the sudo is for.

ECP March 28, 2021 04:40

Not quite, that was the latest error that i got after applying all the other commands, if i follow the normal installation procedure this is what i get.


(base) juan@juan-Satellite-P55-A:~$ wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
(base) juan@juan-Satellite-P55-A:~$ sudo apt-get install openfoam2012-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openfoam2012-default
(base) juan@juan-Satellite-P55-A:~$ sudo apt-get update
Hit:1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://dl.openfoam.org/ubuntu focal InRelease
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:6 https://dl.openfoam.com/repos/deb focal InRelease
Err:7 https://dl.openfoam.com/repos/deb focal Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 82.71.205.33 443]
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Reading package lists... Done
W: https://dl.openfoam.com/repos/deb/di...cal/InRelease: No system certificates available. Try installing ca-certificates.
W: https://dl.openfoam.com/repos/deb/dists/focal/Release: No system certificates available. Try installing ca-certificates.
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.
(base) juan@juan-Satellite-P55-A:~$

olesen March 30, 2021 05:23

I've tagged one of our guys, not sure if it is http vs https issue or what.

GDS October 16, 2021 14:31

Quote:

Originally Posted by olesen (Post 800205)
I've tagged one of our guys, not sure if it is http vs https issue or what.

Any update on this? I am having similar problems.

MisterChuy October 24, 2021 22:37

Somehow similar problems with certificates and installation of OpenFOAM
 
I typed following command at terminal prompt
(my installation is for Ubuntu 20 on Windows 10 subsytem for Linux

sudo apt install ca-certificates

my problem was with supposedly expired certificates of sourceforge.net so I was not able to create repository so system could not be installed

Hope it helps

sjafarik January 29, 2022 18:03

Quote:

Originally Posted by MisterChuy (Post 814966)
I typed following command at terminal prompt
(my installation is for Ubuntu 20 on Windows 10 subsytem for Linux

sudo apt install ca-certificates

my problem was with supposedly expired certificates of sourceforge.net so I was not able to create repository so system could not be installed

Hope it helps

Thanks a lot I had this problem for a full day and your method resolved it! really appreciate you help!


All times are GMT -4. The time now is 12:45.