Re: How to comment out lines in /etc/apt/preferences?
Dale Hair <dale@meridian-electric.com> writes:
>
>On Thu, 2003-01-23 at 07:06, Lloyd Zusman wrote:
>>
>> [ ... ]
>>
>> # apt-get update
>> ... normal `apt-get update' output, followed by:
>> E: Invalid record in the preferences file, no Package header
>>
>> If I remove the hashes before lines in the "ruby*" section, I no longer
>> get that error.
>>
>> This seems to imply that the hash mark is not considered to be a proper
>> comment character in /etc/apt/preferences.
>>
>Leave a space between # and the line you're commenting out.
That still doesn't work for me ...
# cat /etc/apt/preferences
Package: mplayer*
Pin: release a=unstable
Pin-Priority: 700
# Package: ruby*
# Pin: release a=unstable
# Pin-Priority: 700
Package: *
Pin: release a=testing
Pin-Priority: 650
Package: *
Pin: release a=unstable
Pin-Priority: 600
# apt-get update
... normal `apt-get update' output, followed by:
E: Invalid record in the preferences file, no Package header
Once again, when I remove the leading "# " from each of the "ruby*"
lines, everything works fine.
--
Lloyd Zusman
ljz@asfast.com
Reply to: