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
Native js realizes the carousel effect (seamless ...
This article uses examples to illustrate the use ...
Preface: The storage engine is the core of the da...
Table of contents Components - Timeline Custom no...
After this roll call device starts calling the ro...
Each web page has an address, identified by a URL...
MySQL can be connected not only through the netwo...
Vertical Split Vertical splitting refers to the s...
Table of contents 1. Introduce cases 2. View the ...
1. Refer to the official website to install docke...
Table of contents 1. How to switch 2. Dynamically...
RPM package management A packaging and installati...
Table of contents Written in front Precautions De...
To back up multiple databases, you can use the fo...
Table of contents Spring Boot Docker spring-boot-...