Accidentally deleted cfg80211 Ubuntu 22.04 Kernel version 5.15.0-43-generic

While trying to install some adapter drivers as shown here, I accidentally deleted my /lib/modules/5.15.0-43-generic/kernel/net/wireless/ directory completely where cfg80211.ko is stored, and I would like to repair it if possible.

I’ve tried running sudo apt-get install --reinstall linux-image-5.15.0-43-generic and similar combinations but that simply gives me Reinstallation of linux-image-5.15.0-43-generic is not possible, since it cannot be downloaded.

Thank you

Asked By: Mark Kocherovsky

||

You sadly can’t easily reinstall old kernel versions. Is there anything that’s holding you on 5.15.0-43?

If not, just run sudo apt install linux-generic which should give you the most current one (5.15.0-83 on my machine) and reboot.

Answered By: YtvwlD
Categories: Answers Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.