After two days of installation, strangely my Ubuntu machine is restarting instead of shutdown from both desktop GUI and command line.
sudo shutdown -h now sudo halt # (doesn't shutdown, instead freezes on boot screen Plymouth)
I had force shutdown by powering off the machine.
This is not happening all the times.
I have been using Ubuntu for 6 months and never experienced this kind of problem.