System not starting: You need to load the kernel first

My System is not starting and I’m getting this:

 You need to load the kernel first

So I started with several proposals from @brahma but this ends up with an issue here:

$ manjaro-chroot -a
pacman-mirrors -f 5 && pacman -Syyu
# 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 custom mirror file
::INFO Querying mirrors - This may take some time
  0.221 Germany        : https://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/
  0.232 Germany        : https://manjaro.kurdy.org/
  0.244 Germany        : https://ftp.gwdg.de/pub/linux/manjaro/
  0.320 Germany        : https://mirror.alpix.eu/manjaro/
::INFO Writing mirror list
::Germany         : https://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch
::Germany         : https://manjaro.kurdy.org/stable/$repo/$arch
::Germany         : https://ftp.gwdg.de/pub/linux/manjaro/stable/$repo/$arch
::Germany         : https://mirror.alpix.eu/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

How to solve this?

You might have secure boot enabled in BIOS. Try disabling it.
Or you need to reinstall kernel in the chroot environment.

The error about the database is different and has nothing to do with kernel error. If you are sure no other instances of pacman are running, you need to manually delete the db.lck file.

You forgot to tell us what you were doing shortly before :wink: (how you got into this situation).
Such information is often very helpful in suggesting a possible solution.

Or we can try to play hide and seek :wink:

:footprints:

2 Likes

No, secure boor is DISabled.

I wanted to install a package, unfuotunately there came an system-update at the same time and I messed up. System was “waiting for another paket-manager” and I killed the process (CTRL-C) after a while …

This looks like a partial upgrade¹, so as mentioned above, remove the lock:

rm /var/lib/pacman/db.lck

— from within chroot — and re-run the update.

¹ EDIT: Confirmed; I was waiting for this slug (ancient netbook) to respond when you replied.

1 Like

Thanks:

Done and

# pacman-mirrors -f 5 && pacman -Syyu

Worked fine! Thank you s much!

2 Likes

Please bookmark (and read) the following two links… :point_down:

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.