Fix locale problem
Open file /etc/default/locale to add or change LC_ALL to the following
LC_ALL="en_US.UTF-8"
Then logout and login again. (I've tried to find a better way to do this but failed. If you can, please tell me.)
Install necessary packages