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

Cannot Install Paraview 4.1.0 on Ubuntu 14.04 LTS

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes
  • 1 Post By sture
  • 1 Post By ssss
  • 1 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   February 23, 2015, 23:03
Default Cannot Install Paraview 4.1.0 on Ubuntu 14.04 LTS
  #1
New Member
 
Join Date: Feb 2013
Posts: 5
Rep Power: 4
Saladsamurai is on a distinguished road
Hello all! I am very new to both OpenFOAM and Ubuntu/Liinux.
(I have Ubuntu installed in a VMWare virtual machine on a mac running OSX 10.6.8 SL if that matters).
I am following the instructions at: http://www.openfoam.org/download/ubuntu.php exactly. They are quite simple, so I am not sure what the problem is. OF seems to install correctly.

However, when I run
Code:
sudo apt-get install paraviewopenfoam410
I receive the following:
Code:
saladsamurai@ubuntu:~$ sudo apt-get install paraviewopenfoam410
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:
 libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
                   Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
 libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
              Depends: gstreamer1.0-clutter but it is not going to be installed
 libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
                    Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I tried running
Code:
sudo apt-add-repository universe 
sudo apt-get update
but the error persists. Any ideas on why this does not work? It sounds like I need to install something more ... but I am not sure. Thank you for your time.

Last edited by Saladsamurai; February 24, 2015 at 22:21.
Saladsamurai is offline   Reply With Quote

Old   February 24, 2015, 17:32
Question ParaView
  #2
New Member
 
Sture Smidt
Join Date: Mar 2013
Posts: 22
Rep Power: 4
sture is on a distinguished road
I have the exact same problem, please help.

Sture
sture is offline   Reply With Quote

Old   February 26, 2015, 23:01
Default
  #3
New Member
 
Join Date: Feb 2013
Posts: 5
Rep Power: 4
Saladsamurai is on a distinguished road
What is particularly bothersome is that I am following the instructions on the openFOAM website exactly. Why would they post incorrect instructions. Anyway, it seems like I am missing some dependencies. I an not sure, though, that I understand the syntax of the error.

I will edit this post later. I am using the app right now, which is awful.
Saladsamurai is offline   Reply With Quote

Old   February 27, 2015, 01:20
Default
  #4
ALU
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 5
ALU is on a distinguished road
Same problem here. I think it has something to do with the ubuntu updates.
It works if I use an older ubuntu installation 14.04.1, do the updates and then install parafoam, but not with the actual one 14.04.2 wich you can download from www.ubuntu.com.
ALU is offline   Reply With Quote

Old   February 27, 2015, 05:33
Default Ubuntu roll-back
  #5
New Member
 
Sture Smidt
Join Date: Mar 2013
Posts: 22
Rep Power: 4
sture is on a distinguished road
Is it possible to roll back the Ubuntu version?

Otherwise i am urgently needing a fix as I am in the middle of a commercial project.

Sture
sture is offline   Reply With Quote

Old   February 27, 2015, 05:50
Default
  #6
ALU
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 5
ALU is on a distinguished road
You could use paraview instead of parafoam, this worked for me.

sudo apt-get install paraview

parafoam is paraview with some little modifications.
To use paraview with openfoam you have to run paraFoam -touch in your case directory to create a case.OpenFOAM file which can be opened with paraview.

I don't know how to roll back Ubuntu except from a new installation.
ALU is offline   Reply With Quote

Old   February 27, 2015, 22:48
Default
  #7
New Member
 
Join Date: Feb 2013
Posts: 5
Rep Power: 4
Saladsamurai is on a distinguished road
Rollbacks do not appear to be a viable option. See here for more info.

I am fortunate in that I just installed Ubuntu solely for the purpose of learning OF. I will just try 14.04.1 (found here if interested).
Saladsamurai is offline   Reply With Quote

Old   February 28, 2015, 16:30
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

-------------
edit: see the next post for a simpler solution.
-------------

