Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save UbuntuEvangelist/e36f6a1a9ef7cb0a0b24e592eb925b68 to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/e36f6a1a9ef7cb0a0b24e592eb925b68 to your computer and use it in GitHub Desktop.
Fix WiFi Issues on Ubuntu 24.04 LTS Desktop
# Follow Things To Do After Installing Ubuntu 24.04 LTS
$ apt update -y
$ apt upgrade -y
$ apt update -y
$ apt install build-essential checkinstall
$ apt install ubuntu-restricted-extras
$ apt install software-properties-common
$ apt install apt-show-versions
$ apt upgrade -o APT::Get::Show-Upgraded=true
$ apt-show-versions | grep upgradeable
$ apt install git
$ apt -f install
$ apt autoremove
$ apt -y autoclean
$ apt -y clean
$ apt update -y
$ apt upgrade -y
$ apt update -y
# Ensure the Wi-Fi Adapter is Recognized
$ lspci | grep -i network
# Check for Wireless Drivers
$ lshw -C network
# Install Missing Drivers
$ sudo apt update
$ sudo apt install bcmwl-kernel-source
# Verify Network Manager is Running
$ sudo systemctl status NetworkManager
# If it's not running, start it with:
$ sudo systemctl start NetworkManager
# Check for Disabled Wi-Fi. Sometimes Wi-Fi can be soft or hard blocked. Check this with:
$ rfkill list
# If you see "soft blocked" or "hard blocked" for the Wi-Fi adapter, unblock it with:
$ sudo rfkill unblock wifi
# Reboot PC
$ sudo reboot
# Logs and Diagnostics:
$ dmesg | grep -i wifi
$ journalctl -xe | grep NetworkManager
# Example Troubleshooting Commands
$ lspci | grep -i network
$ sudo lshw -C network
$ sudo apt update
$ sudo apt install bcmwl-kernel-source
$ sudo systemctl status NetworkManager
$ rfkill list
$ sudo rfkill unblock wifi
$ dmesg | grep -i wifi
$ journalctl -xe | grep NetworkManager
@eduardstan
Copy link

Hi, I have the same problem with the unstable WiFi connection.

$ dmesg | grep -i wifi
dmesg: read kernel buffer failed: Operation not permitted

I've gone through all the "Things to Do"

Here are the logs and diagnostics:
$ dmesg | grep -i wifi
dmesg: read kernel buffer failed: Operation not permitted

$ sudo dmesg | grep -i wifi
$

$ journalctl -xe | grep NetworkManager
Nov 23 07:41:12 valhalla NetworkManager[1024]: [1732344072.6164] agent-manager: agent[576309e86af34f34,:1.82/org.gnome.Shell.NetworkAgent/1000]: agent registered

Can someone help me please?

@UbuntuEvangelist
Copy link
Author

Hi, I have the same problem with the unstable WiFi connection.

$ dmesg | grep -i wifi dmesg: read kernel buffer failed: Operation not permitted

I've gone through all the "Things to Do"

Here are the logs and diagnostics: $ dmesg | grep -i wifi dmesg: read kernel buffer failed: Operation not permitted

$ sudo dmesg | grep -i wifi $

$ journalctl -xe | grep NetworkManager Nov 23 07:41:12 valhalla NetworkManager[1024]: [1732344072.6164] agent-manager: agent[576309e86af34f34,:1.82/org.gnome.Shell.NetworkAgent/1000]: agent registered

Can someone help me please?

The issue you're experiencing with your unstable WiFi connection and the dmesg output being empty can be related to several potential causes. Here's how you can troubleshoot and resolve this issue step by step:

To temporarily bypass this restriction, run:
sudo dmesg | grep -i wifi

To permanently disable the restriction (not recommended for shared systems):
sudo sysctl -w kernel.dmesg_restrict=0

Check Logs for Relevant WiFi Errors:
sudo dmesg | grep -i wlan
sudo dmesg | grep -i net

NetworkManager logs:
journalctl -u NetworkManager -b | grep -i wifi

Verify WiFi interface status:
nmcli dev status

If yo need anything goes Linux support ping me Telegram https://t.me/LinuxCopilot

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment