When using a docker container, sometimes vim is not installed in it, and when you type the vim command, it prompts: vim: command not found. At this time, you need to install vim, but when you type the apt-get install vim command, it prompts: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim At this time, you need to type: apt-get update The purpose of this command is to synchronize the indexes of the sources listed in /etc/apt/sources.list and /etc/apt/sources.list.d so that the latest software packages can be obtained. After the update is complete, type the command again: apt-get install vim Just run the command. Supplement: Install vim, telnet, ifconfig, and ping commands in the docker container When using a docker container, sometimes vim is not installed in it, and when you type the vim command, it prompts: vim: command not found. At this time, you need to install vim, but when you type the apt-get install vim command, it prompts: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim At this time, you need to type: apt-get update, The purpose of this command is to synchronize the indexes of the sources listed in /etc/apt/sources.list and /etc/apt/sources.list.d so that the latest software packages can be obtained. After the update is complete, type the command again: The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: CSS example code for implementing sliding doors
>>: Pitfalls based on MySQL default sorting rules
Linux server hosts file configuration The hosts f...
This article mainly introduces the implementation...
1. What is scaffolding? 1. Vue CLI Vue CLI is a c...
Table of contents Overview Code Implementation Su...
Table of contents Create a table View the databas...
When we preview PDF on the page, some files canno...
[Problem description] Our production environment ...
1. Download the CentOS image 1.1 Download website...
<br />I have written two articles before, &q...
We all have files stored on our computers -- dire...
background Today, I was browsing CodePen and saw ...
1. Install dependency packages yum -y install gcc...
We have introduced how to create a waterfall layo...
The players we see on the web pages are nothing m...
1. Introduction to Distributed Storage System Wit...