fix the bug in installing packages

bug description:The package is not installed correctly but shows pass