|
[Sponsors] |
Errors while installing openfoam on ubuntu 12.04 AND 11.10 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 11, 2012, 20:01 |
Errors while installing openfoam on ubuntu 12.04 AND 11.10
|
#1 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 14 |
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. |
|
June 12, 2012, 04:44 |
|
#2 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
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. |
|
June 12, 2012, 15:14 |
|
#3 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 14 |
Nobody has any idea?
|
|
June 12, 2012, 18:52 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 13, 2012, 03:50 |
|
#5 | |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
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 |
||
June 13, 2012, 17:39 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 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
__________________
|
|
June 14, 2012, 19:49 |
|
#7 | |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 14 |
Quote:
By using synaptic,It was installed correctly. |
||
June 17, 2012, 09:15 |
|
#8 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 14 |
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. |
|
June 17, 2012, 13:31 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi omid88,
I saw this reported the other day here: http://www.openfoam.org/mantisbt/view.php?id=551 The fix was:
Bruno
__________________
|
|
June 18, 2012, 03:04 |
|
#10 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
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 ....
|
|
June 18, 2012, 09:31 |
|
#11 |
Disabled
anonymous
Join Date: Oct 2010
Posts: 6
Rep Power: 16 |
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 |
|
June 18, 2012, 09:41 |
|
#12 |
Disabled
anonymous
Join Date: Oct 2010
Posts: 6
Rep Power: 16 |
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 |
|
June 20, 2012, 16:37 |
|
#13 | |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 14 |
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:
Last edited by fshak92; June 20, 2012 at 17:11. |
||
June 20, 2012, 17:31 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi omid88,
OK, there are a few possible solutions, as far as I know:
Bruno
__________________
|
|
June 20, 2012, 21:03 |
|
#15 |
Disabled
anonymous
Join Date: Oct 2010
Posts: 6
Rep Power: 16 |
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. |
|
June 21, 2012, 02:23 |
|
#16 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
I installed OpenFOAM 2.1.x successfully ... You can also try it in Ubuntu 12.04 ...
|
|
June 23, 2012, 15:05 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 24, 2012, 05:03 |
|
#18 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 14 |
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. |
|
August 6, 2012, 18:06 |
|
#19 |
New Member
John Eckart
Join Date: Feb 2012
Posts: 4
Rep Power: 14 |
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.
|
|
August 7, 2012, 07:08 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
Last edited by wyldckat; August 7, 2012 at 07:23. Reason: see "edit:" |
|
|
|
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 |