fix some installation bug, add regtest for ubuntu

Change-Id: Icd71ce1d82778c365cb8f44abc9645b24603453f