fix issue of AptInstall function