ubuntu24.04部署
·
ubuntu24.04部署
替换国内源:
sudo tee -a /etc/apt/sources.list << EOF
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-security main restricted universe multiverse
EOF
# 更新源缓存
sudo apt update
# 如果是25.04,需要将noble替换成plucky,并且sources.list放在/etc/apt/sources.list.d目录下
# 安装ssh服务(忘记装了,所以需要手工安装)
sudo apt install ssh
sudo systemctl start ssh
sudo systemctl enable ssh
安装pip3,pipx
apt install python3-pip
apt install pipx
更多推荐
所有评论(0)