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.org] Deb packages on Ubuntu 16.04: Problem with bash file (https://www.cfd-online.com/Forums/openfoam-installation/186350-deb-packages-ubuntu-16-04-problem-bash-file.html)

f.fp April 17, 2017 07:09

Deb packages on Ubuntu 16.04: Problem with bash file
 
I installed OF on Ubuntu 16.04 LTS and it was not working properly. I realised then that two versions of OpenFoam were installed: 4 and -dev, I removed both and I tried to reinstall the former. However, after typing the commands:
sudo apt-get update I got the following error:

> W: GPG error: https://apt.dockerproject.org/repo ubuntu-yakkety
> InRelease: The following signatures couldn't be verified because the
> public key is not available: NO_PUBKEY F76221572C52609D W: The
> repository 'https://apt.dockerproject.org/repo ubuntu-yakkety
> InRelease' is not signed. N: Data from such a repository can't be
> authenticated and is therefore potentially dangerous to use. N: See
> apt-secure(8) manpage for repository creation and user configuration > details.

Furthermore, in my terminal these two messages appear:

bash: /opt/openfoam-dev/etc/bashrc: No such file or directory
bash: /opt/openfoam4/etc/bashr: No such file or directory

And I don't know how to remove them. Can anyone help me to fix this? I would like to perform a correct installation once for all!

f.fp April 17, 2017 10:51

or the first problem I think I have solved: it is sufficient to type
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys keyNo
where the last "keyNo" is the missing key.
As for the latter problem, opening the bash file and removing the last line(s) the problem desappears!

wyldckat April 24, 2017 13:31

Greetings f.fp and welcome to the forum!

Many thanks for letting us know how you solved your problems!

Quote:

Originally Posted by f.fp (Post 645191)
As for the latter problem, opening the bash file and removing the last line(s) the problem desappears!

My guess is that you are referring here to the file "~/.bashrc", namely the file ".bashrc" that is your own home folder.

You can then source (active) one of the "bashrc" files for the OpenFOAM version that you want to use. If you want to be able to switch between versions of OpenFOAM, follow the instructions given here: https://openfoamwiki.net/index.php/I...nFOAM_versions

Best regards,
Bruno


All times are GMT -4. The time now is 11:54.