加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

腾讯云-Linux-docker容器中安装vim 、telnet、ifconfig, ping命

发布时间:2020-12-16 08:58:21 所属栏目:asp.Net 来源:网络整理
导读:转载自:https://cloud.tencent.com/developer/article/1401076 ? 在使用docker容器时,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示: ? ? ? ? Reading package

转载自:https://cloud.tencent.com/developer/article/1401076

?

在使用docker容器时,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示:

? ? ? ? Reading package lists... Done ? ? ? ? Building dependency tree ? ? ?? ? ? ? ? Reading state information... Done ? ? ? ? E: Unable to locate package vim

? ? ? ? 这时候需要敲:apt-get update

这个命令的作用是:同步?/etc/apt/sources.list?和?/etc/apt/sources.list.d?中列出的源的索引,这样才能获取到最新的软件包。

? ? ? ? 等更新完毕以后再敲命令:

?apt-get install vim ? ? ? 安装vim

?apt-get install ?telnet ??安装telnet

apt-get install ?net-tools ??安装ifconfig

apt install iputils-ping?? 安装ping

(adsbygoogle = window.adsbygoogle || []).push({});

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读