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

Errors while installing openfoam on ubuntu 12.04 AND 11.10

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2012, 20:01
Default Errors while installing openfoam on ubuntu 12.04 AND 11.10
  #1
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
I wonder if you can help me for installing OpenFoam!
I follow the steps of the installations from the website: http://www.openfoam.org/download/ubuntu.php
But in step3 when i type : " sudo apt-get install openfoam211" i get these errors :

omid@ubuntu:~$ sudo apt-get install openfoam211
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:

he following packages have unmet dependencies:
openfoam211 : Depends: g++ but it is not installable
Depends: libreadline-dev but it is not installable
Depends: libopenmpi1.3 but it is not going to be installed
Depends: libptscotch-5.1 but it is not going to be installed
Depend
Ts: binutils-dev but it is not installable
Depends: flex but it is not installable
Depends: libscotch-dev but it is not going to be installed
Depends: libopenmpi-dev but it is not going to be installed
Depends: libxt-dev but it is not installable
Depends: openmpi-bin but it is not going to be installed
Recommends: libptscotch-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I get these errors for the version 2.1.1 and 2.1.0 on both ubuntu (12.04) and (11.10).
but for 2.0.1 i get this error:
omid@ubuntu:~$ sudo apt-get install openfoam201
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openfoam201

I would appreciate if you have any idea about this problem.
fshak92 is offline   Reply With Quote

Old   June 12, 2012, 04:44
Default
  #2
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Yes, when I install OpenFOAM 2.1.1 in Ubuntu 12.04 LST. The error information is as follows:

W: GPG error: http://cn.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
E: Unable to parse package file /var/lib/apt/lists/partial/www.openfoam.org_download_ubuntu_dists_precise_mai n_i18n_Index (1)
........


Please help out. Thanks.
sandy is offline   Reply With Quote

Old   June 12, 2012, 15:14
Default
  #3
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Nobody has any idea?
fshak92 is offline   Reply With Quote

Old   June 12, 2012, 18:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 to all!

Interesting... My guess is that the problem is not with the OpenFOAM packages themselves, but some other problem with Ubuntu.

So, let's start with some attempts at debugging the problem:
  1. Any error messages when you run:
    Code:
    sudo apt-get update
  2. Which architecture of Ubuntu are you using? i686 or x86_64? Run this to know which:
    Code:
    uname -m
  3. Also, if you this command, what does it show:
    Code:
    sudo apt-get -qq --print-uris install openfoam211
Best regards,
Bruno
Hemanth likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 13, 2012, 03:50
Default
  #5
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

Interesting... My guess is that the problem is not with the OpenFOAM packages themselves, but some other problem with Ubuntu.

So, let's start with some attempts at debugging the problem:
  1. Any error messages when you run:
    Code:
    sudo apt-get update
  2. Which architecture of Ubuntu are you using? i686 or x86_64? Run this to know which:
    Code:
    uname -m
  3. Also, if you this command, what does it show:
    Code:
    sudo apt-get -qq --print-uris install openfoam211
Best regards,
Bruno
Hi Bruno,

My computer system is x86_64 . As you known, I got the error information:

.....
E: Unable to locate package openfoam211
....

You think, what is next step to solve it? Please help.

Sandy
sandy is offline   Reply With Quote

Old   June 13, 2012, 17:39
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Sandy,

I think you didn't answer my first question - are there any error messages reported by this command :
Code:
sudo apt-get update
Additionally, read through the details that the command gave you. Are there any details that seem out of place, for your Ubuntu distribution? Any references to "natty" or some name that isn't related to "precise"?

Another possibility is this:
  1. Install synaptic:
    Code:
    sudo apt-get install synaptic
  2. The run Synaptic from either Ubuntu's pretty button (don't know the specific name of Unity's "start" menu) or run from the command line:
    Code:
    gksu synaptic
  3. Then try installing OpenFOAM from there. It might give you a better error message and tell you what to do to fix the problem.
Additionally, you can check on Synaptic the repositories being used for installing software.
You can then try removing OpenFOAM's repository and update the package list once again.
Then try the official steps once more.

Best regards,
Bruno
fshak92 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 14, 2012, 19:49
Default
  #7
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Sandy,

I think you didn't answer my first question - are there any error messages reported by this command :
Code:
sudo apt-get update
Additionally, read through the details that the command gave you. Are there any details that seem out of place, for your Ubuntu distribution? Any references to "natty" or some name that isn't related to "precise"?

