18 lines
1.1 KiB
Bash
18 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# 下载必须依赖
|
|
bash -c "cat << EOF > /etc/apt/sources.list && apt update
|
|
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
|
|
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
|
|
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
|
|
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
|
|
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
|
|
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
|
|
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
|
|
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
|
|
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
|
|
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
|
|
EOF"
|
|
apt install sudo vim git wget screen openjdk-17-jdk nginx language-pack-zh-hans gettext -y
|
|
|
|
update-locale LANG=zh_CN.UTF-8 |