retitle 641245 apt is unable to parse file /etc/apt/preferences when it has comments.
thanks
Hello,
This bug happens also when the file has any comment at the end.
$ cat /etc/apt/preferences
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 999
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 99
Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 50
# just a comment
$ apt-cache policy apt
apt:
Installed: 0.8.15.9
Candidate: 0.9.7.1
Version table:
0.9.7.2 0
99 http://ftp.es.debian.org/debian/ sid/main amd64 Packages
0.9.7.1 0
999 http://ftp.es.debian.org/debian/ testing/main amd64 Packages
*** 0.8.15.9 0
100 /var/lib/dpkg/status
0.8.10.3+squeeze1 0
500 http://ftp.es.debian.org/debian/ stable/main amd64 Packages
E: Unable to parse package file /etc/apt/preferences (1)
$ sudo apt-get install apt
Reading package lists... Done
E: Unable to parse package file /etc/apt/preferences (1)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Carlos Alberto Lopez Perez http://neutrino.es
Igalia - Free Software Engineering http://www.igalia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Attachment:
signature.asc
Description: OpenPGP digital signature