fix Download URL to NJU Mirror v13
Some checks failed
Java CI / build (push) Failing after 6s

This commit is contained in:
fly6516 2024-12-17 19:50:25 +08:00
parent 388ac0c53f
commit 4ce709790d

View File

@ -31,6 +31,17 @@ jobs:
echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-security main restricted universe multiverse" >> /etc/apt/sources.list
- name: Add missing GPG keys for NJU mirror
run: |
# 添加公钥 3B4FE6ACC0B21F32
curl -fsSL https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3B4FE6ACC0B21F32 | sudo tee /etc/apt/trusted.gpg.d/nju-archive-key.asc
# 添加公钥 871920D1991BC93C
curl -fsSL https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C | sudo tee /etc/apt/trusted.gpg.d/nju-archive-key.asc
- name: Install gnupg
run: |
apt-get update --allow-unauthenticated --ignore-missing
apt-get install --allow-unauthenticated -y gnupg