安装net-tools
sudo apt install net-tools
安装vim
sudo apt install vim
换源
备份旧源
cd /etc/apt
sudo mv sources.list sources.list.bak
写新源
sudo vim sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
参考
ubuntu20.04换源
|