Skip to content

Commit 9596644

Browse files
chris-adamclaude
andcommitted
GHA: add the LibreOffice PPA without Launchpad's broken key API
add-apt-repository fails with GPGKeyTemporarilyNotFoundError since Launchpad's getSigningKeyData endpoint is down, blocking every run. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 166df74 commit 9596644

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/python-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ jobs:
3030
- name: Setup Env
3131
run: |
3232
mkdir -p -m 777 /tmp/appy/
33-
sudo add-apt-repository ppa:libreoffice/ppa -y
33+
# add-apt-repository is unusable while Launchpad's key API answers
34+
# GPGKeyTemporarilyNotFoundError, so add the PPA without it
35+
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xCDDE43BA4DE3F09D7CE7016673AEE920AD55F5A0" \
36+
| sudo tee /etc/apt/trusted.gpg.d/libreoffice-ppa.asc > /dev/null
37+
echo "deb https://ppa.launchpadcontent.net/libreoffice/ppa/ubuntu $(lsb_release -cs) main" \
38+
| sudo tee /etc/apt/sources.list.d/libreoffice-ppa.list
3439
sudo apt update -qq -y
3540
sudo apt-get install -qq -y libreoffice libreoffice-script-provider-python libjpeg62 libjpeg62-dev libbz2-dev
3641
/usr/bin/python3 -m pip install -q --target uno-libs persistent

0 commit comments

Comments
 (0)