fix ubuntu/centos installation