从 16.04 更新至 17.04 后无网络连接

从 16.04 更新至 17.04 后无网络连接

编辑2:DHCP 现在可以工作了,感谢这篇文章:https://askubuntu.com/a/767944/533373

我还没有 wlan/无线。

实际上我有两个问题,我不确定是否应该发两篇帖子。

我将 Ubuntu 从 16.04 更新到 17.04,重启后无法访问互联网。

ifconfig -a显示我的以太网卡(名称从 eth0 更改为 enp0s31f6)但不是我的 wlan。

sudo dhclient enp0s31f6当我在控制台中执行时,我获得了一个 IP 地址并可以访问互联网。

我的问题是:

1. 如何让系统自动启动 dhcp 并获取 IP 地址?

  1. 为什么我的 WLAN 没有出现?我该如何让它再次工作?

编辑:

ifconfig -a
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:36:af:c6:d8  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.121  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::ca5b:76ff:fe81:a829  prefixlen 64  scopeid 0x20<link>
        ether c8:5b:76:81:a8:29  txqueuelen 1000  (Ethernet)
        RX packets 659199  bytes 146849388 (146.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 375507  bytes 56632882 (56.6 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xf1200000-f1220000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Lokale Schleife)
        RX packets 1096  bytes 128548 (128.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1096  bytes 128548 (128.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

这是我手动执行之后sudo dhclient enp0s31f6,之前没有ip,也可以看到wlan不见了。

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



lshw -C network

  *-network UNGEFORDERT     
       Beschreibung: Network controller
       Produkt: Wireless 8260
       Hersteller: Intel Corporation
       Physische ID: 0
       Bus-Informationen: pci@0000:03:00.0
       Version: 3a
       Breite: 64 bits
       Takt: 33MHz
       Fähigkeiten: pm msi pciexpress cap_list
       Konfiguration: latency=0
       Ressourcen: memory:f1000000-f1001fff
  *-network
       Beschreibung: Ethernet interface
       Produkt: Ethernet Connection I219-LM
       Hersteller: Intel Corporation
       Physische ID: 1f.6
       Bus-Informationen: pci@0000:00:1f.6
       Logischer Name: enp0s31f6
       Version: 21
       Seriennummer: c8:5b:76:81:a8:29
       Größe: 1Gbit/s
       Kapazität: 1Gbit/s
       Breite: 32 bits
       Takt: 33MHz
       Fähigkeiten: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       Konfiguration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.12-3 ip=192.168.0.121 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       Ressourcen: irq:125 memory:f1200000-f121ffff
  *-network
       Beschreibung: Ethernet interface
       Physische ID: 2
       Logischer Name: docker0
       Seriennummer: 02:42:36:af:c6:d8
       Fähigkeiten: ethernet physical
       Konfiguration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes

编辑2:似乎是固件有问题,但这对我没什么帮助:(

    Jan 15 11:53:57 pc643 kernel: [   17.954134] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-33.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.954148] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-32.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.955094] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-31.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.955106] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-30.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.955114] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-29.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956268] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956282] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-27.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956289] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-26.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956297] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-25.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956311] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-24.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956320] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-23.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956328] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8000C-22.ucode failed with error -2
    Jan 15 11:53:57 pc643 kernel: [   17.956329] iwlwifi 0000:03:00.0: no suitable firmware found!

答案1

看起来您的网络配置在更新后已损坏。我没有专家解决方案,但这将解决您的问题!请按照以下步骤操作:

1.)创建一个包含以下内容的.sh 文件:

echo <password> | sudo -S dhclient enp0s31f6

2.)在终端执行此操作:

chmod +x <path-to-your-script>/script.sh

3.) 转到“启动应用程序”,添加新的启动项,浏览到脚本文件并添加它。

看看这个截图...

4.) 完成。这将解决您每次登录时的互联网连接问题!


-- 我没有针对你的第一个问题的解决方案。抱歉无法回答。

答案2

我终于明白了:

以太网/DHCP 问题已通过此帖子修复:https://askubuntu.com/a/767944/533373

通过下载此 git repo 解决了无线/WLAN 问题: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

然后将所有文件复制到 /lib/firmware。

我对 Ubuntu 真的很失望,因为我必须手动完成所有这些操作 :(

相关内容