[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

Daniel Hahler launchpad at thequod.de
Wed Nov 23 09:53:56 UTC 2011


This has regressed:

% cat /etc/apt/preferences
#test 

% apt-get source apt
Reading package lists... Done
E: Unable to parse package file /etc/apt/preferences (1)

The man page tells that "Explanation: " would work for commenting
package sections (and "//" does appear to work the same), but it
requires a Package header then anyway (otherwise it results in "E:
Invalid record in the preferences file /etc/apt/preferences, no Package
header").

** Changed in: apt (Ubuntu)
       Status: Fix Released => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

Status in “apt” package in Ubuntu:
  Triaged
Status in “apt” package in Debian:
  Fix Released

Bug description:
  Binary package hint: update-manager

  Are comments not allowed in the preferences file.  Simply changing:

  Package: tar
  Pin: version 1.15.1-2ubuntu2
  Pin-Priority: 1000

  to:

  #Package: tar
  #Pin: version 1.15.1-2ubuntu2
  #Pin-Priority: 1000

  seems to have caused this defect.

  ProblemType: Crash
  Date: Sun Feb  4 19:04:37 2007
  DistroRelease: Ubuntu 7.04
  ExecutablePath: /usr/bin/update-manager
  InterpreterPath: /usr/bin/python2.5
  Package: update-manager 0.53.5 [modified: usr/share/pycentral/update-manager/site-packages/UpdateManager/UpdateManager.py]
  ProcCmdline: /usr/bin/python /usr/bin/update-manager
  ProcCwd: /home/brian
  ProcEnviron:
   PATH=/home/brian/bin:/sbin:/bin:/usr/sbin/:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/StarOffice-3.1/linux-x86/bin
   LANG=en_CA.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/update-manager']
  SourcePackage: update-manager
  Uname: Linux pc 2.6.20-4-generic #2 SMP Fri Jan 5 04:31:55 UTC 2007 i686 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions




More information about the foundations-bugs mailing list