- Just record your own installation process. If you want to install vim editor under Linux, you can refer to the following steps.
First of all vi command, see if there is vim in your environment, mine must not be there.
- Then, enter the command (sudo apt-get install vim-gtk), you can skip the second step directly.
But because I encountered a problem with input, there was an error that the vim-gtk package could not be located in Ubuntu. At this time
, the package will be upgraded next. Wait patiently...wait...
- Next, follow the two figures below to execute.
Supplement: My friend said that there was an error following this installation:
Let’s talk about it, during the installation process, it is best not to shut down or interrupt the VM. The above error is because the previous process occupies resources, enter the following command:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
Kill the process and reinstall it