You are not logged in.

#1 2016-03-23 03:45:15

fusion809
Member
Registered: 2015-06-19
Posts: 70

[SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

Hi,

After upgrading to testing (I had to use the --force option, when I upgraded with pacman -Syu, due to package file conflicts) I keep getting the following error message from pacman whenever I install or upgrade a package: http://paste2.org/E1VW5HDx. Now, I have done my research, running a Google Search for:

"ldconfig: File * is empty, not checked" site:bbs.archlinux.org

The most relevant of the results were:
threads:
* 85480
* 203517

85480 had this command

pacman -Syyf <PACKAGE>

as an answer, but it was not of much use to me as I had a laundry list of programs these libraries belonged to, plus it was outdated and the -f option would have to be changed to --force (which is no drama, OFC). I tried running it on one package who's library was listed (networkmanager-qt, to which /usr/lib/libKF5NetworkManagerQt.so.5.19.0 belongs), namely:

pacman -Syy networkmanager-qt --force

it returned: http://paste2.org/tJG1Ucpa. As you can see the library /usr/lib/libKF5NetworkManagerQt.so.5.19.0 still appears in this error message, so this told me that this method would likely not work, at least not in the way I am implementing it. Then I ran (from thread 203517):

LANG= pacman -Qkk 2>&1 | grep "^warning: .*: /usr/lib.*Size mismatch" | cut -d: -f2 | xargs pacman -S --noconfirm

it returned: http://paste2.org/I1HExC3J.

the output of

LANG= pacman -Qkk 2>&1 | grep "^warning: .*: /usr/lib.*Size mismatch" | cut -d: -f2

is:

linux
linux
linux
linux
linux
linux
vlc

I do not see a single program belonging to these faulty libraries in this output, so it does not surprise that this command failed. Then I ran

LANG= pacman -Qkk 2>&1 | grep "^.*: no mtree file$" | cut -d: -f1 | xargs pacman -S --force --noconfirm

also based on that same thread and it returned:

error: no targets specified (use -h for help)

no surprise

LANG= pacman -Qkk 2>&1 | grep "^.*: no mtree file$" | cut -d: -f1

returns no output at all. Now I am stumped, this problem is not stopping pacman from running but it is annoying to keep receiving this output.

Thanks for your time,
Brenton

Last edited by fusion809 (2016-03-23 05:47:12)

Offline

#2 2016-03-23 03:53:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

So many things wrong here, I don't know where to start.

Offline

#3 2016-03-23 05:05:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

Scimmia wrote:

So many things wrong here, I don't know where to start.

Then don't post...
https://wiki.archlinux.org/index.php/Fo … mpty_posts



And onto fixing the problem....   It looks like you need to reinstall all those packages that are affected.  You can find which packages need to be reinstalled using

$ pacman -Fy
$ pacman -Fo usr/lib/libKF5NetworkManagerQt.so

Reinstall all of those packages - as you ave discovered you may need --force to do that.  For any errors that remain, check that the files have not been renamed as part of a package update.  e.g., you are using [testing], usr/lib/libKF5NetworkManagerQt.so.19.0 will now be  ...so.20.0.   You can delete the old file.

Offline

#4 2016-03-23 05:14:10

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

@Allan, couldn't agree more. I put a lot of effort into making this question show as much effort on my part to fix this problem as possible, as my previous questions have sometimes not been well-received because of the perception I was not doing any work to fix the problem myself, so I appreciate it when people, like you, actually try to help me. The problem is that running:

$ pacman -Fu

returns:

error: invalid option '-u'

and:

$ pacman -Fo usr/lib/libKF5NetworkManagerQt.so

returns:

warning: database file for 'testing' does not exist
warning: database file for 'core' does not exist
warning: database file for 'home_fusion809_arch_extra_Arch_Extra' does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community-testing' does not exist
warning: database file for 'community' does not exist
warning: database file for 'multilib-testing' does not exist
warning: database file for 'multilib' does not exist

now I guessed that maybe you really meant to run:

$ pacman -Fo /usr/lib/libKF5NetworkManagerQt.so.5.19.0

but that returned the same errors as the original pacman -Fo command you mentioned.

Offline

#5 2016-03-23 05:19:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

fusion809 wrote:
$ pacman -Fu

I meant "pacman -Fy"  (and had corrected it above).

Offline

#6 2016-03-23 05:45:53

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

I found a solution of my own, that's sort of borrowed from yours, Allan. You suggested I delete all the problem libraries, so I did with:

$ sudo rm $(sed -n -e 's/^.*File //p' output.txt | sed -n -e 's/ is empty, not checked.//p')

(where output.txt is the output I get when installing a package with "ldconfig: File /usr/lib* is empty, not checked." being its general format). The sed part of this command returns a list of all the problem files, i.e.:

/usr/lib/libKF5NetworkManagerQt.so.5.19.0
/usr/lib/libKF5Package.so.5.19.0
/usr/lib/libtaskmanager.so.5.5.5
/usr/lib/libKF5ThreadWeaver.so.5.19.0
/usr/lib/libKF5Parts.so.5.19.0
/usr/lib/libKF5Auth.so.5.19.0
/usr/lib/libKF5CalendarEvents.so.5.19.0
/usr/lib/libKF5PeopleBackend.so.5.19.0
/usr/lib/libKF5JSApi.so.5.19.0
/usr/lib/libQt5Help.so.5.5.1
/usr/lib/libQt5Positioning.so.5.5
/usr/lib/libkdecorations2private.so.5.5.5
/usr/lib/libKF5DBusAddons.so.5.19.0
/usr/lib/libKF5Screen.so.6
/usr/lib/libKF5KHtml.so.5.19.0
/usr/lib/libKF5Activities.so.5.19.0
/usr/lib/libkwinglutils.so.5.5.5
/usr/lib/libQt5WebKit.so.5.5.1
/usr/lib/libKF5KIOFileWidgets.so.5.19.0
/usr/lib/libKF5WaylandClient.so.5.5.5
/usr/lib/libKF5Wallet.so.5.19.0
/usr/lib/libKF5GlobalAccelPrivate.so.5.19.0
/usr/lib/libKF5Plasma.so.5.19.0
/usr/lib/libKF5JS.so.5.19.0
/usr/lib/libQt5Designer.so.5.5
/usr/lib/libKF5KIOCore.so.5.19.0
/usr/lib/libKF5Emoticons.so.5.19.0
/usr/lib/libkwineffects.so.5.5.5
/usr/lib/libQt5Svg.so.5.5
/usr/lib/libKF5KrossUi.so.5.19.0
/usr/lib/libKF5NotifyConfig.so.5.19.0
/usr/lib/libKF5Plotting.so.5.19.0
/usr/lib/libKF5ModemManagerQt.so.5.19.0
/usr/lib/libQt5Sensors.so.5.5
/usr/lib/libKF5TextWidgets.so.5.19.0
/usr/lib/libkwinxrenderutils.so.5.5.5
/usr/lib/libKF5KDELibs4Support.so.5.19.0
/usr/lib/libQt5MultimediaWidgets.so.5.5
/usr/lib/libKF5People.so.5.19.0
/usr/lib/libQt5Multimedia.so.5.5.1
/usr/lib/libKF5Runner.so.5.19.0
/usr/lib/libKF5NewStuff.so.5.19.0
/usr/lib/libKF5Service.so.5.19.0
/usr/lib/libKF5DNSSD.so.5.19.0
/usr/lib/libplasma-geolocation-interface.so.5.5.5
/usr/lib/libKF5Pty.so.5.19.0
/usr/lib/libpowerdevilui.so.5.5.5
/usr/lib/libkhotkeysprivate.so.5.5.5
/usr/lib/libQt5MultimediaWidgets.so.5.5.1
/usr/lib/libkworkspace5.so.5.5.5
/usr/lib/libprocesscore.so.5.5.5
/usr/lib/libkdecorations2.so.5.5.5
/usr/lib/libKF5XmlGui.so.5.19.0
/usr/lib/libpowerdevilconfigcommonprivate.so.5.5.5
/usr/lib/libKF5Crash.so.5.19.0
/usr/lib/libKF5Completion.so.5.19.0
/usr/lib/libKF5ConfigGui.so.5.19.0
/usr/lib/libKF5IconThemes.so.5.19.0
/usr/lib/libkfontinst.so.5.5.5
/usr/lib/libQt5WebChannel.so.5.5
/usr/lib/libkfontinstui.so.5.5.5
/usr/lib/libKF5Notifications.so.5.19.0
/usr/lib/libkwinglutils.so.7
/usr/lib/libQt5DesignerComponents.so.5.5
/usr/lib/libQt5Location.so.5.5
/usr/lib/liboxygenstyleconfig5.so.5.5.5
/usr/lib/libKF5WaylandServer.so.5.5.5
/usr/lib/libKF5QuickAddons.so.5.19.0
/usr/lib/libKF5Su.so.5.19.0
/usr/lib/libkwin.so.5.5.5
/usr/lib/libQt5WebChannel.so.5.5.1
/usr/lib/libKF5SonnetUi.so.5.19.0
/usr/lib/libKF5JobWidgets.so.5.19.0
/usr/lib/libKF5TextEditor.so.5.19.0
/usr/lib/libKF5Style.so.5.19.0
/usr/lib/libKF5Baloo.so.5.19.0
/usr/lib/libQt5Sensors.so.5.5.1
/usr/lib/liblsofui.so.5.5.5
/usr/lib/libQt5Svg.so.5.5.1
/usr/lib/libQt5WaylandClient.so.5.5.1
/usr/lib/libksgrd.so.5.5.5
/usr/lib/libmilou.so.5.5.5
/usr/lib/libKF5UnitConversion.so.5.19.0
/usr/lib/libQt5Multimedia.so.5.5
/usr/lib/libQt5Designer.so.5.5.1
/usr/lib/libkwineffects.so.7
/usr/lib/libKScreenLocker.so.5.5.5
/usr/lib/libKF5ItemModels.so.5.19.0
/usr/lib/libQt5Help.so.5.5
/usr/lib/libKF5Bookmarks.so.5.19.0
/usr/lib/libQt5WaylandClient.so.5.5
/usr/lib/libksignalplotter.so.5.5.5
/usr/lib/libKF5KIOGui.so.5.19.0
/usr/lib/libQt5Location.so.5.5.1
/usr/lib/libKF5WebKit.so.5.19.0
/usr/lib/libKF5PlasmaQuick.so.5.19.0
/usr/lib/libKF5GuiAddons.so.5.19.0
/usr/lib/libjsoncpp.so.1.6.5
/usr/lib/libQt5CLucene.so.5.5.1
/usr/lib/libKF5KIOWidgets.so.5.19.0
/usr/lib/libKF5BluezQt.so.5.19.0
/usr/lib/libQt5CLucene.so.5.5
/usr/lib/libKF5Codecs.so.5.19.0
/usr/lib/libKF5ConfigWidgets.so.5.19.0
/usr/lib/libplasmamediacenter.so.5.5.5
/usr/lib/libkwalletbackend5.so.5.19.0
/usr/lib/liboxygenstyle5.so.5.5.5
/usr/lib/libQt5MultimediaQuick_p.so.5.5.1
/usr/lib/libQt5WebKitWidgets.so.5.5
/usr/lib/libKF5ConfigCore.so.5.19.0
/usr/lib/libKF5KIONTLM.so.5.19.0
/usr/lib/libkwinxrenderutils.so.7
/usr/lib/libQt5WebKit.so.5.5
/usr/lib/libKF5BalooEngine.so.5.19.0
/usr/lib/libKF5GlobalAccel.so.5.19.0
/usr/lib/libQt5Positioning.so.5.5.1
/usr/lib/libQt5WebKitWidgets.so.5.5.1
/usr/lib/libKF5SonnetCore.so.5.19.0
/usr/lib/libKF5Declarative.so.5.19.0
/usr/lib/libKF5KrossCore.so.5.19.0
/usr/lib/libKF5XmlRpcClient.so.5.19.0
/usr/lib/libKF5PeopleWidgets.so.5.19.0
/usr/lib/libprocessui.so.5.5.5
/usr/lib/libKF5ItemViews.so.5.19.0
/usr/lib/libKF5WindowSystem.so.5.19.0
/usr/lib/libKF5JsEmbed.so.5.19.0
/usr/lib/libKF5KCMUtils.so.5.19.0
/usr/lib/libQt5DesignerComponents.so.5.5.1
/usr/lib/libKF5Screen.so.5.5.5
/usr/lib/libQt5MultimediaQuick_p.so.5.5

and was derived via some tinkering with this answer at Unix & Linux SE. It worked perfectly, now I am not getting any such errors from pacman.

Last edited by fusion809 (2016-03-23 05:47:33)

Offline

#7 2016-03-23 05:57:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

Delete problem libraries *AFTER* reinstalling the packages!

Offline

#8 2016-03-23 07:15:13

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

Well for me it worked, I rebooted to check if KDE Plasma had glitches related to me removing potentially needed libraries, and it didn't. But if, in case someone else is reading this thread and is experiencing the same problem then here is a solution I believe Allan will agree with too:

OUTPUT=$(sudo pacman -S git --noconfirm --force)
FILES=$(echo $OUTPUT | sed -n -e 's/^.*File //p' | sed -n -e 's/ is empty, not checked.//p')
BASE=$(echo $FILES | sed -n -e 's/.so.*/.so/p')
for i in $BASE
do
	L=$(sudo pacman -Qo $i)
	sudo pacman -S $(echo $L | sed -n -e 's/^.*by //p' | sed -n -e 's/ .*//p') --noconfirm --force
done
unset OUTPUT
unset FILES
OUTPUT=$(sudo pacman -S git --noconfirm --force)
FILES=$(echo $OUTPUT | sed -n -e 's/^.*File //p' | sed -n -e 's/ is empty, not checked.//p')
sudo rm $FILES

what it does (although it is tedious) is it reinstalls the packages belonging to the problem libraries forcibly, if necessary, and if that fails to fix these libraries it then removes them.

Offline

#9 2016-06-19 12:29:30

andav
Member
Registered: 2006-12-04
Posts: 117

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

Allan wrote:
Scimmia wrote:

So many things wrong here, I don't know where to start.

Then don't post...
https://wiki.archlinux.org/index.php/Fo … mpty_posts



And onto fixing the problem....   It looks like you need to reinstall all those packages that are affected.  You can find which packages need to be reinstalled using

$ pacman -Fy
$ pacman -Fo usr/lib/libKF5NetworkManagerQt.so

Reinstall all of those packages - as you ave discovered you may need --force to do that.  For any errors that remain, check that the files have not been renamed as part of a package update.  e.g., you are using [testing], usr/lib/libKF5NetworkManagerQt.so.19.0 will now be  ...so.20.0.   You can delete the old file.

thank you very much for that.
i need it :-).

Offline

#10 2016-06-19 13:57:16

ratcheer
Member
Registered: 2011-10-09
Posts: 912

Re: [SOLVED] Pacman returns ldconfig: File /usr/lib* is empty, not checked

Thank you, Allan. That helped me fix a problem I've been having for months. Mine was for libtonyek, and it had been replaced by a newer version with a different name. For some reason, the old named file had not been deleted by pacman.

Tim

Offline

Board footer

Powered by FluxBB