That commands end with the same error note concerning the invalid record in the preferences file.
cat /etc/apt/preferences