双启动 Ubuntu 14.04 和 16.04,无法连接有线或无线连接,eth0 无法识别

双启动 Ubuntu 14.04 和 16.04,无法连接有线或无线连接,eth0 无法识别

我最近让我的 Intel NUC7I3BNH 机器实现了双启动,最初使用的是 Ubuntu 16.04,最近又添加了 Ubuntu 14.04。一切都按预期运行,只是我尝试了几十种解决方案,但就是无法使我的有线或无线连接正常工作。这听起来像是驱动程序问题,因为这是输出ifconig -a

    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:16 errors:0 dropped:0 overruns:0 frame:0
                TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1
                RX bytes:1184 (1.1 KB) TX bytes:1184 (1.1 KB)

我说这可能是驱动程序问题,因为eth0根本没有出现,但我可能错了,因为我对这类事情不太熟悉。其他一些信息:

  • Ubuntu 16.04 安装后运行完美(有线和无线连接均按预期运行)
  • 互联网连接问题出在 Ubuntu 14.04 中
  • 在“软件和更新 --> 附加驱动程序”下,系统显示“没有可用的附加驱动程序”。这是因为“软件和更新 --> Ubuntu 软件”选项卡也识别出有“可从 CD-ROM/DVD 安装”选项,因为我首先提供了安装 Ubuntu 14.04 时使用的 .iso 文件。

编辑

sudo lshw -C network这是我在16.04 下获得的输出:

*-network
    description: Intel Corporation
    product: Intel Corporation
    physical id: 0
    bus info: pci@0000:3a:00.0
    logical name: wlp58s0
    version: 78
    serial: f8:63:3f:0f:de:03
    width: 64 bits
    clock: 33MHz
    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
    configuration: broadcast=yes driver=iwlwifi driverversion=4.10.0-35-generic firmware=22.391740.0 ip=192.168.1.173 latency=0 link=yes multicast=yes wireless=IEEE 802.11
    resources: irq:128 memory:dc100000-dc101fff
*-network
    description: Ethernet interface
    product: Ethernet Connection (4) I219-V
    vendor: Intel Corporation
    physical id: 1f.6
    bus info: pci@0000:00:1f.6
    logical name: eno1
    version: 21
    serial: f4:4d:30:6b:13:dd
    capacity: 1Gbit/s
    width: 32 bits
    clock: 33MHz
    capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
    configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.1-4 latency=0 link=no multicast=yes port=twisted pair
    resources: irq:125 memory:dc200000-dc21ffff

modinfo iwlwifi | head -n20这是我在16.04 下获得的输出:

filename:      /lib/modules/4.10.0-35-generic/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
license:       GPL
author:        Copyright(c) 2003- 2015 Intel Corporation <[email protected]>
description:   Intel(R) Wireless WiFi driver for Linux
firmware:      iwlwifi-100-5.ucode
firmware:      iwlwifi-100-5.ucode
firmware:      iwlwifi-135-6.ucode
firmware:      iwlwifi-105-6.ucode
firmware:      iwlwifi-2030-6.ucode
firmware:      iwlwifi-2000-6.ucode
firmware:      iwlwifi-5150-2.ucode
firmware:      iwlwifi-5000-5.ucode
firmware:      iwlwifi-6000g2b-6.ucode
firmware:      iwlwifi-6000g2a-6.ucode
firmware:      iwlwifi-6050-5.ucode
firmware:      iwlwifi-6000-6.ucode
firmware:      iwlwifi-7265D-26.ucode
firmware:      iwlwifi-7265-17.ucode
firmware:      iwlwifi-3168-26.ucode
firmware:      iwlwifi-3160-17.ucode

sudo lshw -C network这是我在14.04 下获得的输出:

*-network UNCLAIMED
    description: Network Controller
    product: Intel Corporation
    vendor: Intel Corporation
    physical id: 0
    bus info: pci@0000:3a:00.0
    version: 78
    width: 64 bits
    clock: 33MHz
    capabilities: pm msi pciexpress cap_list
    configuration: latency=0
    resources: memory:dc100000-dc101fff
*-network UNCLAIMED
    description: Ethernet controller
    product: Intel Corporation
    vendor: Intel Corporation
    physical id: 1f.6
    bus info: pci@0000:00:1f.6
    version: 21
    width: 32 bits
    clock: 33MHz
    capabilities: pm msi bus_master cap_list
    configuration: latency=0
    resources: memory:dc200000-dc21ffff

modinfo iwlwifi | head -n20这是我在14.04 下获得的输出:

filename:      /lib/modules/4.4.0-31-generic/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
license:       GPL
author:        Copyright(c) 2003- 2015 Intel Corporation <[email protected]>
description:   Intel(R) Wireless WiFi driver for Linux
firmware:      iwlwifi-100-5.ucode
firmware:      iwlwifi-100-5.ucode
firmware:      iwlwifi-135-6.ucode
firmware:      iwlwifi-105-6.ucode
firmware:      iwlwifi-2030-6.ucode
firmware:      iwlwifi-2000-6.ucode
firmware:      iwlwifi-5150-2.ucode
firmware:      iwlwifi-5000-5.ucode
firmware:      iwlwifi-6000g2b-6.ucode
firmware:      iwlwifi-6000g2a-6.ucode
firmware:      iwlwifi-6050-5.ucode
firmware:      iwlwifi-6000-4.ucode
firmware:      iwlwifi-7265D-13.ucode
firmware:      iwlwifi-7265-13.ucode
firmware:      iwlwifi-3160-13.ucode
firmware:      iwlwifi-7260-13.ucode

答案1

您的有线网络问题:

如果您在全新安装 14.04.3 时遇到此问题,那是因为 Ubuntu 14.04.3 LTS 安装内核不支持 Intel i219V 千兆控制器。

选项:

A) 您可以按照说明构建自己的驱动程序这里。

B)您可以安装从以下网址下载的预置驱动程序这里

将下载的驱动程序放在闪存驱动器上,以便您在启动 14.04 时可以访问它,然后使用以下命令将其复制到适当的位置:

sudo cp /path/to/flashdrive/e1000e.ko /lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/e1000e

下一个命令sudo depmod -a

笔记:

depmod creates a list of module dependencies by reading each module under /lib/modules/version and determining what
       symbols it exports and what symbols it needs. By default, this list is written to modules.dep, and a binary hashed
       version named modules.dep.bin, in the same directory. If filenames are given on the command line, only those modules are
       examined (which is rarely useful unless all modules are listed).  depmod also creates a list of symbols provided by
       modules in the file named modules.symbols and its binary hashed version, modules.symbols.bin. Finally, depmod will output
       a file named modules.devname if modules supply special device names (devname) that should be populated in /dev on boot
       (by a utility such as udev).

重新启动 14.04 并使用命令ifconfig或屏幕右上角标题栏上的选项确认 NIC 已启动,如下所示:

连接信息

现在您已验证了连接,您可以像往常一样使用以下命令更新系统:

sudo apt-get update
sudo apt-get upgrade

笔记:我没有您的硬件,也没有在 14.04 下安装内核 4.4.0-31-generic,因此无法测试,因为两者都需要。它应该在全新安装的 14.04.3 上按宣传的那样工作

更多有用信息:https://www.intel.com/content/www/us/en/support/network-and-io/ethernet-products/000005480.html

资料来源:

http://faq.aslab.com/support/kb/231.html

以太网在 ubuntu 14.04 LTS 上不工作

相关内容