fix Download URL to NJU Mirror v24
Some checks failed
Java CI / build (push) Failing after 1m37s

This commit is contained in:
fly6516 2024-12-17 20:12:38 +08:00
parent 948928ba20
commit c0f1c198ca

View File

@ -10,7 +10,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-24.04.1 runs-on: ubuntu-latest
# container: # container:
# image: dockerp.com/openjdk:17-jdk-slim # 使用带有 JDK 17 的 Docker 镜像 # image: dockerp.com/openjdk:17-jdk-slim # 使用带有 JDK 17 的 Docker 镜像
@ -27,10 +27,11 @@ jobs:
- name: Change Download URL to NJU Mirror - name: Change Download URL to NJU Mirror
run: | run: |
# 替换为 NJU 的 APT 源 # 替换为 NJU 的 APT 源
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list.d/ubuntu.sources sed -i 's/archive.ubuntu.com/mirrors.nju.edu.cn/g' /etc/apt/sources.list
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources # echo "deb https://mirror.nju.edu.cn/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list.d/ubuntu.sources
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-backports main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources # echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-security main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources # echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-backports main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
# echo "deb https://mirror.nju.edu.cn/ubuntu/ noble-security main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.sources
# - name: Add missing GPG keys for NJU mirror # - name: Add missing GPG keys for NJU mirror
# run: | # run: |