The Problem
I'm trying to install this android emulator using snap.
This is what I have done, so far:
- installed anbox, following instructions in Snapcraft;
- installed
kernel-devel; - tried to install kernel modules.
Although, I was not able to install kernel modules because whenever I install kernel-devel it has a different version from my kernel. For example:
- I have this kernel:
5.8.18-200.fc32.x86_64 - but
kernel-develhas this version:5.9.15-100.fc32.x86_64
And DKMS outputs this:
Your kernel headers for kernel `5.8.18-200.fc32.x86_64` cannot be found at
/lib/modules/5.8.18-200.fc32.x86_64/build or /lib/modules/5.8.18-200.fc32.x86_64/source.
Details
-> In order to install anbox, I used this:
sudo snap install anbox --devmode --beta
-> In order to install kernel-devel, I am using this:
sudo dnf install kernel-devel
-> I have tried to install the correct headers using this command, as recommended in this other question:
sudo yum install "kernel-devel-uname-r == $(uname -r)"
-> Launching anbox doesn't work, even if I use this recommended command:
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
Question Updates
1. Kernel mismatch
I had to update my OS, to get the new kernel. There's no mismatch problem, anymore.
Before @ajgringo619 hint, I was not able to update it because my dnf.conf had an install limit:
installonly_limit=1
This would result in this error:
Error:
Problem: The operation would result in removing the following protected packages: kernel-core
(try to add '--skip-broken' to skip uninstallable packages)
After changing dnf.conf, I was able to update my kernel and solve mismatch issues.
2. Unable to install anbox modules
I'm still unable to install modules. Now, due to modpost error.