Ubuntu Question Answer Collection

Source: Internet
Author: User
Tags nameserver aliyun

One, Su root prompt authentication failure

    1. Su Root hints authentication failed
    2. 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.
    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.