CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Deb packages on Ubuntu 16.04: Problem with bash file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2017, 08:09
Default Deb packages on Ubuntu 16.04: Problem with bash file
  #1
New Member
 
Join Date: Apr 2017
Posts: 2
Rep Power: 0
f.fp is on a distinguished road
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 is offline   Reply With Quote

Old   April 17, 2017, 11:51
Default
  #2
New Member
 
Join Date: Apr 2017
Posts: 2
Rep Power: 0
f.fp is on a distinguished road
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!
f.fp is offline   Reply With Quote

Old   April 24, 2017, 14:31
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 View Post
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
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
bashrc, installation, openfoam 4.0, ubuntu 16.04 lts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 15:04.