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

[OpenFOAM.org] I have trouble installing openfoam 5.0 on ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2018, 06:24
Default I have trouble installing openfoam 5.0 on ubuntu 16.04
  #1
New Member
 
Join Date: Apr 2017
Posts: 9
Rep Power: 9
haydii is on a distinguished road
Hi ,
I want to install of5 on Ubuntu 16.04, I tried installing description in"https://openfoam.org/download/5-0-ubuntu/" but it not work, and last time i got this massage :
Code:
Reading package lists... Done
Building dependency tree       
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:
 openfoam5 : Depends: binutils-dev but it is not going to be installed
             Depends: libxt-dev but it is not going to be installed
 E: Unable to correct problems, you have held broken packages.
please help me to fix this
haydii is offline   Reply With Quote

Old   December 16, 2018, 15:55
Default
  #2
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
Quick answer: I know I've seen this problem before, but I can't remember exactly why this was happening back then...

So my request is as follows:
  1. What does this command give you:
    Code:
    sudo apt-get update
    I need the complete output text.
  2. Then run again:
    Code:
    sudo apt-get -y install openfoam5
    and make sure to provide all of the output text it provides... I have the feeling that something is missing here...
__________________
wyldckat is offline   Reply With Quote

Old   December 25, 2018, 05:37
Default
  #3
New Member
 
Join Date: Apr 2017
Posts: 9
Rep Power: 9
haydii is on a distinguished road
Thank you for replay, please accept my apologies for delayed response,

The out put for first command is:
Fetched 384 B in 1min 1s (6 B/s)
Reading package lists... Done
W: The repository 'http://dl.openfoam.org/ubuntu xenial Release' does not have a Release file.
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.
W: The repository 'http://ubuntu.sepidvas.com/ubuntu xenial Release' does not have a Release file.
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.
W: The repository 'http://ubuntu.sepidvas.com/ubuntu xenial-updates Release' does not have a Release file.
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.
W: The repository 'http://ubuntu.sepidvas.com/ubuntu xenial-backports Release' does not have a Release file.
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.
W: The repository 'http://ubuntu.sepidvas.com/ubuntu xenial-security Release' does not have a Release file.
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.

Quote:
Originally Posted by wyldckat View Post
Quick answer: I know I've seen this problem before, but I can't remember exactly why this was happening back then...

So my request is as follows:
  1. What does this command give you:
    Code:
    sudo apt-get update
    I need the complete output text.
  2. Then run again:
    Code:
    sudo apt-get -y install openfoam5
    and make sure to provide all of the output text it provides... I have the feeling that something is missing here...
I tried again, the output for update command is:
W: The repository 'http://dl.openfoam.org/ubuntu xenial Release' does not have a Release file.
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.

Last edited by wyldckat; December 25, 2018 at 18:17. Reason: merged posts a few minutes apart
haydii is offline   Reply With Quote

Old   December 25, 2018, 18:20
Default
  #4
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
Quick answer: It looks like there is a problem with the machine with Ubuntu is having difficulties accessing the Internet.

Perhaps you are using a proxy server in Ubuntu? Because if you are, then it needs additional configuration: https://askubuntu.com/questions/2572...-proxy-for-apt

If you have Ubuntu installed inside a virtual machine or Windows 10 WSL, then you will need to configure it to be able to access the internet from your real machine... but without knowing more details, it's hard to provide more guidance.
wyldckat is offline   Reply With Quote

Old   December 26, 2018, 12:11
Default
  #5
New Member
 
Join Date: Apr 2017
Posts: 9
Rep Power: 9
haydii is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: It looks like there is a problem with the machine with Ubuntu is having difficulties accessing the Internet.

Perhaps you are using a proxy server in Ubuntu? Because if you are, then it needs additional configuration: https://askubuntu.com/questions/2572...-proxy-for-apt

If you have Ubuntu installed inside a virtual machine or Windows 10 WSL, then you will need to configure it to be able to access the internet from your real machine... but without knowing more details, it's hard to provide more guidance.

I installed ubuntu on a virtual machine, but every time I want to install openfoam, first I check internet connection and sure it works properly. please help me, I'm really confused why this problem occurs
Last time I tried to install, the update command goes well, but install command ended with an error like this:
E: Unable to locate package OpenFOAM5
haydii is offline   Reply With Quote

Old   December 27, 2018, 11:56
Default
  #6
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
Quick answer: Please follow these steps:
  1. Check which Ubuntu version and architecture you have installed. To do so, run the following commands in a terminal window within Ubuntu:
    Code:
    uname -m
    cat /etc/lsb-release
    • For me, I get the following:
      Code:
      x86_64
      
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=16.04
      DISTRIB_CODENAME=xenial
      DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"
    • For you, if you get on the first command something like "i686", then that is why it's not working. You will need to install Ubuntu 16.04 64-bit, if you want to install OpenFOAM via Deb packages.
  2. If your Ubuntu is really 64-bit, then run the following commands, one line at a time:
    Code:
    wget http://dl.openfoam.org/ubuntu/dists/xenial/main/binary-amd64/openfoam5_20171030_amd64.deb
    
    wget http://dl.openfoam.org/ubuntu/dists/xenial/main/binary-amd64/paraviewopenfoam54_0-3_amd64.deb
    
    sudo dpkg -i openfoam5_20171030_amd64.deb
    sudo dpkg -i paraviewopenfoam54_0-3_amd64.deb
    sudo apt-get install -f
    sudo dpkg-reconfigure openfoam5
    sudo dpkg-reconfigure paraviewopenfoam54
  3. If all goes well, you can then run the following command without any error messages:
    Code:
    source /opt/openfoam5/etc/bashrc
wyldckat is offline   Reply With Quote

Reply

Tags
openfoam 5.0, ubuntu 16.04


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
[FSI] Having trouble installing FSI_4.0 on foam-extend 4.1 and Ubuntu 16.04 Aliiiii OpenFOAM CC Toolkits for Fluid-Structure Interaction 11 May 26, 2022 06:00
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
[OpenFOAM.com] v3.0+ Problems installing on Ubuntu 16.04 Evander OpenFOAM Installation 3 March 26, 2017 15:47
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 05:43.