1、修改国内镜像
heihouzi@ubuntu100:~$ su - root
passwd ******
root@ubuntu100:~# cd /etc/apt/
root@ubuntu100:/etc/apt# cp sources.list sources.list.bb
root@ubuntu100:/etc/apt# vi sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
2、软件升级
root@ubuntu100:~# apt update
root@ubuntu100:~# apt upgrade
root@ubuntu100:~# apt-get update
root@ubuntu100:~# apt-get upgrade
3、安装 vim 编辑器
root@ubuntu100:~# apt install vim