@fforteneto (Francisco de Souza Forte Neto) posted a new topic, subject "Install dolfinx on Ubuntu server and WSL". It read:

   Hi everyone!. I would like to know if it's possible to install dolfinx on a Ubuntu server and in the Linux Subsystem for Windows. I will appreciate if someone could help me.

Then @dparsons said

    I don't know about the Linux Subsystem for Windows, but dolfinx is available for the development version of Ubuntu, see https://launchpad.net/ubuntu/+source/dolfinx
    
    An older snapshot is available from the FEniCS PPA, https://launchpad.net/~fenics-packages/+archive/ubuntu/fenics (at some point the PPA will be updated to a newer snapshot)

Then @fforteneto (Francisco de Souza Forte Neto) said

    Hi @dparsons, thank you for your reply. In the moment, I have dolfin installed from ppa in both Ubuntu server and WSL; however, I couldn't access that older snapshot you mentioned.

Then @dparsons said

    @fforteneto, check the instructions on the PPA page:
    [code] 
        sudo add-apt-repository ppa:fenics-packages/fenics
        sudo apt-get update 
        
    [/code]
    
    After that it should be possible to install dolfin-x with
    [code] 
        sudo apt-get install fenicsx
    [/code]

Then @fforteneto (Francisco de Souza Forte Neto) said

    @dparsons, I tried the commands you suggested and recieve the following message
    [code] 
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        E: Unable to locate package fenicsx
    [/code]

To which @dparsons replied

    What version of Ubuntu are you using?

Then @fforteneto (Francisco de Souza Forte Neto) said

    I'm using Ubuntu 18.04 LTS in the Linux Subsystem for Windows

So @dparsons replied

    18.04, that's Bionic Beaver. Check the supported versions on the PPA via the “View package details” link.
    
    fenicsx is built for fenics 230.255.87.135. That's only available for Ubuntu release eoan and focal. i.e. Ubuntu 20.04.

After which, @fforteneto (Francisco de Souza Forte Neto) added

    Now I got it! I will check the link. Thank you for your help!

After which, @fforteneto (Francisco de Souza Forte Neto) added

    Hi @dparsons, I installed the Ubuntu 20.04 for WSL in my computer and run the command
    [code] 
        sudo apt install fenics
        
    [/code]
    
    I tried to update to fenics 230.255.87.135 but it says that
    [code] 
        fenics is already the newest version (1:230.255.87.135).
        
    [/code]
    
    How can I get the latest version?

To which @bhaveshshrimali (Bhavesh Shrimali) replied

    If you are using windows, then the easiest way to use dolfinx is through docker

After which, @fforteneto (Francisco de Souza Forte Neto) added

    Hi @bhaveshshrimali, thank you for your reply! In general, I use Windows to run and test small problems. For bigger problems, I run my simulations remotely in a Ubuntu server (18.04.5 LTS).

Then @bhaveshshrimali (Bhavesh Shrimali) said

    Have you tried building dolfinx from source on your Ubuntu server? See for instance, this post

To which @fforteneto (Francisco de Souza Forte Neto) replied

    I haven't tried this yet. It's possible to build dolfinx from source on Ubuntu 18.04 WSL for Windows?

After which, @bhaveshshrimali (Bhavesh Shrimali) added

    In principle it should be. I haven't tried it. Docker, with jupyter lab, on windows 10 works very smoothly for testing snippets.


{'source': 'discourse', 'url': 'https://fenicsproject.discourse.group/t/install-dolfinx-on-ubuntu-server-and-wsl/4110', 'title': 'Install dolfinx on Ubuntu server and WSL', 'views': 1530, 'has_accepted_answer': False, 'word_count': 459, 'like_count': 3, 'reply_count': 11, 'participant_count': 3, 'posts': 15, 'tags': '', 'author': '@fforteneto (Francisco de Souza Forte Neto)', 'participants': '@fforteneto (Francisco de Souza Forte Neto), @dparsons, @bhaveshshrimali (Bhavesh Shrimali)', 'image_url': [None], 'created_at': '2020-09-16T23:59:08.668Z', 'last_posted_at': '2020-09-18T19:14:03.492Z'}