Virtual Machine Network Edit" and check whether DHCP and NAT are connected; then check whether the host service is turned on; finally disable the shared folder. And execute "#apt-get install" in the terminal."/> Virtual Machine Network Edit" and check whether DHCP and NAT are connected; then check whether the host service is turned on; finally disable the shared folder. And execute "#apt-get install" in the terminal.">
Home > Article > Operation and Maintenance > What to do if installation of vim on ubuntu fails
What should I do if the installation of vim on ubuntu fails?
1. Check whether the network is connected. You can ping the network in the terminal (ctrl alt t to open) to see if the network is smooth!
2. Check the virtual machine network configuration, Edit->Virtual Machine Network Edit-> Check whether DHCP and NAT are in link status;
3. Check whether the host service is turned on, mainly About the virtual machine (should start with vmware);
4. Check whether the ISC (sharing) of the virtual machine is turned on. When connecting with NAT, there will be problems if ISC is turned on at the same time (although I don’t know why), so shared folders must be disabled! ! ! ! (Shared files are in the virtual machine configuration-> option)
5. (1) After everything has been checked, you can execute #apt-get install vim in the terminal (it can be successful); ( 2) If unsuccessful, you can remove the original lower version of vi and execute this command (since I have deleted vi when I was searching for solutions online, I don’t know whether the existence of vi will affect vim installation)
Recommended: "linux tutorial"
The above is the detailed content of What to do if installation of vim on ubuntu fails. For more information, please follow other related articles on the PHP Chinese website!