Ubuntu – Okular no longer working in terminal after Kubuntu 18 upgrading

18.04kubuntuokularshared library

I have recently upgraded from Kubuntu 16 to 18.
When I try to run okular in a terminal (konsole) as a user (as I have been successfully doing before, in vs 16), in vs 18 it fails, giving a message error: "Unable to find the okular component: The shared library was not found".
I can run okular from the Application Menu, and also from terminal provided I run it with sudo, but not when I try as a user. I wonder what has changed in the upgrading and how to fix the problem.
Thanks.

Best Answer

Perhaps this is not the solution you are asking for, but I fixed this on my machine by removing the snap version of Okular and installing the apt version instead.