Control: reassign -1 python-apt Control: retitle -1 python-apt: deb822 sources parsing inconsistency
On Wed, Apr 05, 2023 at 04:41:58PM +0200, H.-Dirk Schmitt wrote: > Package: command-not-found > Version: 23.04.0-1 > Severity: normal > X-Debbugs-Cc: none, H.-Dirk Schmitt <d...@computer42.org> > > After changing the /etc/apt/sources.d/… files from the traditional to the > deb822 format following noisy warning message > are displayed: > WARNING:root:could not open file > '/etc/apt/sources.list.d/bookworm.security.sources': Unable to parse section > data > Same for all other sources files in deb822 format. 23.04.0 is the version I introduced deb822 support, so yes, it absolutely does support it, older versions ignore the files. The warning says the file is wrong (or the parser). > > Content of the mentioned file. > > # -- old-stable -- > Types: deb > URIs: http://security.debian.org/debian-security > Suites: bullseye-security > Components: main contrib non-free > > # -- stable -- > > Types: deb > URIs: http://security.debian.org/debian-security > Suites: bookworm-security > Components: main contrib non-free non-free-firmware I think you may be missing an empty line at the end or your comments trip up the parser. It is generally expected that comments are part of sections and there are no fraudulent sections that consist of just comments. -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en