Skip to content

Cannot build on Debian 13 due to repository signed using SHA1 #7818

Description

@RedVyper

Summary

The sources cannot be built following the official guide due to the usage of a key that's signed using a SHA1 hash with the following error message:

Err:4 https://apt.llvm.org/trixie llvm-toolchain-trixie-20 InRelease   
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6084F3CF814B57C1CF12EFD515CF4D18AF4F7421 is not bound:
No binding signature at time 2025-08-09T21:49:56Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z

Operating system

Linux

Steps to reproduce

1.Spin a Debian Trixie container.
2. Install all the needed software via APT sudo apt install autoconf autoconf-archive automake build-essential ccache cmake curl fonts-liberation2 git libdrm-dev libgl1-mesa-dev libtool nasm ninja-build pkg-config python3-venv qt6-base-dev qt6-tools-dev-tools qt6-wayland tar unzip zip
3. Actually install also lsb-release package because the container doesn't have it and future commands will break.
4. Add the key. wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
5. Run sudo apt update -y and trigger the issue.

Expected behavior

The command apt update should just refresh the cache of the repositories without errors.

Actual behavior

This is the output:

Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://deb.debian.org/debian trixie-updates InRelease                 
Hit:3 http://deb.debian.org/debian-security trixie-security InRelease       
Get:4 https://apt.llvm.org/trixie llvm-toolchain-trixie-20 InRelease [6834 B]
Err:4 https://apt.llvm.org/trixie llvm-toolchain-trixie-20 InRelease        
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6084F3CF814B57C1CF12EFD515CF4D18AF4F7421 is not bound:            No binding signature at time 2025-08-09T21:49:56Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
Ign:5 https://apt.kitware.com/ubuntu trixie InRelease
Err:6 https://apt.kitware.com/ubuntu trixie Release
  404  Not Found [IP: 66.194.253.25 443]
Warning: OpenPGP signature verification failed: https://apt.llvm.org/trixie llvm-toolchain-trixie-20 InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6084F3CF814B57C1CF12EFD515CF4D18AF4F7421 is not bound:            No binding signature at time 2025-08-09T21:49:56Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
Error: The repository 'https://apt.llvm.org/trixie llvm-toolchain-trixie-20 InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.
Error: The repository 'https://apt.kitware.com/ubuntu trixie Release' does not have a Release file.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.

URL for a reduced test case

N/A

HTML/SVG/etc. source for a reduced test case

N/A

Log output and (if possible) backtrace

N/A

Screenshots or screen recordings

Not needed.

Build flags or config settings

Standard Debian Trixie container.

Contribute a patch?

  • I’ll contribute a patch for this myself.

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