docker容器安装vim
容器里边没有安装vim,于是常规操作,发现无法安装成功(找不到对应的依赖包)
于是我把网友映射的网易的源替换成了阿里的,就能安装成功
以下指令,直接进你的容器,然后copy就行:
mv /etc/apt/sources.list /etc/apt/sources.list.bak
echo "deb http://mirrors.aliyun.com/debian/ buster main non-free contrib" >/etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/debian-security buster/updates main" >>/etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib" >>/etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib" >>/etc/apt/sources.list
apt-get update
apt-get install -y vim