CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Cannot Install Paraview 4.1.0 on Ubuntu 14.04 LTS (https://www.cfd-online.com/Forums/openfoam-installation/149007-cannot-install-paraview-4-1-0-ubuntu-14-04-lts.html)

Saladsamurai February 23, 2015 22:03

Cannot Install Paraview 4.1.0 on Ubuntu 14.04 LTS
 
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.

sture February 24, 2015 16:32

ParaView
 
I have the exact same problem, please help.

Sture

Saladsamurai February 26, 2015 22:01

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.

ALU February 27, 2015 00:20

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.

sture February 27, 2015 04:33

Ubuntu roll-back
 
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

ALU February 27, 2015 04:50

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.

Saladsamurai February 27, 2015 21:48

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).

wyldckat February 28, 2015 15:30

3 Attachment(s)
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

wyldckat February 28, 2015 19:19

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.

sture March 1, 2015 06:18

It WORKS!
 
Hi,

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

Sture

deve March 4, 2015 15:06

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

ssss March 4, 2015 16:41

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 March 6, 2015 15:29

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

Saladsamurai March 7, 2015 20:53

Trouble after Install: Where is everything?
 
It's good to see that this thread is proving useful to others and it's not just my awful linux skills :p

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.

wyldckat March 8, 2015 08:12

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

sture March 8, 2015 11:16

Directories and such...
 
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.

deve March 9, 2015 02:32

Quote:

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

ssss March 9, 2015 12:34

Quote:

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

deve March 16, 2015 10:15

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.:D


All times are GMT -4. The time now is 12:38.