fixed issue with not setting up apt preferences properly