Another possibility is this:
  1. Install synaptic:
    Code:
    sudo apt-get install synaptic
  2. The run Synaptic from either Ubuntu's pretty button (don't know the specific name of Unity's "start" menu) or run from the command line:
    Code:
    gksu synaptic
  3. Then try installing OpenFOAM from there. It might give you a better error message and tell you what to do to fix the problem.
Additionally, you can check on Synaptic the repositories being used for installing software.
You can then try removing OpenFOAM's repository and update the package list once again.
Then try the official steps once more.

Best regards,
Bruno
Thank you very much.
By using synaptic,It was installed correctly.
fshak92 is offline   Reply With Quote

Old   June 17, 2012, 09:15
Default
  #8
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Hi Again
Unfortunately paraFoam cannot be loaded with many lines of errors.Here is some of those lines(most of them are similar):

X Error: BadRequest (invalid request code or no such operation) 1
Extension: 154 (Uknown extension)
Minor opcode: 19 (Unknown request)
Resource id: 0x4200068
X Error: BadRequest (invalid request code or no such operation) 1
Extension: 154 (Uknown extension)
Minor opcode: 19 (Unknown request)
Resource id: 0x4200026
X Error: BadRequest (invalid request code or no such operation) 1
Extension: 154 (Uknown extension)
Minor opcode: 14 (Unknown request)
Resource id: 0x4200026
ERROR: In /home/opencfd/OpenFOAM/ThirdParty-2.1.x/ParaView-3.12.0/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 629
vtkXOpenGLRenderWindow (0x134ec90): Cannot create GLX context. Aborting.
fshak92 is offline   Reply With Quote

Old   June 17, 2012, 13:31
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi omid88,

I saw this reported the other day here: http://www.openfoam.org/mantisbt/view.php?id=551

The fix was:
  1. Install "mesa-utils":
    Code:
    sudo apt-get install mesa-utils
  2. Reboot your machine.
  3. After rebooting, verify how things are working:
    Code:
    glxinfo
  4. Depending on the report, you should be able to ascertain if ParaView will work or not...
Best regards,
Bruno
fshak92 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 18, 2012, 03:04
Default
  #10
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Cry ..... I don't know why I can not find openfoam in the list of my synaptic package manage ? Please help out. I use Ubuntu 12.04 in x86_64 ....
sandy is offline   Reply With Quote

Old   June 18, 2012, 09:31
Default
  #11
Disabled
 
anonymous
Join Date: Oct 2010
Posts: 6
Rep Power: 16
anon_i is on a distinguished road
Because it is a third party app not supported by canonical, the company providing and supporting ubunto (why, oh why is everyone using this!?).

You have to provide a suitable software environment for openfoam by installing the required dependencies from synaptic or via apt.
Then you can install and use openfoam.

regards,
gt
anon_i is offline   Reply With Quote

Old   June 18, 2012, 09:41
Default
  #12
Disabled
 
anonymous
Join Date: Oct 2010
Posts: 6
Rep Power: 16
anon_i is on a distinguished road
Sandy: from a command line, do a

Code:
apt-cache search openfoam
if it doesn't find something there, apt (the sub-system of synaptic) can not install openfoam from any source available.

The solution would be to MAKE it available. That in turn is described here.

Instead of inputting that cryptic line from the documentation you can just edit the file

Code:
/etc/apt/sources.list
which lists the sources that are available to apt to install software from. That is exactly what the line in the openfoam.com documentation does.

After having done that (extended the sources.list by that source either via inputting the first line from the documentation on openfoam.com or by editing the /etc/apt/sources.list), do a

Code:
sudo apt-get update
which will fetch the list of available packages from all software sources (repositories) defined in /etc/apt/sources.list.

Afterwards do a

Code:
apt-cache search openfoam
and check if apt finds it. If yes, follow the instructions to install.

Best regards
gt
anon_i is offline   Reply With Quote

Old   June 20, 2012, 16:37
Default
  #13
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Thank you for your reply.

I installed the mesa-utils and after restarting and typing "glxinfo" i got these errors:

omid@ubuntu:~$ glxinfo
name of display: :0
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 12
Current serial number in output stream: 12


Also running the paraFoam gives the previous errors.(My graphic card is AMD and i installed it before)
Do you know what can i do next?
Thank you in advance.

Quote:
Originally Posted by wyldckat View Post
Hi omid88,

