刚刚在干净的机器上安装了 CentOS 8(带 GUI)。
访问“设置”>“Wi-Fi”时,我收到问号:
未找到 Wi-Fi 适配器 确保已插入并打开 Wi-Fi 适配器
不过蓝牙没啥问题。
在这台机器上,我无法访问以太网连接,但可以插入 USB。
我对该用户有 sudo 访问权限。
编辑1
我有在这里访问将以下软件包下载到 U 盘:
• NetworkManager-1.22.8-5.el8_2.x86_64.rpm
• NetworkManager-tui-1.22.8-5.el8_2.x86_64.rpm
• NetworkManager-libnm-1.22.8-5.el8_2.i686.rpm
• NetworkManager-libnm-1.22.8-5.el8_2.x86_64.rpm
• NetworkManager-wifi-1.22.8-5.el8_2.x86_64.rpm
将目录更改为 USB 记忆棒,并尝试使用以下命令安装其中一个软件包时
rpm -Uhv $PackageName
我总是遇到失败的依赖错误。
例如。安装时NetworkManager-tui-1.22.8-5.el8_2.x86_64.rpm
,我发现我需要以下依赖项:
网络管理器
网络管理器-libnm
如果我尝试安装上述任一版本,也会存在依赖关系,无法完成安装。
编辑2
LSSB
Bus 002 Device 004: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 002 Device 003: ID 0a5c:21e1 Broadcom Corp. HP Portable SoftSailing
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05c8:0341 Cheng Uei Precision Industry Co., Ltd (Foxlink)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0951:1665 Kingston Technology Digital DataTraveler SE9 64GB
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
23:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
23:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
24:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n
编辑3
从编辑1,读完后这个答案,我尝试过使用
rpm -ihv $PackageName
代替-Uhv
。而跑步的时候
rpm -ihv NetworkManager-libnm-1.22.8-5.el8_2.x86_64.rpm
我得到以下信息
warning: NetworkManager-libnm-1.22.8-5.el8_2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
file /usr/lib64/libnm.so.0.1.0 from install of NetworkManager-libnm-1:1.22.8-5.el8_2.x86_64 conflicts with file from package NetworkManager-libnm-1:1.22.8-4.el8.x86_64
编辑4
根据 Artem S. Tashkinov 的建议,我重新启用了缓存,转到与 Internet 连接的计算机(它使用 Windows),下载了软件包kmod-wl-6.30.223.271-32.el8.x86_64.rpm和rpmfusion-nonfree-release-8.noarch.rpm,将它们添加到 USB 记忆棒并将其插入 CentOS 计算机。
在那里我已将目录更改为 USB 记忆棒并运行
rpm -ihv rpmfusion-nonfree-release-8.noarch.rpm
这让我得到了以下结果
warning: rpmfusion-nonfree-release-8.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID bdda8475: NOKEY
error: Failed dependencies:
epel-release >= 8 is needed by rpmfusion-nonfree-release-8-0.1.noarch
rpmfusion-free-release >= 8 is needed by rpmfusion-nonfree-release-8-0.1.noarch
然后跑了
rpm -ihv kmod-wl-6.30.223.271-32.el8.x86_64.rpm
检索到以下内容
warning: kmod-wl-6.30.223.271-32.el8.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID bdda8475: NOKEY
error: Failed dependencies:
kmod-wl-4.18.0-147.el8.x86_64 >= 6.30.223.271-32.el8 is needed by kmod-wl-6.30.223.271-32.el8.x86_64
答案1
您有一个 BCM43228 wifi 网络适配器。
您必须启用 RPMFusion Nonfree 存储库并安装kmod-wl
。不幸的是,这需要有效的互联网连接:
rpm -ivh https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
dnf install kmod-wl
答案2
只是按照@RuiFRibeiro 的建议并获得了以太网电缆。有了它,该过程变得更快,因为它需要具有各种依赖项的各种包。
除了Artem S. Tashkinov 的建议,这并没有解决我的问题(dnf install kmod-wl
这个给了我依赖性错误),我跑了
sudo dnf install kernel
然后
sudo yum install NetworkManager-tui
chkconfig NetworkManager on
service NetworkManager start
然后
sudo yum update
最后
sudo yum install akmod-wl
我关注的一些主题:
。如何在 CentOS 7(CLI)(无 GUI)中连接 wifi?
。无线适配器 (WiFi) 无法工作且未显示在设置中
。BROADCOM 无线驱动程序
答案3
[nik@dlin1 ~]$ lspci -k|grep Network
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
03:00.0 Network controller: Intel Corporation **PRO/Wireless 4965** AG or AGN [Kedron] Network Connection (rev 61)
然后我下载iwl4965-firmware.noarch
并安装了它:
sudo dnf install iwl4965-firmware.noarch
为了看到效果,我必须重新启动。