after an update all kernels installed were eliminated on my machine. It’s not such a big problem and I know I have to use a live usb, but I haven’t found any information here nor doing a Google research. Can somebody explain me how to install linux kernel on another machine?
That’s because you somehow did not let the update finish. Maybe the connection was lost, or maybe you rebooted the machine in the middle of the update. The update process first removes the kernels and then installs the newer ones.
Boot up from the live medium and open up a terminal window. Then issue the command…
su -
Next, issue the following command…
manjaro-chroot -a
It will try to detect the root filesystem of the installed Manjaro system, and if it finds more than one distribution, it’ll let you choose the correct partition.
Then, you select the correct one, and you issue the command…
pacman-mirrors -f 5 && pacman -Syyu
This will resume or restart the update process. Be sure to let it finish this time, and when you’re done, issue the following two commands…
Everything seems to work well, I had problems to init transaction, but I solved it by issuing the following command:
rm /var/lib/pacman/db.lck
The problem is that it seems like it’s unable to find the kernel package. This the error I received back:
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/linux57-5.7.14-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux57-5.7.14-1
error: failed to prepare transaction (invalid or corrupted package)
Yes, that confirms what I said already, i.e. that you had interrupted the update.
Hmm… Try ─ in the chroot environment…
pacman-mirrors -f && pacman -Syyu
It’s similar, but it’ll check at all the mirrors, not just five of them ─ it’ll also take a while, so be sure to let it finish. It would appear that you had some network glitch at one of the mirrors, or that that particular mirror itself was having a problem ─ it’s rare, but it does happen.
Another thing you could try ─ after the above command has finished ─ is to manually install the kernel.
mhwd-kernel -i linux57
… or if you want to have the latest stable kernel…
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
It gave me some error, but the command worked. The problem is that now GRUB doesn’t give me errors about the kernel, but about “fwsetup”. Now the only options available in the list are UEFI firmware settings and Memory test.
The EFI system partition is the partition where your UEFI goes looking for a boot loader. It is usually a FAT32 partition between 256 and 512 MiB, and it’s marked with the boot and esp flags in the partition table. It is normally mounted at /boot/efi.
If /dev/sdc1 is where your Manjaro system is installed, then your installed system does not boot in UEFI mode but in legacy BIOS compatibility mode, regardless of what mode the USB stick boots in.
Just to make it clear. Now your installed Manjaro system will actually boot and you can log in? In this case, at least one kernel is installed, you can use the uname -a command to view it which one it is.