[RANT]
Sorry, I gotta start off by complaining about Ubuntu: it hasn't been the same since Canonical started investing time in their own "Unity" and "Mir" projects... with any luck, 15.04 will have these growth related issues solved... but I'm not counting on it. This to say that I suspect that this latest issue reported on this thread is actually the result from a fix to an issue that occurred in 14.04.1 or earlier, for which the fix actually breaks the package dependencies for ParaView 4.1.0 that is provided by OpenFOAM.org.
Now, back to fixing this problem...
[/RANT]

I've installed Ubuntu 14.04.2 x86_64 (aka 64-bit) a couple of times on a virtual machine, to test this problem and to double-check if the fix I figured out works properly or not.

I've followed the same installation instructions from http://www.openfoam.org/download/ubuntu.php - and I've gotten the same error message, namely:
Code:
ofuser@ofuser-virtual-machine:~$ sudo apt-get install paraviewopenfoam410
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:
 libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
                   Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
 libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
              Depends: gstreamer1.0-clutter but it is not going to be installed
 libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
                    Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
The solution I managed to figure out after a bit of online researching, seems a bit strange to me, because the following command will lead to the removal of the problem libraries that are indicated in the previous message (do not do this command without reading the rest first!!):
Code:
sudo apt-get remove libcheese7
What is confusing me is that when it uninstalls these libraries, it automatically replaces the removed packages for other ones that apt-get apparently indicates that are alternatively needed for the proper operation of Ubuntu.

Anyway, by removing this package, the default Unity desktop will be broken and it will no longer be able to start the normal desktop after rebooting. Therefore, I've carefully tested the following instructions, therefore, please do not skip any of the steps (because if you do, it won't be my fault ):
  1. Make sure to properly update your Ubuntu 14.04.2 installation first. For that, run:
    Code:
    sudo apt-get update
    sudo apt-get upgrade
  2. Now, install any other desktop manager. There is a complete list here: http://askubuntu.com/questions/65083...-are-available - it also provides instructions on how to install each desktop manager. I suggest either XFCE, MATE or LXDE, but I'm old school.
    I've tested with LXDE, but for the second test I've used GNOME Shell... even I don't like it very much:
    Code:
    sudo apt-get install gnome-shell
    • Note: If during installation it asks about using "GDM" or "lightDM", use the one that is selected by default, which likely "lightDM".
  3. Now log out and choose to use the other desktop manager, as shown in the attached images:
    1. How to logout: "logout.png"
    2. Choose the other desktop (the following numbers are in the images as well):
      1. "login_option.jpg" - It's the small icon with the cute footprint in that image.
      2. "choose desktop manager.jpg" - choose the desktop manager
      3. Login again: "login_option.jpg"
  4. Now, remove the package that has been giving us problems:
    Code:
    sudo apt-get remove libcheese7
  5. Then we need to reboot the machine, so see if it's still working.
  6. Now, if it rebooted without problems, you should be able to logout and choose any another desktop manager and log back in again. It should choose the latest one used in the next time you reboot.
  7. Now you can proceed with the installation that is detailed here: http://www.openfoam.org/download/ubuntu.php
Best regards,
Bruno
Attached Images
File Type: png logout.png (52.6 KB, 20 views)
File Type: jpg login_option.jpg (32.7 KB, 18 views)
File Type: jpg choose desktop manager.jpg (34.0 KB, 18 views)

Last edited by wyldckat; February 28, 2015 at 20:20. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   February 28, 2015, 20:19
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
OK, I think I've figured it out. Here's the "easy" instructions, where there is no need to go around installing a 2nd desktop and no need to remove "libcheese7":

Code:
sudo apt-get download paraviewopenfoam410 --allow-unauthenticated
sudo dpkg -i paraviewopenfoam410_0-1_amd64.deb
sudo apt-get install qt4-dev-tools
sudo dpkg -i paraviewopenfoam410_0-1_amd64.deb
Apparently this manages to go around some weird dependency bug.

Last edited by wyldckat; March 1, 2015 at 05:06. Reason: fixed typo
wyldckat is offline   Reply With Quote

Old   March 1, 2015, 07:18
Default It WORKS!
  #10
New Member
 
Sture Smidt
Join Date: Mar 2013
Posts: 22
Rep Power: 4
sture is on a distinguished road
Hi,

