fix a few codes in ubuntu patching