/etc/kernel/postinst.d/apt-auto-removal creates comment with invalid # character
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Adam Conrad |
Bug Description
/etc/kernel/
cat > "$config_
# 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:/
=======
ERROR: test_ (tests.
-------
Traceback (most recent call last):
File "/tmp/tmp.
config = self.parser.
File "/tmp/tmp.
raise Exception("Unknown char '%s' in: %s" % (char, line))
Exception: Unknown char '#' in: # File autogenerated by /etc/kernel/
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?
Changed in apt (Ubuntu): | |
assignee: | nobody → Adam Conrad (adconrad) |
status: | New → Fix Committed |
This is a regression from https:/ /launchpad. net/ubuntu/ +source/ apt/0.9. 7.6ubuntu1 .