美文网首页
Docker 容器内安装 Vim

Docker 容器内安装 Vim

作者: changhr2013 | 来源:发表于2019-11-07 15:47 被阅读0次
    1. 备份 source.list 文件
    mv /etc/apt/sources.list /etc/apt/sources.list.bak
    
    1. 替换为阿里云国内镜像
    echo "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian-security stretch/updates main" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian-security stretch/updates main" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" >> /etc/apt/sources.list
    
    1. 更新安装源
    apt-get update
    
    1. 安装 Vim
    apt-get install libtinfo5
    apt-get install vim
    

    相关文章

      网友评论

          本文标题:Docker 容器内安装 Vim

          本文链接:https://www.haomeiwen.com/subject/cadvbctx.html