Ubuntu 20.04.1 LTS 无法访问 Wifi

Ubuntu 20.04.1 LTS 无法访问 Wifi

我最近在笔记本电脑上安装了 Ubuntu 20.04.1 LTS,每次打开笔记本电脑时,Wifi 选项都被禁用。
为了启用它,我不得不运行以下命令并重新启动笔记本电脑(每次都是这样)。

sudo service network-manager restart

有什么办法,可以让 Ubuntu 自动检测 Wifi,而无需重新启动network-manager

我已禁用安全启动,
安装 Ubuntu 时无法连接到 Wifi。
我正在双启动 Ubuntu 和 Windows 10

如果你们知道这个问题的永久解决办法,请告诉我,

cat /etc/network/interfaces
输出:

cat: /etc/network/interfaces: No such file or directory

cat /etc/netplan/*.yaml
输出:

network:
  renderer: NetworkManager
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManage

sudo lshw -C network
输出:

*-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 15
       serial: b0:6e:bf:ab:d5:4e
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII
       resources: irq:16 ioport:d000(size=256) memory:df304000-df304fff memory:df300000-df303fff
  *-network
       description: Wireless interface
       product: Wireless 8265 / 8275
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: wlp4s0
       version: 78
       serial: 00:e1:8c:42:0f:18
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-42-generic firmware=36.77d01142.0 ip=192.168.1.4 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:132 memory:df100000-df101fff

lshw
输出:

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 15
       serial: b0:6e:bf:ab:d5:4e
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII
       resources: irq:16 ioport:d000(size=256) memory:df304000-df304fff memory:df300000-df303fff
  *-network UNCLAIMED
       description: Network controller
       product: Wireless 8265 / 8275
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       version: 78
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:df100000-df101fff

答案1

编辑您的 /etc/netplan/*.yaml... 保持完全相同的缩进、间距和无制表符...

sudo -H gedit /etc/netplan/*.yaml# 使用正确的 .yaml 文件名

# Let NetworkManager manage all devices on this system
#
network:
  version: 2
  renderer: NetworkManager

sudo netplan generate

sudo netplan apply

reboot

然后转到顶部面板右侧的 NetworkManager 小程序并选择您的 wifi 网络。

更新#1:

  • 启动进入 Windows
  • 打开电源控制面板
  • 选择change what the power buttons do
  • 选择change options that are unavailable
  • 取消选中fast startup
  • 关闭电源控制面板
  • 打开管理命令提示符窗口
  • 类型powercfg /h off
  • 类型chkdsk /f c:
  • 同意在下次重启时运行 chkdsk
  • 类型chkdsk /f x:(将“x”替换为其他驱动器号可见的NTFS 分区)
  • 重新启动 Windows 以让 chkdsk 在驱动器 C 上运行:

相关内容