Skip to main content
Topic: [SOLVED] keepassxc libbotan-3.so.3 no such file/directory error (Read 701 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] keepassxc libbotan-3.so.3 no such file/directory error

It looks like a recent update brought in a new /usr/lib/libbotan version. From within /usr/lib a grep of libbotan yields this on my system:

Code: [Select]
libbotan-2.so -> libbotan-2.so.19.19.3
libbotan-2.so.19 -> libbotan-2.so.19.19.3
libbotan-2.so.19.19.3
libbotan-3.so -> libbotan-3.so.4.4.0
libbotan-3.so.4 -> libbotan-3.so.4.4.0
libbotan-3.so.4.4.0

If I try to run keepassxc, it's final error message output shows this:

Code: [Select]
/usr/bin/keepassxc: error while loading shared libraries: libbotan-3.so.3: cannot open shared object file: No such file or directory

I've encountered library mismatches like this before, but haven't in a while. Can someone instruct me on how I might be able to hotfix this until an update to keepassxc soft links to this new version? I don't know if soft linking to this particular library will break other applications on my system, so I want to be cautious and get the opinion of the community on this.

I have other devices which can  open  up my keepassxc, but this is my main machine, so I'd like to get this back up and running ASAP.

As always, thanks in advance for any advice/help you can provide.

Re: keepassxc libbotan-3.so.3 no such file/directory error

Reply #1
I don't know if soft linking to this particular library will break other applications on my system
You can easily look.
Code: [Select]
pkgfile /usr/lib/libbotan-3.so
shows the package is botan
Code: [Select]
pacman -Qi botan
On my system the only package that requires botan is keepassxc, with a couple of optionals
Quote
Required By     : keepassxc
Optional For    : qca-qt5  qca-qt6
ln -s /usr/lib/libbotan-3.so /usr/lib/libbotan-3.so.3
might work.
Or you could build keepassxc locally. Or you could downgrade the botan package.

 

Re: keepassxc libbotan-3.so.3 no such file/directory error

Reply #2
I don't know if soft linking to this particular library will break other applications on my system
You can easily look.
Code: [Select]
pkgfile /usr/lib/libbotan-3.so
shows the package is botan
Code: [Select]
pacman -Qi botan
On my system the only package that requires botan is keepassxc, with a couple of optionals
Quote
Required By     : keepassxc
Optional For    : qca-qt5  qca-qt6
ln -s /usr/lib/libbotan-3.so /usr/lib/libbotan-3.so.3
might work.
Or you could build keepassxc locally. Or you could downgrade the botan package.

Holy cow, how did I not have pkgfile installed! Amazing. Thanks this helps alot.

And yeah, downgrading botan package and simply adding it to more IgnorePkg in /etc/pacman.conf for now brought keepassxc back up. So again thank you.

Re: keepassxc libbotan-3.so.3 no such file/directory error

Reply #3
Holy cow, how did I not have pkgfile installed! Amazing. Thanks this helps alot.
pacman -Qo does the same really. But I'm in the habit of using pkgfile.
I think that the pacman -Qo option was added to pacman after I started using using pkgfile but I could be entirely wrong ?

Re: keepassxc libbotan-3.so.3 no such file/directory error

Reply #4
The output isn't quite the same, but both are useful:

Code: [Select]
pacman -Qo botan
/usr/bin/botan is owned by botan 3.3.0-1

Code: [Select]
world/botan

Again, thanks again. Marking this as SOLVED.

Re: [SOLVED] keepassxc libbotan-3.so.3 no such file/directory error

Reply #5
There was a build issue with keepassxc 2.7.7-2 but this has been fixed a few hours ago.

artist