Thank you Wyldckat, it WORKS. I am happy again (and able to deliver to my customer)!

Sture
wyldckat likes this.
sture is offline   Reply With Quote

Old   March 4, 2015, 16:06
Default
  #11
New Member
 
Stefan
Join Date: Mar 2015
Location: Bavaria
Posts: 7
Rep Power: 2
deve is on a distinguished road
Hi,

sadly I have the same problem as others. Unfortunately wyldckat's post did not solve the problem.

Quote:
OK, I think I've figured it out. Here's the "easy" instructions, where there is no need to go around installing a 2nd desktop and no need to remove "libcheese7":

Code:
sudo apt-get download paraviewopenfoam410 --allow-unauthenticated sudo dpkg -i paraviewopenfoam410_0-1_amd64.deb sudo apt-get install qt4-dev-tools sudo dpkg -i paraviewopenfoam410_0-1_amd64.deb
Apparently this manages to go around some weird dependency bug.
I wanted to try the other way which would need a second desktop but since i'm an absolute ubuntu-newbie, who reinstalled ubunut four times in the past 2 days, I'd like to find another way

That's what I get when I want to start paraFoam

Code:
deve@deve:~/OpenFOAM/deve-2.3.1/run/tutorials/incompressible/icoFoam/cavity$ paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake
Any suggestions?

Thanks in advance

Last edited by deve; March 4, 2015 at 16:07. Reason: typo
deve is offline   Reply With Quote

Old   March 4, 2015, 17:41
Default
  #12
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 179
Rep Power: 3
ssss is on a distinguished road
I solved this problem using synaptic instead of apt-get

Code:
sudo apt-get install synaptic
Code:
sudo synaptic
Update inside synaptic and the search for paraviewopenfoam410.

Anyone tried using vmware with paraviewopenfoam410? every time I install this package it won't let me boot to the graphical interface. It seems an odd problem with xorg dependencies
wyldckat likes this.
ssss is online now   Reply With Quote

Old   March 6, 2015, 16:29
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi ssss and deve,

@deve: Please provide more specific details on how you made your installation. In addition, please indicate if you have more than OpenFOAM version installed or not.


@ssss: Thanks for the other solution! I didn't even remember about trying Synaptic to properly resolve dependencies!

Quote:
Originally Posted by ssss View Post
Anyone tried using vmware with paraviewopenfoam410? every time I install this package it won't let me boot to the graphical interface. It seems an odd problem with xorg dependencies
It's what I use for my tests... actually, I use VMPlayer. But I always switch-off graphics acceleration in the VM settings and almost always install the VMWare tools. The "graphics acceleration" feature is something that very likely will only work with a specific group of hardware-driver combinations, which I'm not familiar with .

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

Old   March 7, 2015, 21:53
Default Trouble after Install: Where is everything?
  #14
New Member
 
Join Date: Feb 2013
Posts: 5
Rep Power: 4
Saladsamurai is on a distinguished road
It's good to see that this thread is proving useful to others and it's not just my awful linux skills

I am still having some trouble, but I think it's down to 'operator error' now ... maybe someone can guide me a little here. As I said, I am pretty much new to all of this, so I think I am just in the weeds here.
  1. I went with solution of installing Ubuntu 14.04.1 since it sounded like this would be the easiest for me. I successfully installed OF and paraviewopenfoam410.
  2. I then successfully ran the icoFoam -help command (i.e. it launched).
  3. I am now trying to follow the Getting Started instructions on the OF site

It says to
Quote:
Create a project directory within the $HOME/OpenFOAM directory named <USER>-2.3.1 (e.g. chris-2.3.1 for user chris and OpenFOAM version 2.3.1) and create a directory named run within it, e.g. by typing:

mkdir -p $FOAM_RUN
... I have multiple challenges understanding this paragraph. Hopefully someone is patient enough to go through them with me. Here is the first and probably biggest hurdle for me right now:

