Crash at the end of update has messed up kernel. Any ideas?

Hi folks, I was just running the latest update, from the GUI. It was a really long download - maybe a couple of hours - and my machine crashed at the very last minute! When it automatically restarted I just get the GRUB options screen and neither of the two offered work. They throw up the message:

error: file ‘/boot/vmlinuz-6.1-x86_64’ not found.
error: you need to load the kernel first.

Press any key to continue…

So, I’ve chrooted from a live usb stick and ran the following in Terminal:

[manjaro /]# pacman-mirrors -f 5 && pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.887 United_States  : https://southfront.mm.fcix.net/manjaro/
  1.043 United_States  : https://ridgewireless.mm.fcix.net/manjaro/
  0.726 United_States  : https://forksystems.mm.fcix.net/manjaro/
  0.836 United_States  : https://nocix.mm.fcix.net/manjaro/
  2.583 New_Zealand    : https://mirror.2degrees.nz/manjaro/
::INFO Writing mirror list
::United_States   : https://forksystems.mm.fcix.net/manjaro/stable
::United_States   : https://nocix.mm.fcix.net/manjaro/stable
::United_States   : https://southfront.mm.fcix.net/manjaro/stable
::United_States   : https://ridgewireless.mm.fcix.net/manjaro/stable
::New_Zealand     : https://mirror.2degrees.nz/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
[manjaro /]# mhwd-kernel -li && mhwd -l -li     
Currently running: 5.15.28-1-MANJARO (linux515)
The following kernels are installed in your system:
error: could not open file /var/lib/pacman/local/cuda-12.2.2-1/desc: No such file or directory
   * linux515
   * linux61
error: could not open file /var/lib/pacman/local/cuda-12.2.2-1/desc: No such file or directory

Installed PCI configs:


              NAME               VERSION          FREEDRIVER           TYPE

       video-linux            2018.05.04                true            PCI
      video-nvidia            2023.03.23               false            PCI

Warning: No installed USB configs!

0000:03:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:


              NAME               VERSION          FREEDRIVER           TYPE

     network-r8168            2023.09.12                true            PCI

0000:01:00.0 (0300:10de:1e82) Display controller nVidia Corporation:


              NAME               VERSION          FREEDRIVER           TYPE

      video-nvidia            2023.03.23               false            PCI
video-nvidia-470xx            2023.03.23               false            PCI
       video-linux            2018.05.04                true            PCI
 video-modesetting            2020.01.13                true            PCI
        video-vesa            2017.03.12                true            PCI

0000:00:02.0 (0380:8086:0162) Display controller Intel Corporation:


              NAME               VERSION          FREEDRIVER           TYPE

       video-linux            2018.05.04                true            PCI

Any advice will be greatly appreciated. Thank you.

Before updating in chroot environment remove the database lock:
sudo rm /var/lib/pacman/db.lck
If you get: cannot remove ‘/var/lib/pacman/db.lck’: No such file or directory; use this:
sudo rm /var/tmp/pamac/dbs/db.lck

2 Likes

Thanks for the suggestion. Sadly, I just get this same error message at the end of the mirror list:

::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases…
error: failed to synchronize all databases (unable to lock database)

Then try
sudo rm /var/lib/pacman/sync/*.*

If this doesn’t help I would suggest to check all what is provided in these wiki pages:

2 Likes

Ha ha! Ive been here before!

I followed the advice on the above link and now it boots in a user and password screen with the message
The current theme cannot be loaded due to the errors below, please select another theme.

file:///usr/share/sddm/themes/breath/Main.qml:26:1: plugin cannot be loaded for module “org.kde.plasma.core”: Cannot load library /usr/lib/qt/qml/org/kde/plasma/core/libcorebindingsplugin.so: (/usr/lib/libKF5QuickAddons.so.5: file too short)

I hope I haven’t made any typos there. I had to copy it out as it wouldn’t let me copy and paste.

Ive had this theme problem before, only with a different error message, and I think @brahma helped me sort it out. Hopefully, he’s listening in now…

Had you installed any -git packages for plasma/KDE components? Or any other tinkering?

Not that I can recall.

Here’s the error message at the end of the last bash:

Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB drive for /dev/sdd1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdd1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings …
Root filesystem isn’t btrfs

Have you tried replacing/restoring Grub?

This may be sufficient to allow booting to a TTY, after a reboot.

From there you could attempt to update again, if the theory holds true.

No other wizzardry comes to mind.

Okay, I managed to get a TTY.
I ran pacman -Qm and got this
transcode 1.1.7-41
Is this the problem?

file:///usr/share/sddm/themes/breath/Main.qml:26:1: plugin cannot be loaded for module “org.kde.plasma.core”: Cannot load library /usr/lib/qt/qml/org/kde/plasma/core/libcorebindingsplugin.so: (/usr/lib/libKF5QuickAddons.so.5: file too short)

Seems like the installed file might be corrupt, to fix it reinstall the package that provides said file.

Aha! Thank you! Any suggestions how I can do this from a TTY?

Check with pacman or google what package provides the file(s) it complains about, and pacman -S that package.

Thanks, I’ll try that!

You can also try sudo pacman -Qkk to check all files to see if you possibly have other corrupted packages that are not immediately obvious.

Loads of error popping up but scrolling by to fast to clock.
Id like to try installing the package libKF5QuickAddons.so.5
Could anyone advise me on how to do that from a TTY, please?

$ pacman -Qo /usr/lib/libKF5QuickAddons.so.5
/usr/lib/libKF5QuickAddons.so.5 is owned by kdeclarative5 5.111.0-1

So

sudo pacman -S kdeclarative5
2 Likes

You can scroll up to read the output, right?

Also, did you try “man pacman” ? It shows you how to use it, like Query owner of provided file. Cfinnberg already provided the spoonfed solution, but trust me, putting in a bit of effort to learn it for yourself will have it stick as knowledge. Just copypasting code others provide you will have you forget it by tomorrow.

Thank you, cfinnberg and varikonniemi, I do try to learn the logic behind what I’m copy & pasting. I have already come a long way with very little knowledge to start with. I’ve learned so much thanks to the generous spirit of this forum. Sometimes it just takes so long to get a desktop back again though and, when I have urgent work to finish, I panic and just want to get it fixed. I’ve pieced together a lot in previous inquiries just by searching the forum and attempting to apply elements of the solutions to others’ problems to my own. Hopefully, the eventual fix to this will help out some other searcher in the future.

Just dipping into the PACMAN manual now. Wow! Thanks varikonniemi. I wish I’d known about this before!