Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Missing libqt5core.so.5

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Missing libqt5core.so.5

#1 Post by Bugs318 »

A little while back, after running an update on testing (that currently says Buster/Sid for version), several packages would no longer run (that ran previously), giving me a "error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory"

I just let it be assuming it was an update that would sort itself out, and I used alternative packages in their place. Today, I needed a specific package and got the same error. I began looking around. locate shows me that libqtcore4 is what exists on the system, and even when I manually download the unstable 5a file and install it, it doesn't show up anywhere and several packages still cannot run. [Edited: I notice I accidentally searched for libqtcore and found 4, while locate libqt5core finds 5a installed but programs still don't run]

Any help would be greatly appreciated.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Missing libqt5core.so.5

#2 Post by sunrat »

libqt5core5a is the package that provides that file.

Code: Select all

# apt-file update
# apt-file search libQt5Core.so.5
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#3 Post by Bugs318 »

Output:

libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#4 Post by Bugs318 »

Despite it being present on the system, no package that draws on it will run. Any ideas?

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#5 Post by Bugs318 »

Does anyone have any suggestions on how I can get apps to use this library and get them working again?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Missing libqt5core.so.5

#6 Post by bw123 »

Bugs318 wrote:Output:

libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3
libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2
where did all of those others come from? I could not find libQt5Core.so.5.10 in debian pkg search.
https://packages.debian.org/search?suit ... re.so.5.10

okay, I found it in sid, but it duesnot say amd64, confusing...

maybe something in the env like a QTPATH= or something is set wrong?
resigned by AI ChatGPT

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Missing libqt5core.so.5

#7 Post by L_V »

Last edited by L_V on 2018-06-28 16:59, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Missing libqt5core.so.5

#8 Post by sunrat »

OP said it's Testing. On Sid I have:

Code: Select all

$ locate libQt5Core.so.5
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
bw123's suggestion of QTPATH seems like a good place to start, but it's a strange problem I have no idea how to fix or how it would get broken in the first place.
Look for more error messages in logs. Run a program that requires it from a terminal.
I'm guessing it's not KDE as possibly nothing would work if that lib was faulty.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#9 Post by Bugs318 »

I am not running KDE, but I do run a few packages that depend on parts of it. Maybe I should install the rest of it just to see, but strange that it worked then broke. Any tips on how to check the path? Thanks!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Missing libqt5core.so.5

#10 Post by stevepusser »

You also still have QT 5.3 packages/files from Jessie...that may be at the root of your problem.
MX Linux packager and developer

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#11 Post by Bugs318 »

apt-get remove says libQt5Core.so.5.3 not found?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Missing libqt5core.so.5

#12 Post by bw123 »

Bugs318 wrote: apt-get remove says libQt5Core.so.5.3 not found?
several posts have shown you how to find it, and the others. You should consider running stable. Don't mix pkgs from stable or oldstable with testing/sid.
resigned by AI ChatGPT

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Missing libqt5core.so.5

#13 Post by stevepusser »

A package contains many, many different files. You can search at packages.debian.org to see which Jessie package contained your particular one. I know it's a leftover from Jessie or wheezy-backports because Jessie or wheezy-backports had Qt 5.3. Stretch has 5.7.

https://packages.debian.org/search?sear ... e&arch=any

However...the upgrade to newer versions of that package is supposed to remove the older versions of the libraries, so you shouldn't even have those on your system at all. There seems to be more shenanigans going on with your system than a normal Jessie-Stretch-testing upgrade cycle can account for. Have you or anyone else messed with Qt files or added outside repositories that could have done this?

You can try repairing your particular issue by removing the 5.3 files and reinstalling the libqt5core5a package so the symlinks are set up correctly.
MX Linux packager and developer

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#14 Post by Bugs318 »

Okay, 5.3 removed, latest package removed, then reinstalled and still the issue remains.

I don't recall any attempt to alter the system around this. Any other suggestions?

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#15 Post by Bugs318 »

Hmmm. Removing before reinstall forced me to remove packages. On reinstalling one, I see this message:

"ldconfig: /usr/lib/libQt5Core.so.5 is not a symbolic link"

Should it be one? What should it point to if so?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Missing libqt5core.so.5

#16 Post by stevepusser »

You shouldn't have any Qt files in /usr/lib at all. Since it's multiarch, you should have a symlink in the subfolder for your arch, such as

/usr/lib/x86_64-linux-gnu/libQt5Core.so.5

which is a symlink to

/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10

which in turn is a symlink to

/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
MX Linux packager and developer

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#17 Post by Bugs318 »

Both /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 and /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10 are set as symlinks to /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1

Should I change ...5 to point to 5.10?

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#18 Post by Bugs318 »

I backed things up, tried repointing these symlinks and then switched them back as it made no difference. Anybody have any other suggestions?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Missing libqt5core.so.5

#19 Post by stevepusser »

If it's a systemic problem, you wouldn't be able to run any Qt 5 apps at all...such as VLC. Is that the case?
MX Linux packager and developer

Bugs318
Posts: 48
Joined: 2010-05-25 18:48

Re: Missing libqt5core.so.5

#20 Post by Bugs318 »

Right. VLC will not run, nor Brewtarget, nor Beersmith, nor qbittorrent

Post Reply