You need to load the kernel first

I was downloading a new update when my laptop ran out of battery… When trying to reboot it it seems like there is no installed kernel and it shows this error. Is there any possible way to solve this error without an external usb

Here you find all info you need:

1 Like

So there is no way I can solve this without a usb or cd

This time - yes. But your can prepare yourself for the next time given that you seem to like testing edge cases like running updates on low battery :stuck_out_tongue_winking_eye:: [HowTo] Booting manjaro iso directly with grub

It is usually a good idea to have an extra LTS kernel installed just in case something like this happens. It is easy to switch between kernels that are installed already on your computer, you just hold shift at starup enter advanced in the grub menu and then select the kernel.

It’s just better to not install updates while on battery power. A regular person uses laptop on battery for a reason, and such reason most probably has nothing to do with updating packages, right. Of course packagers or devs might use their machines for such things but they are not regular users and I believe they know what they’re doing and how to fix such issues.

I actually used to have one of these but it just suddenly disappeared

it gives me this

[manjaro /]# pacman-mirrors -f 5 && pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool:
::INFO => Mirror status:
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  1.893 Germany        :
  2.003 Germany        :
  ..... Germany        :
::INFO Writing mirror list
::Germany         :$repo/$arch
::Germany         :$repo/$arch
::Germany         :$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)

I tried removing db.lck and I got this

[manjaro /]# sudo rm /var/lib/pacman/db.lock
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /usr/lib/sudo/ cannot open shared object file: No such file or directory
sudo: fatal error, unable to load plugins