Public bug reported:

/etc/kernel/postinst.d/apt-auto-removal does:

cat > "$config_file".dpkg-new <<EOF
# File autogenerated by $0, do not edit
APT
{
[...]

But apt does not seem to accept that. This is exposed by the current
aptdaemon autopkgtest failure in
https://jenkins.qa.ubuntu.com/view/Raring/view/AutoPkgTest/job/raring-
adt-aptdaemon/lastFailedBuild/ARCH=i386,label=albali/ :

=====================================================================
ERROR: test_ (tests.test_configparser.ConfigurationParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/tmp/tmp.dHacB3CTL5/dsc0-build/aptdaemon-0.45+bzr861/tests/test_configparser.py",
 line 63, in test_
    config = self.parser.parse(fd.readlines())
  File 
"/tmp/tmp.dHacB3CTL5/dsc0-build/aptdaemon-0.45+bzr861/aptdaemon/config.py", 
line 156, in parse
    raise Exception("Unknown char '%s' in: %s" % (char, line))
Exception: Unknown char '#' in: # File autogenerated by 
/etc/kernel/postinst.d/apt-auto-removal, do not edit

man apt.conf also just documents // and /* .. */ as valid comments, not
#.

I think this apt script should be fixed to write a // comment instead of
a # comment. Or should aptdaemon/apt accept # as well?

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: autopkgtest-failure raring

** Tags added: autopkgtest-failure raring

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

Title:
   /etc/kernel/postinst.d/apt-auto-removal creates comment with invalid
  # character

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to