fix the issue when os package not installed will be skipped by upgrade