CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Errors while installing openfoam on ubuntu 12.04 AND 11.10 (https://www.cfd-online.com/Forums/openfoam-installation/103129-errors-while-installing-openfoam-ubuntu-12-04-11-10-a.html)

fshak92 June 11, 2012 20:01

Errors while installing openfoam on ubuntu 12.04 AND 11.10
 
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.

sandy June 12, 2012 04:44

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.

fshak92 June 12, 2012 15:14

Nobody has any idea?

wyldckat June 12, 2012 18:52

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

sandy June 13, 2012 03:50

Quote:

Originally Posted by wyldckat (Post 366088)
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

wyldckat June 13, 2012 17:39

Hi Sandy,

I think you didn't answer my first question - are there any error messages reported by this command :confused::
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 June 14, 2012 19:49

Quote:

Originally Posted by wyldckat (Post 366326)
Hi Sandy,

I think you didn't answer my first question - are there any error messages reported by this command :confused::
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 June 17, 2012 09:15

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.

wyldckat June 17, 2012 13:31

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

sandy June 18, 2012 03:04

Cry ..... I don't know why I can not find openfoam in the list of my synaptic package manage ? :confused: :( Please help out. I use Ubuntu 12.04 in x86_64 ....

anon_i June 18, 2012 09:31

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 June 18, 2012 09:41

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

fshak92 June 20, 2012 16:37

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 (Post 366888)
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


wyldckat June 20, 2012 17:31

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

anon_i June 20, 2012 21:03

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.

sandy June 21, 2012 02:23

I installed OpenFOAM 2.1.x successfully ... You can also try it in Ubuntu 12.04 ...

wyldckat June 23, 2012 15:05

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 June 24, 2012 05:03

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.

johneck August 6, 2012 18:06

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.

wyldckat August 7, 2012 07:08

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


All times are GMT -4. The time now is 06:07.