This commit is contained in:
@@ -32,11 +32,11 @@ steps:
|
|||||||
|
|
||||||
# 系统初始化
|
# 系统初始化
|
||||||
# 1. 备份原有软件源文件(防止出错可恢复)
|
# 1. 备份原有软件源文件(防止出错可恢复)
|
||||||
- sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
- cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||||
|
|
||||||
# 2. 清空原有内容,写入阿里云Debian bookworm镜像源(直接覆盖,无需手动编辑)
|
# 2. 清空原有内容,写入阿里云Debian bookworm镜像源(直接覆盖,无需手动编辑)
|
||||||
- |
|
- |
|
||||||
sudo cat > /etc/apt/sources.list << EOF
|
cat > /etc/apt/sources.list << EOF
|
||||||
# 阿里云Debian 12 (bookworm) 镜像源
|
# 阿里云Debian 12 (bookworm) 镜像源
|
||||||
deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
|
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-updates main contrib non-free non-free-firmware
|
||||||
@@ -45,7 +45,7 @@ steps:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# 3. 更新软件源缓存(使新源生效)
|
# 3. 更新软件源缓存(使新源生效)
|
||||||
- sudo apt update
|
- apt update -y
|
||||||
- apt install -y --no-install-recommends curl git openssh-client openssl libssl-dev
|
- apt install -y --no-install-recommends curl git openssh-client openssl libssl-dev
|
||||||
|
|
||||||
# # 清理旧SSH文件,严格配置权限
|
# # 清理旧SSH文件,严格配置权限
|
||||||
|
|||||||
Reference in New Issue
Block a user