add repos before installing java