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
I recently encountered a strange thing when debug...
Table of contents background Provide / Inject Ext...
1. Embedded Software Level 1) Bootloader->Boot...
This article mainly introduces the pie chart data...
1. Introduction The EXPLAIN statement provides in...
There are two ways to install MySQL 5.7. One is t...
Bash Initialization Files Interactive login shell...
Table of contents 1. Introduction to Slow Log 2. ...
First, what is database partitioning? I wrote an ...
Table of contents The server runs jupyter noteboo...
1. Create a new object using the Object.create() ...
The Internet is already saturated with articles o...
Recently I want to use native JS to implement som...
As we all know, there are two types of images in c...
Test: Chrome v80.0.3987.122 is normal There are t...