咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

Centos7 下Docker容器安装vim

2023-09-25 16:42:58 8890次

解决方案

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了。

首页
最新活动
个人中心