1. 使用 apt-get 命令
示例:root@2758cd2745e6:~# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vim
2.执行 apt-get update 命令
示例3:root@2758cd2745e6:~# apt-get update
3.再次执行 apt-get 命令就可以进行安装了
示例:root@2758cd2745e6:~# apt-get install vim