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.
df(disk free) that you have space in $HOME. This is my most common issue, and what I'd check unless you made changes that could have caused it (and not told us about). – guiverc Aug 05 '19 at 11:34find $HOME -not -user $USERplease. – nobody Aug 05 '19 at 13:27