Solving "ls Cannot Access /sys/class/ieee80211" Error

If you are a Linux user and you've encountered the error message "ls: cannot access '/sys/class/ieee80211': No such file or directory", you may feel overwhelmed and confused. Fortunately, this issue can be solved easily.

Background Information

This error message is caused by a configuration issue in the network driver. The issue is more often encountered with older versions of Linux, such as Ubuntu 9.10.

Solution

The steps below should help you debug and troubleshoot "ls: cannot access '/sys/class/ieee80211': No such file or directory" error message.

Check if your wireless device is detected by Linux.

  • To do that, run the command lspci | grep Wireless
  • If your device is detected, you should get a response that looks like 12:00.0  Network controller: Qualcomm Atheros AR9287 Wireless Network Adapter (rev 01).

If your device is detected, you need to install the appropriate drivers

  • You can do that by first downloading the package linux-backports-modules-wireless-2.6.32-24-generic.
  • Once you have downloaded the package, type sudo dpkg -i and then the path to the package you just downloaded, such as dpkg -i /desktop/linux-backports-modules-wireless-2.6.32-24-generic.deb.

Install the new driver

  • You can do that with the following command sudo apt-get install --reinstall
  • Then specify the driver you need to install with the following command firmware-ralink.

Reboot your computer

  • Now that you've installed the new driver, you need to reboot your computer.

FAQ

What is the cause of this issue?

The issue is caused by a configuration issue in the network driver. The issue is more often encountered with older versions of Linux, such as Ubuntu 9.10.

How can I check if my wireless device is detected?

You can check if your wireless device is being detected by running the command lspci | grep Wireless in the terminal. If your device is detected, you should get a response that looks like 12:00.0  Network controller: Qualcomm Atheros AR9287 Wireless Network Adapter (rev 01).

What driver do I need to install?

You need to install the firmware-ralink driver.

Do I need to reboot my computer after installing the new driver?

Yes, after you have installed the new driver you should reboot your computer for the changes to take effect.

What other potential solutions exist for this issue?

If the solution offered in this doc does not solve the issue, you could try reinstalling your current driver or manually installing the driver with modprobe. You could also try resetting network interfaces or using a connection manager such as Network Manager to try and connect to the wireless network.

airmon-ng: ls: cannot access ‘/sys/class/ieee80211/’: No such file or directory
Background: I am running the latest version of Kali Linux in a vmware workstation and I have a Cisco AE2500 wifi usb which works as a wifi adapter in Windows 10. Unfortunately, when i run the air...

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Lxadm.com.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.