Centos7 下Docker容器安装vim

[复制链接] |主动推送
查看42 | 回复0 | 2024-9-11 14:58:57 | 显示全部楼层 |阅读模式
解决方案
1.更新源
110312pphwy29y29np94lw.png


如果出现报错:
Some index files failed to download, they have been ignored, or old ones used instead.”
只需要更改一下sources.list文件即可,如下


110312f3qv3gvnmg3e6d33.png
添加文件内容deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
2.安装vim


110312osaael9hlzbu41q5.png


接下来就可以用vim了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则