fix ubuntu and debian logs