I tried out the sudo reboot command on my machine which has Ubuntu 19.04 installed, and I got stuck in a login loop. A common advice was to modify the .Xauthority file but I don’t even have that. I haven't found anything specific to sudo reboot. What should I try doing?
I tried booting Ubuntu 19.04 once in recovery mode and followed steps 1-4 at the end of the answer, but that didn't do it.
I also checked whether or not I have enough disk space in my home directory, and I do (73% available)
Also, I have two users on my system, and the problem pertains to both users.