Update package list before upgrading packages