COIN: Fix Debian bookworm pgp key in Ubuntu 22.04 for debootstrap

Pick-to: 6.9 6.8
Change-Id: Ie06c37987cf21ee0f8f60528af5d70cbf8b5490d
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit e6eaa4f3ef)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Simo Fält 2025-09-08 08:53:44 +03:00 committed by Qt Cherry-pick Bot
parent 2bafe451fa
commit 202622c541
1 changed files with 6 additions and 1 deletions

View File

@ -39,8 +39,13 @@ EOF
sudo sbuild-adduser "$LOGNAME" sudo sbuild-adduser "$LOGNAME"
newgrp sbuild newgrp sbuild
# For debian repo we need to update the bookworm release pgp key
mkdir -p /home/qt/.debian_key_ring
wget https://ftp-master.debian.org/keys/archive-key-12.asc -O /home/qt/.debian_key_ring/archive-key-12.asc
gpg --no-default-keyring --keyring=/home/qt/.debian_key_ring/debian_chroot.gpg --import /home/qt/.debian_key_ring/archive-key-12.asc
# Create chroot # Create chroot
sudo sbuild-createchroot --include=eatmydata,ccache,gnupg,ca-certificates bookworm /srv/chroot/stable-amd64 http://deb.debian.org/debian sudo sbuild-createchroot --include=eatmydata,ccache,gnupg,ca-certificates bookworm /srv/chroot/stable-amd64 http://deb.debian.org/debian --keyring=/home/qt/.debian_key_ring/debian_chroot.gpg
# For ubuntu 22.04 # For ubuntu 22.04
echo "Create chroot for Ubuntu Jammy" echo "Create chroot for Ubuntu Jammy"