Ubuntu 16.04 全新安装,无互联网(以太网)

Ubuntu 16.04 全新安装,无互联网(以太网)

我在 Windows 10 旁边安装了全新的 Ubuntu。在 Windows 中,我可以通过以太网访问互联网。在 Ubuntu 中,我可以看到有线连接 1,但没有互联网访问。我位于本地网络后面。

Ubuntu 16.04.6 LTS

以下是一些命令的结果:

是否配置

sudo lshw -C 网络

sudo gedit /etc/NetworkManager/NetworkManager.conf

sudo gedit /etc/network/interfaces

我尝试将接口设置为:

auto enp0s31f6
iface enp0s31f6 inet auto

然后重新启动网络管理器/重启,但不起作用。事实上,一旦重新启动,enp0s31f6 接口就不会显示在 ifconfig 中。任何帮助都非常感谢,谢谢。

编辑:通过 USB 网络共享,正常网络连接

尝试了 sudo apt-get update、sudo apt-get upgrade,仍然没有通过以太网连接互联网

编辑2:

输出:sudo dhclient -d enp0s31f6

Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp0s31f6/64:00:6a:90:e0:92
Sending on   LPF/enp0s31f6/64:00:6a:90:e0:92
Sending on   Socket/fallback
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 3 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 7 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 11 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 17 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 18 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 11 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 20 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 19 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 21 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 11 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 17 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 9 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 14 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 8 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 10 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 11 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 11 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 19 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 17 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 19 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 9 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 11 (xid=0xb123492d)
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 8 (xid=0xb123492d)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

EDIT3:以下输出: dpkg -l *dnsmasq*

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
+++-==========================-==================-==================-=========================================================
un  dnsmasq                    <none>             <none>             (no description available)
ii  dnsmasq-base               2.75-1ubuntu0.16.0 amd64              Small caching DNS proxy and DHCP/TFTP server

编辑4:

ping 8.8.8.8

连接:网络不可达

ping www.ebay.com

ping:未知主机 www.ebay.com 另外,这是我现在在网络部分看到的内容(我暂时使用网络共享来访问互联网)

在此处输入图片描述

相关内容