This commit is contained in:
parent
e06969df8a
commit
9e1a80d6eb
@ -19,10 +19,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cat /proc/version
|
cat /proc/version
|
||||||
|
|
||||||
- name: Install gnupg
|
#- name: Install gnupg
|
||||||
run: |
|
#run: |
|
||||||
apt update
|
#apt update
|
||||||
apt install -y gnupg
|
#apt install -y gnupg
|
||||||
|
|
||||||
- name: Change Download URL to NJU Mirror
|
- name: Change Download URL to NJU Mirror
|
||||||
run: |
|
run: |
|
||||||
@ -31,28 +31,29 @@ 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
|
||||||
- name: Add missing GPG keys for NJU mirror
|
|
||||||
run: |
|
|
||||||
# 导入公钥 3B4FE6ACC0B21F32
|
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
|
||||||
|
|
||||||
# 导入公钥 871920D1991BC93C
|
# - name: Add missing GPG keys for NJU mirror
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
|
# run: |
|
||||||
|
# # 导入公钥 3B4FE6ACC0B21F32
|
||||||
|
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
||||||
|
#
|
||||||
|
# # 导入公钥 871920D1991BC93C
|
||||||
|
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
|
||||||
|
|
||||||
|
|
||||||
- name: Apt Update
|
- name: Apt Update
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt update --allow-unauthenticated
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
# 更新 apt 包管理器并安装必要的工具
|
# 更新 apt 包管理器并安装必要的工具
|
||||||
apt-get update && 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 -
|
||||||
#apt-get install -y nodejs
|
#apt-get install -y nodejs
|
||||||
apt install nodejs npm
|
apt install nodejs npm --allow-unauthenticated
|
||||||
|
|
||||||
# 验证安装是否成功
|
# 验证安装是否成功
|
||||||
node -v
|
node -v
|
||||||
|
Loading…
Reference in New Issue
Block a user