One, Su root prompt authentication failure
- Su Root hints authentication failed
- Ubuntu root is disabled by default and does not allow root login, so set the root password first. Execute: sudo passwd root then enter the password and root password, repeat the password. Restart it and you can log in with root.
- sudo passwd
Password: <---Enter the password for the user at the time of installation
Enter New UNIX Password: <---The new root user password
Retype new UNIX Password: <---Repeat the root user password
passwd: Password has been successfully updated
Second, Apt-get update failure reason
1. Gateway vi/etc/resolv.conf may not be configured
NameServer 119.29.29.29
NameServer 182.254.116.116
Third, configure the static IP
1. Sudo vim/etc/network/interfaces
Modify the following sections:
Auto Eth0
Iface eth0 inet Static
Address 192.168.0.117
Gateway 192.168.0.1 #这个地址你要确认下 Gateways are not this address
Netmask 255.255.255.0
Network 192.168.0.0
Broadcast 192.168.0.255
Four, the use of the original source download speed is very slow, you can use the source of Tsinghua University, Ali
1.sudo vim/etc/apt/source.list
# deb Cdrom:[ubuntu 16.04 LTS _xenial xerus_-Release amd64 (20160420.1)]/xenial main RESTRICTEDDEB-SRC http://archive.u Buntu.com/ubuntu xenial main restricted #Added by Software-propertiesdeb http://mirrors.aliyun.com/ubuntu/xenial Main RESTRICTEDDEB-SRC http://mirrors.aliyun.com/ubuntu/xenial main restricted Multiverse universe #Added by Software-propertiesdeb http://mirrors.aliyun.com/ubuntu/xenial-updates main RESTRICTEDDEB-SRC/http Mirrors.aliyun.com/ubuntu/xenial-updates main restricted Multiverse Universe #Added by Software-propertiesdeb/HTTP/ Mirrors.aliyun.com/ubuntu/xenial universedeb http://mirrors.aliyun.com/ubuntu/xenial-updates universedeb/http Mirrors.aliyun.com/ubuntu/xenial multiversedeb http://mirrors.aliyun.com/ubuntu/xenial-updates multiversedeb http ://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ Ubuntu/xenial-backports main restricted universe Multiverse #Added by Software-propertieSdeb http://archive.canonical.com/ubuntu xenial partnerdeb-src http://archive.canonical.com/ubuntu xenial partnerdeb Http://mirrors.aliyun.com/ubuntu/xenial-security Main RESTRICTEDDEB-SRC http://mirrors.aliyun.com/ubuntu/ Xenial-security main restricted Multiverse Universe #Added by Software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ Xenial-security Universedeb http://mirrors.aliyun.com/ubuntu/xenial-security Multiverse
Ubuntu Question Answer Collection