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 DependTs: 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. |
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. |
Nobody has any idea?
|
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:
Bruno |
Quote:
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 |
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 Another possibility is this:
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 |
Quote:
By using synaptic,It was installed correctly. |
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. |
Hi omid88,
I saw this reported the other day here: http://www.openfoam.org/mantisbt/view.php?id=551 The fix was:
Bruno |
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 ....
|
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 |
Sandy: from a command line, do a
Code:
apt-cache search openfoam 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 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 Afterwards do a Code:
apt-cache search openfoam Best regards gt |
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:
|
Hi omid88,
OK, there are a few possible solutions, as far as I know:
Bruno |
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 Code:
lsmod gt. |
I installed OpenFOAM 2.1.x successfully ... You can also try it in Ubuntu 12.04 ...
|
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 |
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. |
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.
|
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) Code:
echo $VERS |
All times are GMT -4. The time now is 06:07. |