ubuntu
apt advanced package tool installs a software that depends on other software will be downloaded automatically.
Software Source: Software Repository
Change the software source
cd /etc/apt
Backup source.list file
cp source.list source.list.bak
vi sources.list
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb-src http: //mirrors.aliyun .com / ubuntu / xenial-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http: //mirrors.aliyun .com / ubuntu / xenial-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http: //mirrors.aliyun.com / ubuntu / xenial-proposed main restricted universe multiverse
apt-get update
apt-get upgrade upgrade apt
apt-get insall xxx
apt-cache search xxx Query whether there is xxx software on the software source
apt-get remove xxx
apt-get purge xxx
apt-get update
apt-get upgrade
dpkg -l | grep xxx Check whether the xxx software has been installed on the machine
After using it, I suddenly found that I can't access the Internet.
After some tossing, I found that the dns file was empty
---------------------- The following is not necessarily correct, do not refer to --- start
By modifying:
sudo vi /etc/resolvconf/resolv.conf.d/base (this file is empty by default)
Insert in it:
nameserver The host where the virtual machine is located ip192.168.0.100
If there are multiple DNS, one per line
Modify and save, then execute
sudo resolvconf -u
Looking at /etc/resolv.conf again, there are two more lines at the bottom:
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver host ip192 where the virtual machine is located .168.0.100
You can see that our settings have been added, and then ping a domain name, it can be resolved at that time without restarting.
-------------------------------------- The above is not necessarily correct, do not refer to--- end
apt-get install ubuntu-desktop Install desktop programs
concept:
host host
vm virtual machine
ubuntu client
On the Virtual Machines page, select the Install Virtual Machine Enhancements procedure
Add shared folder