This commit is contained in:
parent
11140a4725
commit
7d97d74cf4
@ -31,14 +31,16 @@ 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-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-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
|
echo "deb https://mirror.nju.edu.cn/ubuntu/ focal-security main restricted universe multiverse" >> /etc/apt/sources.list
|
||||||
|
apt update --allow-unauthenticated
|
||||||
|
apt install -y gnupg --allow-unauthenticated
|
||||||
|
|
||||||
# - name: Add missing GPG keys for NJU mirror
|
- name: Add missing GPG keys for NJU mirror
|
||||||
# run: |
|
run: |
|
||||||
# # 导入公钥 3B4FE6ACC0B21F32
|
# 导入公钥 3B4FE6ACC0B21F32
|
||||||
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
||||||
#
|
|
||||||
# # 导入公钥 871920D1991BC93C
|
# 导入公钥 871920D1991BC93C
|
||||||
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
|
||||||
|
|
||||||
- name: Disable APT signature verification
|
- name: Disable APT signature verification
|
||||||
run: |
|
run: |
|
||||||
@ -52,7 +54,7 @@ jobs:
|
|||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
# 更新 apt 包管理器并安装必要的工具
|
# 更新 apt 包管理器并安装必要的工具
|
||||||
apt-get install -y curl gnupg2 lsb-release ca-certificates
|
apt-get install -y curl gnupg2 lsb-release ca-certificates --allow-unauthenticated
|
||||||
|
|
||||||
# 安装 Node.js 20.x
|
# 安装 Node.js 20.x
|
||||||
#curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
#curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
|
Loading…
Reference in New Issue
Block a user