Lenovo Thinkpad/Ubuntu 22.04 上无法使用 WiFi

Lenovo Thinkpad/Ubuntu 22.04 上无法使用 WiFi

我买了一台新笔记本电脑(Lenovo Thinkpad E15 Gen 4 21EE)并安装了 Ubuntu 22.04.1 LTS。问题是我只能通过以太网电缆访问互联网,因为没有 WiFi 选项。我已经花了几个小时寻找解决方案并安装了大量软件包,但我对 Ubuntu 和硬件/驱动程序并不熟悉,而且什么都没用。如果有人能帮助我,那就太好了,因为我的工作真的需要 WiFi。

提前谢谢了,

保罗

编辑1:的输出lspci -knn | grep Net -A3; rfkill list

03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
    Subsystem: Lenovo Device [17aa:4853]

04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] (rev c1)
    Subsystem: Lenovo Device [17aa:50b1]
0: tpacpi_bluetooth_sw: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

编辑2:该问题已关闭并重定向至类似问题(Realtek 10ec:b852 的网络驱动程序)。我执行了

    sudo apt update
    sudo apt install git bc
    git clone https://github.com/HRex39/rtl8852be.git
    cd rtl8852be
    make
    sudo make install
    sudo modprobe 8852be

输出为

    Hit:1 http://at.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://at.archive.ubuntu.com/ubuntu jammy-updates InRelease
    Hit:3 http://at.archive.ubuntu.com/ubuntu jammy-backports InRelease            
    Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease               
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    All packages are up to date.
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    bc is already the newest version (1.07.1-3build1).
    git is already the newest version (1:2.34.1-1ubuntu1.4).
    The following packages were automatically installed and are no longer required:
      chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
      intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
      libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1
      libcodec2-1.0 libdav1d5 libflite1 libgme0 libgsm1
      libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libmfx1 libmysofa1
      libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4 librubberband2
      libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0
      libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0
      libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
      libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0
      mesa-va-drivers mesa-vdpau-drivers pocketsphinx-en-us va-driver-all
      vdpau-driver-all
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Cloning into 'rtl8852be'...
    remote: Enumerating objects: 1067, done.
    remote: Counting objects: 100% (1067/1067), done.
    remote: Compressing objects: 100% (838/838), done.
    remote: Total 1067 (delta 271), reused 980 (delta 218), pack-reused 0
    Receiving objects: 100% (1067/1067), 4.34 MiB | 2.27 MiB/s, done.
    Resolving deltas: 100% (271/271), done.
    /bin/sh: 1: cc: not found
    (standard_in) 1: syntax error
    #rm -f .symvers.8852be
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-48-generic/build M=/home/paul/rtl8852be  modules
    make[1]: Entering directory '/usr/src/linux-headers-5.15.0-48-generic'
    arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
    make[1]: gcc: No such file or directory
    warning: the compiler differs from the one used to build the kernel
      The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
      You are using:           
    /bin/sh: 1: gcc: not found
    (standard_in) 1: syntax error
      CC [M]  /home/paul/rtl8852be/platform/platform_linux_pc_pci.o
    /bin/sh: 1: gcc: not found
    make[2]: *** [scripts/Makefile.build:297:                 /home/paul/rtl8852be/platform/platform_linux_pc_pci.o] Error 127
    make[1]: *** [Makefile:1884: /home/paul/rtl8852be] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-48-generic'
    make: *** [Makefile:637: modules] Error 2
    /bin/sh: 1: cc: not found
    (standard_in) 1: syntax error
    install -p -m 644 8852be.ko  /lib/modules/5.15.0-48-generic/kernel/drivers/net/wireless/
    install: cannot stat '8852be.ko': No such file or directory
    make: *** [Makefile:646: install] Error 1
    modprobe: FATAL: Module 8852be not found in directory /lib/modules/5.15.0-48-generic

它仍然不起作用:/

相关内容