Another possible cause is that systemd-homed is not running. Check it’s status with
systemctl status systemd-homed
If it says something other than active, use
systemctl start systemd-homed
to start it again. Note that you need superuser privileges in order to run that command. As sudo is not working, you might try logging as root using
su root
and the correct password for root (usually not your regular user).