The newly installed Ubuntu16.04 in the virtual machine is not connected to the Internet, which prevents the base Class library software from being updated, and putty, FileZilla and other tools cannot connect to Ubuntu.
First, the network to set up the host machine
Set up a virtual network VMnet8
Set up local Area connection and virtual network VMnet8 share
Second, the installed virtual machine Network is adjusted to NAT mode. Go to Ubuntu system to view the NIC name and adjust the network configuration.
View NIC Name: Ifconfig
This problem will be resolved below because of a problem with the default VI editor, such as turning up and down around the ABCD. So temporarily adjust the network configuration with the Gedit command,
Set up DNS,
Restart Network Service
Test whether the network is available
Third, the source adjustment
1 # deb Cdrom:[ubuntu 16.04 LTS _xenial xerus_-Release amd64 (20160420.1)]/xenial main restricted2 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by Software-properties3 deb http://mirrors.aliyun.com/ubuntu/xenial main restricted4 deb-src http://mirrors.aliyun.com/ubuntu/xenial main restricted Multiverse universe #Added by software-properties< /c0>5 deb http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted6 deb-src http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted Multiverse universe #Added by Software-properties7 Deb Http://mirrors.aliyun.com/ubuntu/xenial Universe8 Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates Universe9 Deb Http://mirrors.aliyun.com/ubuntu/xenial MultiverseTen Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates Multiverse One deb Http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse A deb-src http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe Multiverse #Added by Software-properties - Deb Http://archive.canonical.com/ubuntu xenial partner - deb-src Http://archive.canonical.com/ubuntu xenial partner the deb http://mirrors.aliyun.com/ubuntu/xenial-security main restricted - deb-src http://mirrors.aliyun.com/ubuntu/xenial-security main restricted Multiverse universe #Added by Software-properties - Deb Http://mirrors.aliyun.com/ubuntu/xenial-security Universe -Deb Http://mirrors.aliyun.com/ubuntu/xenial-security Multiverse
View Code
Four, up and down into ABCD problem, uninstall VI reinstall can
Install SSH service, easy to use putty remote login Ubuntu
Other common settings such as virtual machine Ubuntu16.04 network settings