go-debos / debos

Debian OS builder
Apache License 2.0
540 stars 138 forks source link

check-gpg: false for debootstrap stage still looks for InRelease, fails debootstrap #498

Open abotelho-cbn opened 5 months ago

abotelho-cbn commented 5 months ago

The block in the recipe:

  - action: debootstrap
    suite: {{ $suite }}
    components:
      - main
      - contrib
      - non-free
      - non-free-firmware
    mirror: {{ $debian_mirror }}
    variant: minbase
    check-gpg: false

Output and error:

2024/05/16 17:53:17 ==== debootstrap ====
2024/05/16 17:53:18 Debootstrap | I: Target architecture can be executed
2024/05/16 17:53:18 Debootstrap | I: Retrieving InRelease 
2024/05/16 17:53:19 Debootstrap | I: Retrieving Release 
2024/05/16 17:53:20 Debootstrap | I: Retrieving Packages 
2024/05/16 17:53:20 Debootstrap | I: Validating Packages 
2024/05/16 17:53:20 Debootstrap | I: Retrieving Packages 
2024/05/16 17:53:21 Debootstrap | I: Validating Packages 
2024/05/16 17:53:21 Debootstrap | I: Retrieving Packages 
2024/05/16 17:53:22 Debootstrap | I: Validating Packages 
2024/05/16 17:53:22 Debootstrap | I: Retrieving Packages 
2024/05/16 17:53:22 Debootstrap | I: Validating Packages 
2024/05/16 17:53:23 Debootstrap | I: Resolving dependencies of required packages...
2024/05/16 17:53:31 Debootstrap | I: Resolving dependencies of base packages...
2024/05/16 17:53:39 Debootstrap | I: Checking component contrib on https://debmirror.example.com/pulp/content/deb-bookworm...
2024/05/16 17:53:39 Debootstrap | I: Checking component main on https://debmirror.example.com/pulp/content/deb-bookworm...
2024/05/16 17:53:40 Debootstrap | I: Checking component non-free on https://debmirror.example.com/pulp/content/deb-bookworm...
2024/05/16 17:53:40 Debootstrap | I: Checking component non-free-firmware on https://debmirror.example.com/pulp/content/deb-bookworm...
2024/05/16 17:53:40 Debootstrap | E: Couldn't find these debs: usr-is-merged ca-certificates
2024/05/16 17:53:41 debootstrap.log | amd64: ok
2024/05/16 17:53:41 debootstrap.log | https://debmirror.example.com/pulp/content/deb-bookworm/dists/bookworm/InRelease:
2024/05/16 17:53:41 debootstrap.log | 2024-05-16 17:53:19 ERROR 404: Not Found.
2024/05/16 17:53:41 debootstrap.log | 2024-05-16 17:53:19 URL:https://debmirror.example.com/pulp/content/deb-bookworm/dists/bookworm/Release [11380/11380] -> "/scratch/root/var/lib/apt/lists/partial/debmirror.example.com_pulp_content_deb-bookworm_dists_bookworm_Release" [1]
2024/05/16 17:53:41 debootstrap.log | 2024-05-16 17:53:20 URL:https://debmirror.example.com/pulp/content/deb-bookworm/dists/bookworm/contrib/binary-amd64/Packages.gz [46980/46980] -> "/scratch/root/var/lib/apt/lists/partial/debmirror.example.com_pulp_content_deb-bookworm_dists_bookworm_contrib_binary-amd64_Packages.gz" [1]
2024/05/16 17:53:41 debootstrap.log | 2024-05-16 17:53:21 URL:https://debmirror.example.com/pulp/content/deb-bookworm/dists/bookworm/main/binary-amd64/Packages.gz [8201681/8201681] -> "/scratch/root/var/lib/apt/lists/partial/debmirror.example.com_pulp_content_deb-bookworm_dists_bookworm_main_binary-amd64_Packages.gz" [1]
2024/05/16 17:53:41 debootstrap.log | 2024-05-16 17:53:22 URL:https://debmirror.example.com/pulp/content/deb-bookworm/dists/bookworm/non-free/binary-amd64/Packages.gz [110212/110212] -> "/scratch/root/var/lib/apt/lists/partial/debmirror.example.com_pulp_content_deb-bookworm_dists_bookworm_non-free_binary-amd64_Packages.gz" [1]
2024/05/16 17:53:41 debootstrap.log | 2024-05-16 17:53:22 URL:https://debmirror.example.com/pulp/content/deb-bookworm/dists/bookworm/non-free-firmware/binary-amd64/Packages.gz [1578/1578] -> "/scratch/root/var/lib/apt/lists/partial/debmirror.example.com_pulp_content_deb-bookworm_dists_bookworm_non-free-firmware_binary-amd64_Packages.gz" [1]
2024/05/16 17:53:41 Action `debootstrap` failed at stage Run, error: exit status 1

Is it possible to configure the underlying debootstrap to properly ignore a missing InRelease? This is an internal Pulp mirror of upstream Debian.

Cheers