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:

https://wiki.manjaro.org/index.php/Pacman_troubleshooting

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: 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
  1.893 Germany        : http://manjaro.moson.eu/
  2.003 Germany        : https://mirror.alpix.eu/manjaro/
  ..... Germany        : ftp://ftp.gwdg.de/pub/linux/manjaro/
::INFO Writing mirror list
::Germany         : http://manjaro.moson.eu/stable/$repo/$arch
::Germany         : https://mirror.alpix.eu/manjaro/stable/$repo/$arch
::Germany         : ftp://ftp.gwdg.de/pub/linux/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)

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/sudoers.so: libldap-2.4.so.2: cannot open shared object file: No such file or directory
sudo: fatal error, unable to load plugins