When it says to "create a directory within the $HOME/OpenFOAM directory, "I naturally expect that there exists a directory named $HOME/OpenFOAM .... I cannot locate one anywhere ... actually, searching my machine using the Ubunuta search, I find nothing using the keywords 'openfoam' or 'foam' ... maybe I am not using the search function properly. Either way, in terminal, there is nothing openfoam related within my home directory.
Saladsamurai is offline   Reply With Quote

Old   March 8, 2015, 09:12
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Saladsamurai,

The idea is that if a folder doesn't exist yet, you should create it. In specific, if you run:
Code:
mkdir -p $FOAM_RUN
it will create the full path to the desired folder. To see what "$FOAM_RUN" is, run:
Code:
echo $FOAM_RUN
For more details, please read/study this page: https://openfoamwiki.net/index.php/I...with_the_Shell

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

Old   March 8, 2015, 12:16
Default Directories and such...
  #16
New Member
 
Sture Smidt
Join Date: Mar 2013
Posts: 22
Rep Power: 4
sture is on a distinguished road
Hi,

Copy and paste the following in a terminal window:

mkdir -p $FOAM_RUN

and the directory is made for you...

I did and it works.
sture is offline   Reply With Quote

Old   March 9, 2015, 03:32
Default
  #17
New Member
 
Stefan
Join Date: Mar 2015
Location: Bavaria
Posts: 7
Rep Power: 2
deve is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
@deve: Please provide more specific details on how you made your installation. In addition, please indicate if you have more than OpenFOAM version installed or not.
Hey ho,

thanks for the answer:
i followed the instructions given at the openfoam webpage
http://www.openfoam.org/download/ubuntu.php
I only tried to install ONE version of OpenFOAM and ParaFoam respectively.
By now I used to install paraview, which helps a little, but I'm still struggling with ParaFoam
deve is offline   Reply With Quote

Old   March 9, 2015, 13:34
Default
  #18
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 179
Rep Power: 3
ssss is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi ssss and deve,

@deve: Please provide more specific details on how you made your installation. In addition, please indicate if you have more than OpenFOAM version installed or not.


@ssss: Thanks for the other solution! I didn't even remember about trying Synaptic to properly resolve dependencies!


It's what I use for my tests... actually, I use VMPlayer. But I always switch-off graphics acceleration in the VM settings and almost always install the VMWare tools. The "graphics acceleration" feature is something that very likely will only work with a specific group of hardware-driver combinations, which I'm not familiar with .

Best regards,
Bruno
Dear Bruno,

Thank you for the comment about VMPlayer and the 3D acceleration.

I used to have ubuntu 14.04.1 and it was practically imposible to use the UI without de 3D acceleration. But if a used the 3D acceleration then I couldn't use paraview.

So there are two solutions

  1. Install Lubuntu 14.04.1 as its UI doesn't need 3D acceleration.
  2. Install Lubuntu UI in ubuntu 14.04 in order to do this:
Code:
sudo apt-get install lubuntu-desktop
Let it install and the you can change in your login screen the desktop you would like to use. See more here:
Hope that now everyone can happily use VBox or VMware with ubuntu14.04 and responsive UI.

Last edited by wyldckat; March 14, 2015 at 07:37. Reason: fixed broken links
ssss is online now   Reply With Quote

Old   March 16, 2015, 11:15
Default
  #19
New Member
 
Stefan
Join Date: Mar 2015
Location: Bavaria
Posts: 7
Rep Power: 2
deve is on a distinguished road
I tried it again today and it worked perfectly. I have no idea why but I guess that another weird Ubuntu update might have fixed it.
deve is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which versions of OpenFoam and Paraview are suitable for Ubuntu 14.04 LTS Trusty Tahr Asghari_M OpenFOAM Installation 4 February 4, 2015 16:47
(Script)OpenFOAM 2.3.0 and Paraview for Ubuntu 14.04 p0kerus OpenFOAM Installation 2 December 2, 2014 08:54
I cant find openfoam for ubuntu 14.04 LTS seju OpenFOAM Installation 15 August 30, 2014 12:07
Installing 2.3.0 on Ubuntu 14.04 LTS siw OpenFOAM Installation 6 July 5, 2014 06:16
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43


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