Skip to content

repositories: Add support for Deb822 formated repositories #951

@brammp

Description

@brammp

I would like know if there are plans to add the support to add Debian repositories in the Deb822 format,
since this is the recommended format by Debian since Trixie and supported since Bullseye.

Even tho not supported, when attempted with for example Debian's default sources debian.sourcesi get the following error:

Output

E: Type 'Types:' is not known on line 2 i
n source list /etc/apt/sources.list.d/debian.sources.list
E: The list of sources could not be read.
Error: Failed to manage packages: Failed to refresh: exit status 100
ERROR  [2025-10-21T22:13:17+02:00] Failed running distrobuilder                  err="Failed to manage packages: Failed to refresh: exit status 100"
INFO   [2025-10-21T22:13:17+02:00] Removing cache directory    

Relevant part of my example.yaml

  repositories:
  - name: debian.sources 
    url: |-
      Types: deb
      URIs: http://deb.debian.org/debian/
      Suites: {{ image.release }}
      Components: main contrib
      Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

      Types: deb
      URIs: http://deb.debian.org/debian/
      Suites: {{ image.release }}-updates
      Components: main contrib
      Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg


      Types: deb
      URIs: http://security.debian.org/
      Suites: {{ image.release }}-security
      Components: main contrib
      Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions