Probably an error with permissions as @DanielS wrote. I had a similar situation several times. Before verifying permissions, I recommend that you reboot the server if possible - in my case a reboot helped.
It would seem as if OneAgent did not fully uninstall and the system still tries to load its library. Did you uninstall it with administrative privileges (root)? If not, it may not have been able to do so for lack of privileges.
As @radek_jasinski mentioned, you did reboot afterwards, right?
You could also try to install it once more (as root) and then run the uninstall again (as root).