I had the same error. I found that I shouldn't try to find out the reason or install odoo manually. I have a better solution for this (without any error you will enjoy odoo). It is odoo installtion script:
https://github.com/Yenthe666/InstallScript/tree/12.0