1
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
昔念
2026-01-30 00:15:44 +08:00
parent 6ba79cf83a
commit ff9984f4a9

View File

@@ -31,7 +31,21 @@ steps:
# - env | grep -i ssh || echo "⚠️ 无SSH相关环境变量"
# 系统初始化
- apt update -y
# 1. 备份原有软件源文件防止出错可恢复
- sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 2. 清空原有内容写入阿里云Debian bookworm镜像源直接覆盖无需手动编辑
- |
sudo cat > /etc/apt/sources.list << EOF
# 阿里云Debian 12 (bookworm) 镜像源
deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware
deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware
EOF
# 3. 更新软件源缓存使新源生效
- sudo apt update
- apt install -y --no-install-recommends curl git openssh-client openssl libssl-dev
# # 清理旧SSH文件严格配置权限