Reference URL for installing virtual machines on win10: https://jingyan.baidu.com/article/c843ea0bdacad477931e4a27.html
Solve networking problems:
one. Click the VM virtual machine edit button and select the virtual network editor. The following interface appears. Click in order to finally restore the default settings.
two. Right-click the virtual machine location. Select the network adapter as NAT mode. There is a net!
1. It appears that the domain name "security.ubuntu.com" cannot be resolved
My reason:
The virtual machine ubuntu is not connected to the Internet. Another problem occurred after networking in accordance with 1.
2. E: Cannot lock the directory /var/lib/apt/lists/
Solution: (The reason is temporarily unclear, and there will be time to add the reason in the future)
$ sudo rm /var/lib/apt/lists/lock