System froze during DKMS building, missing kernels on boot

Luckily, it seems that linux-tkg did build before my system froze, so I have 1 kernel to boot from, but the default linux kernel and the zen kernel don’t appear.

When it froze, this was the terminal log:

I also tried to to a kernel dkms rebuild but that fails as well:

Imgur

I am now trying to uninstall zen kernel and reinstall to see if that helps, just uninstalled but I do get to see these errors, anyone know what that means?

config: File /usr/lib/libndr.so.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so is empty, not checked.
ldconfig: File /usr/lib/libmjpegutils.so is empty, not checked.
ldconfig: File /usr/lib/libmplex2-2.2.so.0 is empty, not checked.
ldconfig: File /usr/lib/liblavfile.so is empty, not checked.
ldconfig: File /usr/lib/libntfs-3g.so.89 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-39-x86-64-linux-gnu.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so.0.15 is empty, not checked.
ldconfig: File /usr/lib/libmpeg2encpp-2.2.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so is empty, not checked.
ldconfig: File /usr/lib/libsnappy.so is empty, not checked.
ldconfig: File /usr/lib/liblavfile-2.2.so.0 is empty, not checked.
ldconfig: File /usr/lib/libntfs-3g.so is empty, not checked.
ldconfig: File /usr/lib/libmplex2-2.2.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so.0 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so.0 is empty, not checked.
ldconfig: File /usr/lib/libnss_winbind.so is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so.2.1.0 is empty, not checked.
ldconfig: File /usr/lib/libmplex2.so is empty, not checked.
ldconfig: File /usr/lib/libndr.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-39-x86-64-linux-gnu.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so.0.7.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so is empty, not checked.
ldconfig: File /usr/lib/liblavfile-2.2.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so.0 is empty, not checked.
ldconfig: File /usr/lib/libnss_wins.so is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so.0 is empty, not checked.
ldconfig: File /usr/lib/liblavjpeg.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so.0 is empty, not checked.
ldconfig: File /usr/lib/libnss_wins.so.2 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so.1 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmjpegutils-2.2.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so.1 is empty, not checked.
ldconfig: File /usr/lib/libmpeg2encpp.so is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so is empty, not checked.
ldconfig: File /usr/lib/liblavjpeg-2.2.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so.0 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so.0.28.0 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so is empty, not checked.
ldconfig: File /usr/lib/liblavjpeg-2.2.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsnappy.so.1.1.9 is empty, not checked.
ldconfig: File /usr/lib/libmjpegutils-2.2.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libndr.so.1.0.1 is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-39-x86-64-linux-gnu.so is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsnappy.so.1 is empty, not checked.
ldconfig: File /usr/lib/libnss_winbind.so.2 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so is empty, not checked.
ldconfig: File /usr/lib/libmpeg2encpp-2.2.so.0 is empty, not checked.
ldconfig: File /usr/lib/libntfs-3g.so.89.0.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so.2 is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so.0 is empty, not checked.

So, my question is, why do I get the above error messages and how can I fix my kernels? Would removing and reinstalling work? What is the name of the default kernel? linux- does not yield any results that I can confidently say is the default kernel.

Edit: cant install zen now since it errors out with many errors like:

linux-zen-headers: /usr/lib/modules/5.14.2-zen1-2-zen/build/include/uapi/linux/netfilter_bridge/ebt_log.h exists in filesystem

Edit2: Pfew, removing the kernel folder from “/usr/lib/modules/” and “/usr/src” was what was needed to install the kernel again. Build properly, now need to find the name of the default kernel.

sudo pacman -S linux-lts linux-lts-headers

This should get you back up and running easily enough with the LTS kernel. Should you require the latest Linux kernel (currently 5.14), once you’ve logged back into your system you can use EndeavourOS’s own akm software to install the latest Linux kernel, though I would recommend sticking with the LTS kernel (or zen kernel if you prefer), since 5.14 has some regressions/bugs currently for some users. To install the latest Linux kernel using akm make sure you select both core/linux and core/linux-headers, then select “Execute” and you should be good to go.

1 Like

linux is the name of the default kernel - usually accompanied by linux-headers Add -lts to both for lts… etc etc

1 Like

Allright, it all worked. Removed the kernels and the leftover data, removed the files that came up as errors with empty, those where indeed empty, and then was able to reinstall the kernels again.

Dodged a bullet there! Thanks all!

1 Like