RStudio wont launch: error message about qt.qpa.plugin

My RStudio, which I downloaded from RStudio.com, and installed via
$ sudo apt install ./rstudio-1.2.1335-amd64.deb
Will not launch.

Note RStudio has worked for me, on this same computer, for about 8 months. I upgraded to my current release of RStudio in late June and it worked until...

I also updated my OS to ChromeOS 76 yesterday. Now RStudio is "broken". I think that OS update is culpable. But, get this: RStudio did run, for a little while, after the OS update!

I had to install libgl1 (i.e. $ sudo apt install libgl1) to get RStudio to launch after the ChromeOS 76 update too, and it did launch. It worked great. But note I did not need that package (libgl1) before the OS update.

I also un-installed the (linux install of) Chrome (browser) on my Pixelbook... not sure if that is related to why RStuido wont launch (I hope not). But I have not been able to lauch RStudio since I un-installed Chrome. I have since re-installed RStudio and Chrome, but that did not help. I still cannot launch RStudio.

I have provided some system information below, and the error message that I see when I attempt to launch RStudio. Not sure what else to share/provide right now, but happy to provide whatever helps with troubleshooting. :slight_smile:

Thank you in Advance for any assistance!

$ uname -or
4.19.44-04937-gd773af751792 GNU/Linux

$ lsb_release -irc
Distributor ID: Debian
Release:        9.9
Codename:       stretch
  
$ rstudio
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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

I have been googling... it looks like I am missing some files that RStudio wants to have... but I have not figured out where to get them yet.

$ ldd /usr/bin/rstudio 
    linux-vdso.so.1 (0x00007fff97af2000)
	libQt5WebEngine.so.5 => not found
	libQt5WebEngineWidgets.so.5 => not found
	libQt5PrintSupport.so.5 => not found
	libQt5QuickWidgets.so.5 => not found
	libQt5Sensors.so.5 => not found
	libQt5Svg.so.5 => not found
	libQt5Xml.so.5 => not found
	libQt5XmlPatterns.so.5 => not found
	libQt5DBus.so.5 => not found
	libQt5Sql.so.5 => not found
	libQt5OpenGL.so.5 => not found
	libicui18n.so.56 => not found
	libicuuc.so.56 => not found
	libicudata.so.56 => not found
	libQt5WebEngineCore.so.5 => not found
	libQt5WebChannel.so.5 => not found
	libQt5Positioning.so.5 => not found
	libQt5Quick.so.5 => not found
	libQt5Qml.so.5 => not found
	libQt5Network.so.5 => not found
	libQt5Widgets.so.5 => not found
	libQt5Gui.so.5 => not found
	libQt5Core.so.5 => not found
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007a63be261000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007a63be05e000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007a63bde59000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007a63bdc51000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007a63bda37000)
	libssl.so.1.0.2 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 (0x00007a63bd7ce000)
	libcrypto.so.1.0.2 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 (0x00007a63bd368000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007a63bcfe6000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007a63bcce2000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007a63bcacb000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007a63bc72c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007a63becfc000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007a63bc528000)

I solved it.

$ sudo apt-get install libqt5gui5

This did the trick.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.