add package_hash functionality for Ubuntu.