docker容器安装vim
1.apt-get install vim命令时报错
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim
2.配置国内镜像源
mv /etc/apt/sources.list /etc/apt/sources.list.bak echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
3.更新安装源
apt-get update
4.测试
apt-get install -y vim