Centos7 下Docker容器安装vim

2023-09-25 16:42:58 6273

解决方案

1.更新源

image.png

如果出现报错:

Some index files failed to download, they have been ignored, or old ones used instead.”

只需要更改一下sources.list文件即可,如下

image.png


添加文件内容
deb http://www.landui.com/ubuntu/ xenial main restricted universe multiverse

deb http://www.landui.com/ubuntu/ xenial-security main restricted universe multiverse

deb http://www.landui.com/ubuntu/ xenial-updates main restricted universe multiverse

deb http://www.landui.com/ubuntu/ xenial-proposed main restricted universe multiverse

deb http://www.landui.com/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://www.landui.com/ubuntu/ xenial main restricted universe multiverse

deb-src http://www.landui.com/ubuntu/ xenial-security main restricted universe multiverse

deb-src http://www.landui.com/ubuntu/ xenial-updates main restricted universe multiverse

deb-src http://www.landui.com/ubuntu/ xenial-proposed main restricted universe multiverse

deb-src http://www.landui.com/ubuntu/ xenial-backports main restricted universe multiverse


2.安装vim

image.png

接下来就可以用vim了。

提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: