- When using the docker container, sometimes there is no vim installed in it. When you type the vim command, the prompt says: vim: command not found, you need to install vim at this time, 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 function 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 version can be obtained. package.
- After the update is complete, type the command: apt-get install vim command.
Install vi command in docker container
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326618063&siteId=291194637
Recommended
Ranking