Ubuntu 24.04无线连接选项消失,仅显示有线网络的问题求助
Hey there, sorry to hear you ran into this wireless hassle after upgrading from 22.04 to 24.04! Let's walk through some practical fixes to get your Wi-Fi option back up and running:
Check if your wireless adapter is recognized by the system
Open a terminal and run either of these commands to confirm your hardware is detected:lspci | grep Network # 若是USB无线网卡,用这个命令 lsusb | grep WirelessIf you see your wireless adapter listed here, the hardware is being picked up—we just need to sort out software or driver issues. If nothing shows up, your adapter might not be recognized, and we'll need to hunt down specific drivers for your model.
Verify NetworkManager service status
NetworkManager handles most network connections in Ubuntu. Let's make sure it's running properly:systemctl status NetworkManagerIf it's not marked as "active (running)", restart the service with:
sudo systemctl restart NetworkManagerAfter this, check the Settings > Network menu again to see if Wi-Fi appears.
Check for hardware/software blocks on wireless
Some laptops have physical Wi-Fi switches (usually on the side or front) or Fn key combinations (like Fn+F2) that disable wireless. First double-check that hardware switch is turned on.Then use this command to check for software-level blocks:
rfkill listIf you see "wlan" marked as "blocked", unblock it with:
sudo rfkill unblock wlanReinstall or update wireless drivers
Many wireless adapters rely on proprietary drivers that might have gotten messed up during the upgrade. Here's how to fix that:- Open "Software & Updates" from the applications menu
- Switch to the "Additional Drivers" tab
- Look for any listed drivers for your wireless adapter, select the recommended one, click "Apply Changes", then restart your computer.
If you prefer the terminal, you can install common drivers (example for Realtek adapters):
sudo apt install rtl8821ce-dkmsJust replace the package name with the one matching your adapter model.
Reset NetworkManager configuration
Sometimes upgrade processes can corrupt network config files. Let's reset them:
First back up the original config:sudo cp /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf.bakThen edit the config file:
sudo nano /etc/NetworkManager/NetworkManager.confMake sure the
[main]section includes:plugins=ifupdown,keyfileSave the file (Ctrl+O, then Enter) and exit (Ctrl+X), then restart NetworkManager:
sudo systemctl restart NetworkManager
Give these steps a try one by one—usually one of them will bring back your Wi-Fi option. If none work, share the output of the lspci | grep Network command so we can dig deeper!
备注:内容来源于stack exchange,提问作者William H Cowie

