1、安装vim
sudo apt install vim
2、更改镜像源
cd /etc/apt
ls
sudo cp sources.list sources.list.backup
ls
sudo chmod 777 sources.list
sudo echo '' > sources.list
vim sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade
|