Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

konsole command does not run at WSL Ubuntu20.04; libQt5Core.so not found

I have installed from the microsoft store Ubuntu 20.04, and installed the "konsole" with

sudo apt-get -y install konsole

This does not give any error messages and the "konsole" program is installed into "/usr/bin/konsole". The version of konsole is "4:19.12.3-0ubuntu1"

when I want to run konsole, I get the error message:

konsole: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

The libQt including libQt5Core.so.5 is indeed present in /usr/lib/x86_64-linux-gnu/, where libDt5Core.so.5 is a symbolic link to libQt5Core.so.5.12.8

this is the output of cat /ext/ld.so.conf.d/*

/usr/lib/x86_64-linux-gnu/libfakeroot
# libc default configuration
/usr/local/lib
# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu

As far as I can see everything is identical to my parallel Ubuntu 18.04 installation, where the "konsole" command runs just fine? (Of course the version of konsole differs) I have not yet installed a native Ubuntu 20.04 , yet I'd love to get Ubuntu 20.04 to run for my applications on Microsoft Windows WSL.

like image 324
Reinhard Avatar asked Nov 15 '25 13:11

Reinhard


1 Answers

You have to follow these steps: - Install binutils

apt-get install -y binutils

Then run:

strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 

Br

like image 145
xxmlud Avatar answered Nov 17 '25 09:11

xxmlud