Refresh package database if any packages missing.