- 下載 ubuntu-base 基礎包
https://mirrors.ustc.edu.cn/ubuntu-cdimage/ubuntu-base/releases/20.04.5/release/
- 解壓到目標映象分割槽
tar zxpf xxx.tar.gz
cp apt source.list 到 etc/apt/source.listecho hostname >/etc/hostname
echo nameserver ip >/etc/resolv.conf
- 進入 chroot 安裝必備工具
apt install vim openssh-server netplan.io net-tools iputils-ping sudo dhcpcd5
passwd rootuseradd user..passwd user..
usermod -aG sudo