fix detecting arch missing packages, fix #1891