Skip to content

Instantly share code, notes, and snippets.

@lhlyu
Created February 20, 2023 14:47
Show Gist options
  • Select an option

  • Save lhlyu/cb4ef1de3f5368afe7f29beaa3e5bff7 to your computer and use it in GitHub Desktop.

Select an option

Save lhlyu/cb4ef1de3f5368afe7f29beaa3e5bff7 to your computer and use it in GitHub Desktop.
使用阿里云镜像在docker容器内添加vim命令
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-src 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-src 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-src 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
echo "deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib">>/etc/apt/sources.list
apt-get update
apt-get install -y vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment