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
Preface I have installed MySQL 5.6 before. Three ...
Table of contents Skeleton screen use Vue archite...
When MySQL performs DDL operations such as alter ...
I have recently been following the CSS Animation ...
1. Command Introduction nl (Number of Lines) adds...
Using fonts on the Web is both a fundamental skill...
A jQuery plugin every day - jQuery plugin to impl...
Table of contents 1. Basic concepts and basic com...
CSS attribute selectors are amazing. They can hel...
The CSS implementation code for setting the scrol...
I have been researching Linux recently and tried ...
1. Create the MySQL database nacos_config 2. Sele...
In actual development or production environments,...
This article shares the specific code of jQuery t...
Zen Coding It is a text editor plugin. In a text ...