2017-9-24-linux Migration: Ubuntu Server 16.04 does not connect & cannot apt-get update resolution

Source: Internet
Author: User
Tags domain name server vm virtualbox

no Internet access!!! Can't bear it.

Phenomenon: Ifconfig

No hair, want to find the IP can not be found.

Ifconfig–a

You can list all the network card devices, confirm that the VM VirtualBox NIC is on the right, has been given to the virtual machine.

Edit the/etc/network/interfaces content to the following:

And then execute

sudo ifup eth0

You can see the problem solved satisfactorily!!

Apt-get update cannot prompt "Failed to fetch" error

Fetch: Fetch, pick up, arrive

At first I thought it was the wrong source address.

The source is to differentiate the version of, well, specialized to find the source of the 16.04 modified/etc/apt/sources.list, but regrets did not solve the problem.

Check the internet for "Failed to fetch" related issues, aware that it may be because DNS is not configured for problems. See/etc/resolv.conf, there's really nothing.

Dns:dns (domain name server) is the server that is transforming the domain name and the corresponding IP address. DNS holds a domain name and the corresponding IP address (IP addresses) table to resolve the domain name of the message.

Because I use the network of telecommunications, find the local telecommunications DNS, as if Win7 cmd directly ipconfig-all can be.

DNS servers 192.168.0.1, as if it were my wireless route.

Edit/etc/resolv.conf:

There is still a problem after editing. "Failed to fetch", try Apt-get install or not, anxious.

。。

Have time tomorrow try WinSCP pass the other source to/etc/apt/sources.list try, go to sleep. Maybe it's good to open the VM tomorrow.

sudo shutdown-p now

2017-9-24-linux Migration: Ubuntu Server 16.04 does not connect & cannot apt-get update resolution

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.