Thank you for sharing your experience.
I have installed CentOS instead of Ubuntu and now ERPNext is installed.