Public bug reported:

debootstrap currently hardcodes SHA_SIZE to 256 in
./debootstrap/debootstrap which fails with the new SHA512 only stonking
index files.

I assume this also affects livecd-rootfs and causes the recent image
build failures.

The fix here would be to first check if SHA512 is available and then
falling back to SHA256 (we must prefer sha512 over sha256 since the by-
hash/ folders are only guaranteed to exist for the strongest hash in the
Release file).

```
Decompressing 
http://archive.ubuntu.com/ubuntu/dists/stonking/multiverse/debian-installer/binary-amd64/Packages.xz
 file ...
/usr/bin/germinate-update-metapackage: Unable to retrieve package list from 
debootstrap; stdout: 
stderr: I: Retrieving InRelease 
2026-07-07 14:50:38 
URL:http://archive.ubuntu.com/ubuntu/dists/stonking/InRelease [82137/82137] -> 
"/home/erich/Projects/ubuntustudio-meta/debootstrap-dir/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_stonking_InRelease"
 [1]
I: Checking Release signature
gpgv: Signature made Tue 07 Jul 2026 12:39:30 PM PDT
gpgv:                using RSA key F6ECB3762474EDA9D21B7022871920D1991BC93C
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2018) 
<[email protected]>"
I: Valid Release signature (key id F6ECB3762474EDA9D21B7022871920D1991BC93C)
E: Invalid Release file, no entry for main/binary-amd64/Packages
```

** Affects: debootstrap (Ubuntu)
     Importance: Undecided
     Assignee: Finn Gärtner (finnrg)
         Status: Triaged

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: livecd-rootfs (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  Debootstrap fails with stonking due to hardcoded sha256

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to