22

I've installed Wine 1.7 with Winetricks on Ubuntu 13.10 Saucy Salamander. I've tried to launch any .exe files, but still is a problem:

p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory

I've found a few tips, but anything doesn't work. How can I solve it?

Regards.

chico
  • 221

5 Answers5

21

I just had the same problem. For me, it was sufficient to install the i386-version of p11-kit using

sudo apt-get install p11-kit:i386

I'm using Ubuntu 13.10 64-bit.

Mehrwolf
  • 311
  • 3
  • 6
  • 14
    For me this conflicts with 64-bit version :-( (Ubuntu 13.10 64-bit). Apt says: "The following packages will be REMOVED: gnome-keyring p11-kit python-ubuntu-sso-client ubuntu-sso-client" . – sumid Jan 26 '14 at 13:38
  • this seems to be still an issue with Ubuntu 16.04, for me it wanted to remove evolution-data-server gnome-keyring p11-kit skypeforlinux – Dennis Nolte Jul 25 '18 at 07:53
14

I had the same problem and solved it in a very simple way:

All you have to do is to install the p11-kit-modules:i386 package. You can do that like this:

sudo apt-get install p11-kit-modules:i386

And that's it, p11-kit-trust.so is part of this package and will be installed in its correct place.

Hope it helps ;-)

ph0t0nix
  • 1,377
serfer2
  • 241
5

I just downloaded p11-kit:i386 with apt-get download, extracted the /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so file (with Archive Manager) and copied it to my /usr/lib/i386-linux-gnu/pkcs11/ folder.

Hope this helps others to solve the problem without having to install other software.

kiri
  • 28,246
  • 16
  • 81
  • 118
1

You could try to follow this other thread and perform as it mentioned over here

If you are on Ubuntu saucy salamander (e.g. 13.10 beta 1) and you get the error message

p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory

then simply follow the same commands as in the above link, but also with p11-kit: first do

sudo /usr/local/bin/getlibs -p p11-kit:i386 

then make the symbolic link:

sudo ln -s /usr/lib32/i386-linux-gnu/pkcs11/p11-kit-trust.so /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so

Reggie Sep 17 at 17:38

Reggie
  • 111
  • 2
  • On a shared WOW64 wine setup this results in wine complaining about the architecture of the shared object. – Wolfer Feb 25 '14 at 19:42
  • On Saucy, I got a conflict when trying to install p11-kit:i386, and getlibs was trying to install ia32libs, which no longer exists. sudo aptitude install lib32z1 lib32ncurses5 lib32bz2-1.0 and then the symbolic link in this answer worked to get rid of the error message in wine. – naught101 Mar 13 '14 at 03:55
  • I think this worked - I'm at least on to the next bug. I had to first create some directories I didn't have though. ie mkdir /usr/lib32 /usr/lib/i386-linux-gnu/pkcs11 – mc0e May 04 '14 at 12:45
1

A few of the other answers suggest doing this:

sudo apt-get install p11-kit:i386

This causes conflicts for me, and deinstalls gnome-keyring, which is a pretty bad thing. It stops ssh from remembering passphrases, and thus you have to keep typing your passphrase in the terminal every single time. And it stops Network-Manager from being able to ask for WiFi passwords.

The one answer that works is

sudo apt-get install p11-kit-modules:i386

This doesn't have any conflicts.

Manually unzipping packages and installing files is also not a good idea, since you won't automatically get updates, which can lead to security issues.

(Wanted to comment on the correct answer post, but wasn't allowed due to lack of reputation. Figured I'd post to clarify the details for people.)