Revise the patch for ubuntu.