Ubuntu 16.04 有线连接未被检测到

Ubuntu 16.04 有线连接未被检测到

过去两天我一直无法连接到互联网,我看了很多类似的帖子,但没有一个对我有用。我对 ubuntu 很陌生,这很烦人,请帮忙

我尝试过的方法:
尝试重启网络管理器,但失败了

sudo restart network-manager

restart: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

然后我查看了一下ifconfig -aeth0 根本没被识别,输出是

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1615 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1615 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:147010 (147.0 KB)  TX bytes:147010 (147.0 KB)

wlp6s0    Link encap:Ethernet  HWaddr 4c:bb:58:2b:14:35  
          inet addr:192.168.43.254  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::4838:90b3:dca2:86ce/64 Scope:Link
          inet6 addr: 2405:204:531e:115a:7e2e:5204:7145:83ae/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9235 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9918 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6611860 (6.6 MB)  TX bytes:1935577 (1.9 MB)

/etc/network/interfaces我还尝试从此处更改文件:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

更改为:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

似乎没有任何效果。请帮忙。

输出自lspci

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
06:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

答案1

如果您的以太网卡插入主板,ifconfig -a即使没有插入电缆,输入也会显示 eth0。

因此,请检查您的以太网卡是否已牢固插入主板,并查看主板是否识别它。如果没有,请拔下以太网卡并重新插入。

答案2

看到这篇文章并下载了驱动程序..我按照这些步骤操作后恢复了连接..仍然不知道出了什么问题..

首先下载了这些文件:

http://mirrors.kernel.org/ubuntu/pool/universe/r/r8168/r8168-dkms_8.040.00-1_all.deb http://mirrors.kernel.org/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-2ubuntu6_all.deb

sudo dpkg -i r8168-dkms_8.040.00-1_all.deb dkms_2.2.0.3-2ubuntu6_all.deb

sudo modprobe -r r8169

sudo modprobe r8169

瞧,我恢复了连接。谢谢大家的帮助......

答案3

托管连接中存在错误,这可能是导致此问题的原因。将此文件移至其他位置或将其删除:

/usr/lib/NetworkManager/conf.d/10-globally-managed-devices

以下是错误描述:

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1638842

相关内容