I recently installed Ubuntu 6.11.0-17-generic on my MacBookPro14,1, and like many others my sound was broken, so I tried the common solution https://github.com/davidjo/snd_hda_macbookpro.git suggested by many threads like Ubuntu 20.04 LTS no sound on MacbookPro but when I try to run ./install.cirrus.driver.sh I get the following error:
Ubuntu linux kernel source not found in /usr/src: /usr/src/linux-source-6.11.0.tar.bz2
assuming the linux kernel source package is not installed
please install the linux kernel source package:
sudo apt install linux-source-6.11.0
NOTE - This does not work for HWE kernels
And when I run sudo apt install linux-source-6.11.0 I get this error:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-source-6.11.0
E: Couldn't find any package by glob 'linux-source-6.11.0'
My /usr/src directory contains the following:
linux-headers-6.11.0-17-generic linux-headers-6.8.0-53-generic
linux-headers-6.8.0-53 linux-hwe-6.11-headers-6.11.0-17
I don't know what an "HWE kernels" is mentioned in the first error, but based on the existence of linux-hwe-6.11-headers-6.11.0-17 maybe my my kernel is HWE.
Any ideas how to fix this?
My bad solution: I found it so difficult to downgrade my Linux kernel in Ubuntu like @robert rozee suggested, I switched to fedora instead, and this solution fixed my sound first try