Artix Linux Forum

Artix Linux => Package management => Topic started by: punished_sir on 27 August 2022, 15:52:45

Title: pacman -Syu breaks my kernel
Post by: punished_sir on 27 August 2022, 15:52:45
some weeks or days ago i updated my system with pacman -Syu and rebooted after i noticed the command ended. which broke my kernel, giving the error that i had to load the kernel first. i then spent hours reinstalling the kernel on a liveiso which only fixed itself with another pacman -Syu from there. i did this again one day and the same happened, what could be causing this? i dont have any weird packages or anything
Title: Re: pacman -Syu breaks my kernel
Post by: Lancia on 27 August 2022, 18:55:30
>giving the error that i had to load the kernel first.

So your system had booted fine, but then pacman complained that you needed to load the kernel first?
Title: Re: pacman -Syu breaks my kernel
Post by: Artist on 27 August 2022, 21:49:44
Can you provide any log files, including the one from pacman?
artist
Title: Re: pacman -Syu breaks my kernel
Post by: punished_sir on 28 August 2022, 18:47:45
>giving the error that i had to load the kernel first.

So your system had booted fine, but then pacman complained that you needed to load the kernel first?
well it didnt boot at all after i rebooted after the pacman -Syu,  it gave that error when i tried to boot

Can you provide any log files, including the one from pacman?
artist
pacman gave me nothing (no logs), like normal. i cant give the log the boot menu gave me because its currently booting normally so i cant access it
Title: Re: pacman -Syu breaks my kernel
Post by: Surf3r on 29 August 2022, 16:12:55
 A possible explanation is that you made something that you think was minor while in fact proved not to be  that minor. You said you rebooted after the kernel installation but my opinion is that is not advisable to reboot or shutdown extremely fast even if the update command finished, file system still performs behind the scenes operation needed to keep system data integrity and consistent. There is not by mistake a 1 minute that usually system takes before reboot/shutdown. My advice is never 'shutdown -h now' and give the system 1 minute to shutdown.
 There could be errors when you shutdown and disks do not umount properly or system still writes things to the disk. The Achille's heel of an OS is in my opinion the quality of the SSD's and the file system used.
 Last thing is you never should shutdown/reboot as root cos userland operations may get sudden interrupted with bad impact on user files that currently performs read/writes/exec
Title: Re: pacman -Syu breaks my kernel
Post by: Lancia on 29 August 2022, 17:43:00
> Last thing is you never should shutdown/reboot as root cos userland operations may get sudden interrupted with bad impact on user files that currently performs read/writes/exec

Depends on init, but on openrc shutting down as root is fine since processes get a SIGTERM and the OS waits for some time for the processes to finish and exit, and only those that hang get a SIGKILL

> A possible explanation is that you made something that you think was minor while in fact proved not to be  that minor. You said you rebooted after the kernel installation but my opinion is that is not advisable to reboot or shutdown extremely fast even if the update command finished, file system still performs behind the scenes operation needed to keep system data integrity and consistent. There is not by mistake a 1 minute that usually system takes before reboot/shutdown. My advice is never 'shutdown -h now' and give the system 1 minute to shutdown.

Not really, even if you shutdown immediatly after an upgrade, the OS will still wait for all write operations to be completed before unmounting all filesystems, so it's fine.
Title: Re: pacman -Syu breaks my kernel
Post by: Surf3r on 29 August 2022, 20:08:18
These are the commands on xfce for the shutdown/reboot. As anyone can see first they logout from user session and only then it proceeds to shutdown. Even is considered safe by some i still think is even better to first log out  ;) Also on my system when i shutdown it counts down 60 sec and only after that it goes down.

(https://i.postimg.cc/CL5tvSdj/Screenshot-2022-08-29-20-22-54.png)
Title: Re: pacman -Syu breaks my kernel
Post by: punished_sir on 10 September 2022, 02:46:18
alright i started using the kitty terminal and now i think i know why this is happening

error: archlinux-keyring: signature from "Dudemanguy <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20220831-1.1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

maybe something i did when i was setting up artix?
Title: Re: pacman -Syu breaks my kernel
Post by: punished_sir on 10 September 2022, 02:48:54
kek never using konsole again. that was why it was breaking but after i did it on kitty it worked fine
Title: Re: pacman -Syu breaks my kernel
Post by: punished_sir on 11 September 2022, 17:31:19
on the rare occasion anyone else has the same issue i saw on another thread that updating artix-keyring would solve this and it did for me. so the solution for me was to use another terminal emulator and update artix-keyring