I reinstalled Ubuntu Mate 16.04. Then I followed this tutorial video https://www.youtube.com/watch?v=oLsA2kj_bMU&t=57s.
And it went well. I managed to install both LAMP and Wordpress without a hitch. Thank you guys for your inputs. I can now stamp this issue SOLVED.