# Install fail Slicer-5.0.3 on Ubuntu-22.04.1

**URL:** <https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155>\
**Category:** Support\
**Created:** [September 8, 2022, 1:11pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155 "2022-09-08T13:11:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSteinJ](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Post date:** [September 8, 2022, 1:11pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/1 "2022-09-08T13:11:49Z")

</div>

Hi & greetings. I have the following problem:  
when I try to start my new 3D Slicer on Linux there is a flash of the “welcome screen” & the following error message:

```auto
Qt: Session management error: Could not open network socket
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

```

I found some fixes here used for other versions:

> Debian / Ubuntu  
> The following may be needed on fresh debian or ubuntu:
> 
> ```auto
> sudo apt-get install libpulse-dev libnss3 libglu1-mesa
> sudo apt-get install --reinstall libxcb-xinerama0
> 
> ```

> ```auto
> Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
> qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
> This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
> 
> Available platform plugins are: xcb.
> 
> ```
> 
> The solution is to create symlink:
> 
> ```auto
> sudo ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so /usr/lib/x86_64-linux-gnu/libxcb-util.so.1
> 
> ```

Did not work, same error…  
???  
Greetings jsteinj

---

<div class="post-metadata">

**Author:** ![cnot](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cnot/32/16719_2.png) [@cnot](https://discourse.slicer.org/u/cnot)\
**Post date:** [September 21, 2022, 12:27pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/2 "2022-09-21T12:27:22Z")

</div>

I am having the exact same issue trying to install Slicer 5.0.3 on Fedora 36… Did you happen to find a solution?

Cheers

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 21, 2022, 2:00pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/3 "2022-09-21T14:00:38Z")

</div>

@cnot Please follow [these instructions](https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#linux) and let us know if it fixed the problem.

@JSteinJ Slicer uses Qt as GUI toolkit and right now many (all?) such applications seem to be broken if Wayland is used (see for example [1](https://www.reddit.com/r/swaywm/comments/s6bpc2/a_lot_of_packages_dont_work_under_wayland/?utm_source=BD&utm_medium=Search&utm_name=Bing&utm_content=PSR1) and [2](https://bugreports.qt.io/browse/QTBUG-105921)). Please try solutions that you can find on the web about running Qt applications on Ubuntu-22 with Wayland and let us know if you found any solution (or if disabling Wayland fixes the issue).

---

<div class="post-metadata">

**Author:** ![cnot](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cnot/32/16719_2.png) [@cnot](https://discourse.slicer.org/u/cnot)\
**Post date:** [September 21, 2022, 4:10pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/4 "2022-09-21T16:10:35Z")

</div>

@lassoan Those are the instructions I followed originally, see [Problems with 3D Slicer 5.0.3 Installation on Fedora 36](https://discourse.slicer.org/t/problems-with-3d-slicer-5-0-3-installation-on-fedora-36/25359) for the full results. Unfortunately, it is still not running…

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 21, 2022, 4:18pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/5 "2022-09-21T16:18:03Z")

</div>

@cnot thank you for trying those instructions  
If those did not help then probably your system is configured to use Wayland. Please see tips that I gave to @JSteinJ above.

---

<div class="post-metadata">

**Author:** ![cnot](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cnot/32/16719_2.png) [@cnot](https://discourse.slicer.org/u/cnot)\
**Post date:** [September 21, 2022, 5:06pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/7 "2022-09-21T17:06:41Z")

</div>

Hi @lassoan , it actually does not appear as if my system is configured to use Wayland. The output of

`echo $XDG_SESSION_TYPE`

is

`x11`

…Is there another possible explanation?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 21, 2022, 5:25pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/8 "2022-09-21T17:25:09Z")

</div>

Try the QT\_DEBUG\_PLUGIN=1 as explained in here [Can't start latest stable on ubuntu 20.04 - #2 by muratmaga](https://discourse.slicer.org/t/cant-start-latest-stable-on-ubuntu-20-04/14029/2)

and see which other QT plugin you are missing from your system (the ones we included in the documentation are the most common ones for most common install options, they are not necessarily the only ones, say if you did a minimal install).

---

<div class="post-metadata">

**Author:** ![cnot](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cnot/32/16719_2.png) [@cnot](https://discourse.slicer.org/u/cnot)\
**Post date:** [September 21, 2022, 5:44pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/9 "2022-09-21T17:44:29Z")

</div>

Thank you very much for your reply, @muratmaga . When running it with QT\_DEBUG\_PLUGIN, this is the output:

```auto
Found metadata in lib /usr/img/Slicer503/lib/QtPlugins/platforms/libqxcb.so, metadata=
{
“IID”: “org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3”,
“MetaData”: {
“Keys”: [
“xcb”
]
},
“archreq”: 0,
“className”: “QXcbIntegrationPlugin”,
“debug”: false,
“version”: 331520
}

Got keys from plugin meta data (“xcb”)
QFactoryLoader::QFactoryLoader() checking directory path “/usr/img/Slicer503/bin/platforms” …
Cannot load library /usr/img/Slicer503/lib/QtPlugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on “/usr/img/Slicer503/lib/QtPlugins/platforms/libqxcb.so” : “Cannot load library /usr/img/Slicer503/lib/QtPlugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)”
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

error: [/usr/img/Slicer503/bin/SlicerApp-real] exit abnormally - Report the problem.

```

_I tried:_  
`dnf install libxcb-icccm.so.4`

_Result:_

```auto
No match for argument: lixcb-icccm.so.4
Error: Unable to find a match: lixcb-icccm.so.4

```

I then tried  
`dnf list libxcb`

To see if I was missing anything, but the result was

```auto
Installed Packages
libxcb.i686 1.13.1-9.fc36 @fedora
libxcb.x86_64 1.13.1-9.fc36 @fedora

```

So I am now not sure how to proceed!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 21, 2022, 5:47pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/10 "2022-09-21T17:47:41Z")

</div>

> [@cnot](#):
>
> `lixcb-icccm.so.4`

did you try the wm-util package? I am not a fedora user, but it seems to provide  
[https://rpmfind.net/linux/RPM/fedora/devel/rawhide/aarch64/x/xcb-util-wm-0.4.1-23.fc37.aarch64.html](https://rpmfind.net/linux/RPM/fedora/devel/rawhide/aarch64/x/xcb-util-wm-0.4.1-23.fc37.aarch64.html)

---

<div class="post-metadata">

**Author:** ![cnot](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cnot/32/16719_2.png) [@cnot](https://discourse.slicer.org/u/cnot)\
**Post date:** [September 22, 2022, 7:24am UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/11 "2022-09-22T07:24:35Z")

</div>

Thank you for your suggestion! Yes, I already have xcb-util-wm-0.4.1-12.el8.x86\_64.rpm installed…

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 22, 2022, 5:52pm UTC](https://discourse.slicer.org/t/install-fail-slicer-5-0-3-on-ubuntu-22-04-1/25155/12 "2022-09-22T17:52:26Z")

</div>

Then somehow QT is not finding the that. Perhaps you are simply missing the symbolic link. For example on my ubuntu it shows like this:

```auto
/usr/lib/x86_64-linux-gnu$ ls -l libxcb-ic*
lrwxrwxrwx 1 root root 21 Nov 4 2021 libxcb-icccm.so.4 -> libxcb-icccm.so.4.0.0
-rw-r--r-- 1 root root 22464 Dec 4 2018 libxcb-icccm.so.4.0.0

```

or it is not on a path that QT looks… Sorry that’s as far as I can help…
