I had Ubuntu 16.04 and suddenly I couldn't log in anymore. Each time I would try to log in, the screen went black and ask again for my password. I was stuck in a login loop. I updated to Ubuntu 18.04 and it fixed my problem, but now the mouse cursor is invisible. I can still click things, except I can't see the cursor.
I use Ubuntu with Parallels in my MacOs High Sierra.