Ubuntu 22.04 上不显示 Wifi 选项

Ubuntu 22.04 上不显示 Wifi 选项

我正在使用带有 ryzen5 5625u 的 pavilion。我已经尝试过了这个答案并根据另一个答案禁用了安全启动。我也运行了,sudo systemctl restart network-manager但它说重启失败。我还去了软件和更新以安装其他驱动程序,但没有其他驱动程序可以安装。
它说没有 wifi 适配器
输出 cat /etc/modprobe.d/iwlwifi.conf
cat 命令的输出

这是输出ip a # check if you can see wireless card

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 42:be:a8:da:f2:40 brd ff:ff:ff:ff:ff:ff
    inet 192.168.42.182/24 brd 192.168.42.255 scope global dynamic noprefixroute usb0
       valid_lft 3593sec preferred_lft 3593sec
    inet6 fe80::2ace:eaf0:c3ba:8cf9/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

和输出lspci -knn | grep Network -A3 # This shows card name and driver, if in use.

libkmod: ERROR ../libkmod/libkmod-config.c:712 kmod_config_parse: /etc/modprobe.d/iwlwifi.conf line 8: ignoring bad line starting with '“options'
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
    DeviceName: Realtek Wireless LAN + BT
    Subsystem: Hewlett-Packard Company Device [103c:88e3]
02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller 980 [144d:a809]

编辑1 我的 ifconfig 输出是

$ifconfig
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  (Local Loopback)
        RX packets 488  bytes 60829 (60.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 488  bytes 60829 (60.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx200db01052d8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.12  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::45dc:7ce4:395e:7bf1  prefixlen 64  scopeid 0x20<link>
        ether 20:0d:b0:10:52:d8  txqueuelen 1000  (Ethernet)
        RX packets 12242  bytes 14993668 (14.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9344  bytes 1371773 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ifup 和 ifdown 的输出是

ifup: no interface(s) specified
ifup: Use --help for help

答案1

我不确定这是否有帮助,但是我使用的是 22.04.1 服务器。我使用的是内置 Wi-Fi 卡,并且已连接。但是在 GUI 中,根据图标和下拉菜单,它没有显示我正在使用 Wi-Fi。这是我的界面的样子:

$ ifconfig
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:b1:0a:f1:5e  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

enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 38:60:77:83:9c:d0  txqueuelen 1000  (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

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  (Local Loopback)
        RX packets 199  bytes 18849 (18.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 199  bytes 18849 (18.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.27  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::76de:2bff:fe3c:bab3  prefixlen 64  scopeid 0x20<link>
        ether 74:de:2b:3c:ba:b3  txqueuelen 1000  (Ethernet)
        RX packets 1532  bytes 814657 (814.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 957  bytes 167662 (167.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

接口 wlp2s0 是我的 wifi 卡。也许可以使用 $ ifdown 和 $ ifup 来查看是否适合您的情况。(如果您还没有安装 net-tools,请安装 sudo apt install)

希望这可以帮助。

相关内容