Update sources.list and apt preferences.