I used this script to restore my files and installed packages (home folder not encrypted) after upgrading to Ubuntu 16.04 64 bit. But when I tried to log in as a user, graphically, it just took me back to the log in screen. I can log on as a user via command-line from the log in screen.
As the solution to can't log into ubuntu after rsync restore of home folder, says to remove the ~/.Xauthority
file from the home folder and create a new one, this didn't work for me.