anbox-installer
anbox-installer copied to clipboard
Installation on Ubuntu fails if non-generic kernel is in use. Leaves system in broken state.
Distribution: Ubuntu Affected distribution versions: (at least) 14.04 and all newer. There are different kernel flavours available in the repository for the user to install. If a user uses a non-default kernel flavour, the installer breaks the system.
https://github.com/anbox/anbox-installer/blob/d175e0f98c8f02b948dab3bd065c3607a0b605ce/installer.sh#L180
Here, the installer assumes it can always install the package linux-headers-generic.
If the user has only a non-generic kernel-flavour like a lowlatency build installed (like this one here:
https://packages.ubuntu.com/search?keywords=linux-image-lowlatency&searchon=names )
linux-headers-generic is not installed and cannot be installed by apt. apt cannot infer that it has to install linux-image-generic to fulfill the dependencies of linux-headers-generic and then drops the package management into a broken state.
The user has to manually purge linux-headers*generic and then manually fix a broken dkms configuration.
After anbox-installer failed, trying to install linux-image-gereric or updating kernels fails with
Error! Could not locate dkms.conf file.
File: does not exist.
3 possible solutions:
- Abort the installation if
linux-image-genericis not installed - Just force all users to use the generic kernel by also installing
linux-image-generic - Determine the appropriate kernel header package by looking at the installed kernel packages.