I saw this reported the other day here: http://www.openfoam.org/mantisbt/view.php?id=551

The fix was:
  1. Install "mesa-utils":
    Code:
    sudo apt-get install mesa-utils
  2. Reboot your machine.
  3. After rebooting, verify how things are working:
    Code:
    glxinfo
  4. Depending on the report, you should be able to ascertain if ParaView will work or not...
Best regards,
Bruno

Last edited by fshak92; June 20, 2012 at 17:11.
fshak92 is offline   Reply With Quote

Old   June 20, 2012, 17:31
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi omid88,

OK, there are a few possible solutions, as far as I know:
  1. Make really certain that the ATI drivers are properly installed and reboot your computer!
    Also, you might not have all of the ATI essentials installed. I've got an ATI GPU chip on-board and have the following packages installed:
    Code:
    fglrx fglrx-amdcccle
  2. I've rediscovered a post/thread with a similar situation here: http://www.cfd-online.com/Forums/ope...tml#post345477 #10
  3. According to Vieri - http://www.cfd-online.com/Forums/par...tml#post367077 post #7 - seems that this might be a problem due to Ubuntu's 3D accelerated Unity system.
Good luck!
Bruno
fshak92 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 20, 2012, 21:03
Default
  #15
Disabled
 
anonymous
Join Date: Oct 2010
Posts: 6
Rep Power: 16
anon_i is on a distinguished road
Hi Omid,
like wyldckat said, you'll probably need the fglrx driver. You don't need the ccc and corresponding package for opengl to work.
If it doesn't work after installing fglrx, please post the results of
Code:
lspci | grep VGA
and
Code:
lsmod
Best regards,
gt.
fshak92 likes this.
anon_i is offline   Reply With Quote

Old   June 21, 2012, 02:23
Default
  #16
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
I installed OpenFOAM 2.1.x successfully ... You can also try it in Ubuntu 12.04 ...
sandy is offline   Reply With Quote

Old   June 23, 2012, 15:05
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 to all!

@Sandy: indeed, sometimes building one's own build of OpenFOAM and ParaView can fix problems, but other times not even that fixes the issue

For those having problems with ATI graphics cards + drivers + Ubuntu + ParaView, please try the instructions presented on this page: http://askubuntu.com/questions/77636...1-10-and-fglrx

Best regards,
Bruno
fshak92 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 24, 2012, 05:03
Default
  #18
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Thank you guys for your helps about Paraview.
I've completely removed fglrx and re install all the related things,,
then i've run glxinfo | grep direct and restart the computer.
Now the paraview is working.
Thank you so much indeed.
fshak92 is offline   Reply With Quote

Old   August 6, 2012, 18:06
Default
  #19
New Member
 
John Eckart
Join Date: Feb 2012
Posts: 4
Rep Power: 14
johneck is on a distinguished road
The problem seems to be in the $VERS='lsb_... where the $VERS variable is used in the openfoam.list. if you use 'precise' instead of $VERS it seems to work. I am not a linux person, so I can't explain why, but I had the same problem which was resolved when I did that. I noticed that when the update is run, some of the stuff didn't download and in the command line of the failed stuff the words "lsb_release" appeared instead of "precise". So I changed the file /etc/apt/sources.list.d/openfoam.list to use the word precise vice lsb_release and everything worked perfectly.
johneck is offline   Reply With Quote

Old   August 7, 2012, 07:08
Default
  #20
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Mmm... I see that people have trouble understanding the difference between `command` and 'command'. I'll go suggest that they change to this less ambiguous command:
Code:
VERS=$(lsb_release -cs)
Which by the way, you can check the value of "VERS" by running:
Code:
echo $VERS
edit: Reported it here: http://www.openfoam.org/mantisbt/view.php?id=617
__________________

Last edited by wyldckat; August 7, 2012 at 07:23. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Reply


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
Trouble installing OpenFoam 2.10 on Ubuntu 11.10 LucasCG OpenFOAM Installation 17 January 27, 2013 15:58
OpenFOAM 2.1 on Ubuntu SERVER 11.10 samiam1000 OpenFOAM Installation 2 March 7, 2012 03:40
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 03:16
.deb installation of OpenFOAM 2.1.0 on Ubuntu 11.10 (Oneiric Ocelot). kxk7607 OpenFOAM Installation 7 January 21, 2012 12:57
[SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x wyldckat OpenFOAM Installation 0 November 4, 2011 15:52


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