Mehrere Anwendungen geben "libtasn1.so.3: freigegebene Objektdatei kann nicht geöffnet werden: Keine solche Datei oder kein solches Verzeichnis"


2

Ich erhalte diesen Fehler, wenn ich versuche, LibreOffice nach dem Upgrade von 13.10 auf 14.04 auszuführen.

~$> libreoffice --writer

/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory

Dieses Problem betrifft mehr Programme als nur libreoffice.

 /usr/lib/chromium-browser/chromium-browser: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory 

Ausgabe der Strace

~$> strace filezilla
...
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libtasn1.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7fffc19f9310) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libtasn1.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls", 0x7fffc19f9310) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libtasn1.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/x86_64", 0x7fffc19f9310) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libtasn1.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
...
writev(2, [{"filezilla", 9}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libtasn1.so.3", 13}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10filezilla: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory) = 122
exit_group(127)
0

You may be able to fix this by installing libtasn1-3. This is a transitional package in Trusty, and you can install it using:

sudo apt-get update
sudo apt-get install libtasn1-3-bin

1

The libtasn1.3 library was replaced with libtasn1.6 as of the Trusty (14.04) release. For some reason you don't have the new library installed/used. Verify that you have it installed using:

sudo apt-get install libtasn1-6

If that doesn't work, upgrade your package too:

sudo apt-get update
sudo apt-upgrade

1

Solution: Remove file /etc/ld.so.conf.d/testlib.conf.

This problem was caused by me testing some Gnome developement last year.

The developement-enviroment had set up a /opt/testlib/ folder, with an old version of libgnutls26. The /opt/testlib/ folder was pointed to in /etc/ld.so.conf.d/testlib.conf.

I found the problem after analyzing all open(...)-calls in the strace-log.

Helping strace-log:

~$> strace filezilla
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libtinyxml.so.2.6.2", O_RDONLY|O_CLOEXEC) = 3
open("/opt/testlib/lib/libgnutls.so.26", O_RDONLY|O_CLOEXEC) = 3
...

Thank you for all help.