You are not logged in.

#1 2018-01-08 18:04:27

nticompass
Member
From: /home/nticompass/
Registered: 2009-12-08
Posts: 55
Website

[SOLVED] KeepassXC can't find libjson-c.so.2

I have community/keepassxc 2.2.4-1 installed and when launching it, I see: 'keepassxc: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory'.

I checked and I have core/json-c 0.13-1 installed, which includes libjson-c.so.3, but not libjson-c.so.2.

Curious, I ran keepassxc with strace and I see the following:

openat(AT_FDCWD, "/usr/lib/tls/x86_64/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7ffeb17aca90)    = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=221184, ...}) = 0
writev(2, [{iov_base="keepassxc", iov_len=9}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libjson-c.so.2", iov_len=14}, {iov_base=": ", iov_len=2}, {iov_base="cannot open shared object file", iov_len=30}, {iov_base=": ", iov_len=2}, {iov_base="No such file or directory", iov_len=25}, {iov_base="\n", iov_len=1}], 10keepassxc: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory

(Full output at: https://pastebin.com/RHLDKWWB)

What could be causing this issue?

Last edited by nticompass (2018-01-08 18:27:45)

Offline

#2 2018-01-08 18:20:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,876
Website

Re: [SOLVED] KeepassXC can't find libjson-c.so.2

Use lddtree (part of community/pax-utils) to identify where that dependency is coming from. My guess is an outdated AUR-variant of a repository package.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2018-01-08 18:28:30

nticompass
Member
From: /home/nticompass/
Registered: 2009-12-08
Posts: 55
Website

Re: [SOLVED] KeepassXC can't find libjson-c.so.2

WorMzy wrote:

Use lddtree (part of community/pax-utils) to identify where that dependency is coming from. My guess is an outdated AUR-variant of a repository package.

That was *exactly* the issue here.  I had aur/yubikey-personalization-git installed.  Once I installed community/yubikey-personalization in its place, KeepassXC worked fine!  Thanks a lot smile

Offline

#4 2018-01-08 18:29:14

Meskarune
Member
From: USA
Registered: 2009-03-21
Posts: 359
Website

Re: [SOLVED] KeepassXC can't find libjson-c.so.2

Is it possible you did a partial upgrade? Can you make sure you fully upgrade all packages and then see if the error continues?


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#5 2018-01-08 18:31:14

nticompass
Member
From: /home/nticompass/
Registered: 2009-12-08
Posts: 55
Website

Re: [SOLVED] KeepassXC can't find libjson-c.so.2

Meskarune wrote:

Is it possible you did a partial upgrade? Can you make sure you fully upgrade all packages and then see if the error continues?

All packages are upgraded, it was that I had an [outdated] AUR package when I should've had the newer one in "community".

Offline

#6 2018-01-08 18:40:40

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,934

Re: [SOLVED] KeepassXC can't find libjson-c.so.2

Upgrading/rebuilding aur/yubikey-personalization-git would have fixed the issue as well


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB