I’m trying to install matrixio-kernel-modules on a PI 4 and I’m getting this error during install
apt install matrixio-kernel-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libftdi1-2 libjack-jackd2-0 liblirc-client0 liblirc0 libopus0 libportaudio2 libyaml-0-2 python3-yaml triggerhappy
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
matrixio-kernel-modules
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/17.8 kB of archives.
After this operation, 108 kB of additional disk space will be used.
Selecting previously unselected package matrixio-kernel-modules.
(Reading database ... 94989 files and directories currently installed.)
Preparing to unpack .../matrixio-kernel-modules_0.1.9_armhf.deb ...
Unpacking matrixio-kernel-modules (0.1.9) ...
Setting up matrixio-kernel-modules (0.1.9) ...
Enabling firmware loading at startup
Creating symlink /var/lib/dkms/matrixio/0.1/source ->
/usr/src/matrixio-0.1
DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.19.80-v7l+ cannot be found at
/lib/modules/4.19.80-v7l+/build or /lib/modules/4.19.80-v7l+/source.
dpkg: error processing package matrixio-kernel-modules (--configure):
installed matrixio-kernel-modules package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
matrixio-kernel-modules
E: Sub-process /usr/bin/dpkg returned an error code (1)
For the story everything was working but I had to do a rpi-update and after that nothing was working, now look like I manage to get everything working again except the mic
It’s possible you were on an older MATRIX kernel module version and once you ran update & upgrade, it became outdated in relation to the Linux kernel. I’d recommend uninstalling and reinstalling the kernel modules.
To uninstall
sudo apt purge matrixio-kernel-modules
Do a quick reboot after to ensure the changes go through
sudo reboot
Then re-install
sudo apt install matrixio-kernel-modules
Once again reboot for changes to go through
sudo reboot
Then try recording mic data. Let me know how that goes!
Hey Samreen ! I’ve tried but yeah same error in fact:
apt install matrixio-kernel-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dkms
Suggested packages:
python3-apport menu
The following NEW packages will be installed:
dkms matrixio-kernel-modules
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/92.3 kB of archives.
After this operation, 392 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package dkms.
(Reading database ... 94866 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.6.1-4_all.deb ...
Unpacking dkms (2.6.1-4) ...
Selecting previously unselected package matrixio-kernel-modules.
Preparing to unpack .../matrixio-kernel-modules_0.1.9_armhf.deb ...
Unpacking matrixio-kernel-modules (0.1.9) ...
Setting up dkms (2.6.1-4) ...
Setting up matrixio-kernel-modules (0.1.9) ...
Enabling firmware loading at startup
Creating symlink /var/lib/dkms/matrixio/0.1/source ->
/usr/src/matrixio-0.1
DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.19.80-v7l+ cannot be found at
/lib/modules/4.19.80-v7l+/build or /lib/modules/4.19.80-v7l+/source.
dpkg: error processing package matrixio-kernel-modules (--configure):
installed matrixio-kernel-modules package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
matrixio-kernel-modules
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:/home/pi#
It seems like the issue is that it is unable to find the Linux Kernel headers. Try the following and let me know if it installs anything new. If so, try the matrixio-kernel-module installation after that. If not, we may have to dig a bit more!
sudo apt install raspberrypi-kernel-headers
Then reboot if it installs something, just to make sure changes go through.
apt install raspberrypi-kernel-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
raspberrypi-kernel-headers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/24.9 MB of archives.
After this operation, 163 MB of additional disk space will be used.
Selecting previously unselected package raspberrypi-kernel-headers.
(Reading database ... 44277 files and directories currently installed.)
Preparing to unpack .../raspberrypi-kernel-headers_1.20190925+1-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20190925+1-1) ...
Setting up raspberrypi-kernel-headers (1.20190925+1-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.19.75+
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.19.75-v7+
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.19.75-v7l+
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.19.75-v8+
dkms: WARNING: Linux headers are missing, which may explain the above failures.
please install the linux-headers-4.19.75-v8+ package to fix this.
I did some research and found this info about the rpi-update command. At first I thought it was the equivalent of sudo apt update && upgrade but that is not the case.
rpi-update will take your kernels into the “bleeding-edge” experimental version of the firmware which can cause stability issues. The public latest version of Raspbian Buster currently runs on Linux kernel 4.19.75-v7+ and you are ahead of that.
I found this resource which tells you how you can locally build the kernels from source to go back to a stable version. There is no other way to revert the rpi-update command.
At this point, it may be easier to start from a fresh install to set everything up properly, and I would take care not to run rpi-update. Is there a specific reason you needed that command?
I did rpi-update by following blindly a tutorial for I don’t remember what lol
You’re right it’s easier to just start from scratch at that point, I wanted to avoid that but no luck lool