Resolved: “Could not store password” for MySQL workbench community + ubuntu 18

Have you ever received below error while adding a connection and clocking on Store in Keychain in Mysql Workbench community edition and ubuntu 18?

Could not store password: An AppArmor policy prevents this sender from sending this message to this recipent.

In order to resolve Could not store password: An AppArmor policy prevents this sender from sending this message to this recipent. Error in mysql workbench try below command

  1. gnome-keyring-daemon --start --components=pkcs11

    this command should be successful with SSH_AUTH_SOCK=** output. If it fails try step 2

  2. Run sudo gnome-keyring-daemon --start --components=pkcs11

    this command should be successful with SSH_AUTH_SOCK=** output.

In most of the case, solution 1 should work. Try it and share in comment below if it worked for you or not?