The Problem
On boot, I see a [FAILED] Failed to start Load Kernel Modules.
error message.
As shown in the below images from my phone, as I am unable to enter the GUI of the OS and take a screenshot, I see:
How It Started
I was having an issue with Python versions. I wanted to upgrade to 3.10 from 3.8 and simply thought I'd uninstall the older version and install the newer version. Then when restarting my laptop, these errors began to occur on boot.
What I Have Tried
It is worth clarifying that I am able to gain a terminal by Ctrl + Alt + F1
then I can log in with my usual user and password. This is all I have, I do not have access to any of the Ubuntu GUI, as previously mentioned.
As suggested in the error message, I checked systemctl status systemd-modules-load.service
for details. This showed the following:
Which led to some Googling and I found the following suggestions that sadly did not work for me.
Attempted Solution 1
I initially found and tried this solution which suggested running:
apt-get update
dpkg --configure -a
apt-get dist-upgrade
apt-get -f install
This seemed to fix some initial errors that were coming up with python modules, however it does not fix the ashmem_linux
issue which has persisted.
Attempted Solution 2
This led to me Googling specific issues related to ashmem_linux
, leading to this post which suggested that the error to the modules not being signed. Running the following command should fix it:
kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko
Sadly, this didn't make any difference for me and I get the same errors as shown in the above images.
Attempted Solution 3
Further Googling led me to finding a GitHub page on some software called Anbox (didn't seem hugely relevant to me but I'm getting desperate at this point so it was worth a go). A workaround was posted on this Ubuntu Wiki page that seemed promising but I don't think I can get to the BIOS without the Load Kernel Modules error popping up. I am perhaps doing something wrong there so I am willing to be told that I'm being stupid and should try it a subtly different way.
My System
I'm running Ubuntu 20.04.5 LTS Focal Fossa.
Thank you ahead of time for your help!