Fix bug in ubuntu setup script
Fix bugs in setups script.