You are not logged in.

#1 2024-07-28 13:09:33

crashupdate
Member
Registered: 2024-07-28
Posts: 6

[solved] Crash during update

Hi everyone,

for a while now I have been having a problem with updating.

Whenever I typically do a large update (100mb+ worth of updates), my laptop has a tendency to kernel panic (flashing caps lock).

Its probably something I've done since my install is a little borked (just one example is when the screen locks I have to change tty to another then back to get a display again)


I personally think its a nvidia issue or a dying nvme ssd but can't prove it.

Here are some relevant system specs if they matter

DE: Plasma 6.1.3
CPU: Intel i7-7700HQ (8) @ 3.800GHz
GPU: Intel HD Graphics 630
GPU: NVIDIA GeForce 940MX 
Memory: 2311MiB / 31842MiB 

I am using X11 and think I have it so the nvidia graphics are on demand since `nvtop` shows 0% util until I open a program I have specified using `prime-run`

Does anyone have any fixes to the kernel panics on updates, since it breaks my system every time , after shutdown and reboot, the system always is broken on dbus and or systemd (from the grub OK screen whatever its called).My fix is just to arch-chroot and run this command `sudo pacman -Qnq | sudo pacman -S --overwrite "*" -` after deleting the pacman cache

Last edited by crashupdate (2024-07-30 21:22:51)

Offline

#2 2024-07-28 16:52:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [solved] Crash during update

It's the nivida driiver + systemd, they crash since 550xx
=> https://aur.archlinux.org/packages/nvidia-535xx-dkms

My fix is just to arch-chroot and run this command `sudo pacman -Qnq | sudo pacman -S --overwrite "*" -

WAAHAAAHAHHHHHHH.
Don't.

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'

to list the broken packages, install the ones w/ missing or broken mtree "--dbonly", then re-install all broken (or all) packages.

Online

#3 2024-07-28 18:53:03

crashupdate
Member
Registered: 2024-07-28
Posts: 6

Re: [solved] Crash during update

seth wrote:

It's the nivida driiver + systemd, they crash since 550xx
=> https://aur.archlinux.org/packages/nvidia-535xx-dkms

My fix is just to arch-chroot and run this command `sudo pacman -Qnq | sudo pacman -S --overwrite "*" -

WAAHAAAHAHHHHHHH.
Don't.

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'

to list the broken packages, install the ones w/ missing or broken mtree "--dbonly", then re-install all broken (or all) packages.


I don't completely understand, do I just install the aur package and done?


Also with the command I referenced, it seemed to be the only thing possible, since the crash always occur at a moment where all the packages appear broken (I have run the command you wrote before to no affect).


My command hasn't done any visible damage in the past (I have run it about 5 times before), what can it do just out of interest, I was under the impression that arch can be treated with some "disrespect" since you can just install anything whenever anyway with a chroot

Offline

#4 2024-07-28 19:23:21

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [solved] Crash during update

I don't completely understand, do I just install the aur package and done?

There's a good chance that those crashes are caused by the recent nvidia drivers, yes. Reportedly the 535xx drivers any maybe nvidia-open (which though still might have other caveats) do not exhibit this.

Blind overwrites can get you into trouble if the update included a conflict you'd actually have to address.
Since this is most likey in your case triggered by a broken mtree, fixing that and then running the update w/o any force switches is less side error-prone (you're not concerned about overwriting the files for the broken package, but maybe missing out on other conflicts you're wiping under the rug this way)

You can pretty much do to your system and come back from that afterwards - it's just whether you want to cause a mess that you've then to figure out itfp.

Online

#5 2024-07-28 19:26:49

crashupdate
Member
Registered: 2024-07-28
Posts: 6

Re: [solved] Crash during update

Thank you very much, I will try your suggestion and get back if it worked/if I remember to (since its a random occurrence)

Offline

#6 2024-07-28 21:07:22

crashupdate
Member
Registered: 2024-07-28
Posts: 6

Re: [solved] Crash during update

From yay -S nvidia-535xx-dkms I get shouted at with errors, any advice with how to replace it without dependency hell, attempting to uninstall makes the list go on and on since steam wants just about every package known to man.

AUR Explicit (1): nvidia-535xx-dkms-535.183.01-2
AUR Dependency (1): nvidia-535xx-utils-535.183.01-2
:: PKGBUILD up to date, skipping download: nvidia-535xx-utils
:: PKGBUILD up to date, skipping download: nvidia-535xx-utils
  1 nvidia-535xx-utils                       (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 nvidia-535xx-utils                       (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 

==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:14 BST)
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-utils.sysusers
  -> Found nvidia.rules
  -> Found linux-6.10.patch
  -> Found NVIDIA-Linux-x86_64-535.183.01.run
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-utils.sysusers ... Passed
    nvidia.rules ... Passed
    linux-6.10.patch ... Passed
    NVIDIA-Linux-x86_64-535.183.01.run ... Passed
:: (1/1) Parsing SRCINFO: nvidia-535xx-utils
==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:16 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-utils.sysusers
  -> Found nvidia.rules
  -> Found linux-6.10.patch
  -> Found NVIDIA-Linux-x86_64-535.183.01.run
==> Validating source files with sha512sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-utils.sysusers ... Passed
    nvidia.rules ... Passed
    linux-6.10.patch ... Passed
    NVIDIA-Linux-x86_64-535.183.01.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-535.183.01
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 535.183.01........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file kernel/conftest.sh
patching file kernel/nvidia/nvidia.Kbuild
patching file kernel/nvidia/os-mlock.c
==> Sources are ready.
 -> nvidia-535xx-utils-535.183.01-2 already made -- skipping build
==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:23 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.

loading packages...
resolving dependencies...
looking for conflicting packages...
:: nvidia-535xx-utils-535.183.01-2 and nvidia-utils-555.58.02-1 are in conflict. Remove nvidia-utils? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-utils breaks dependency 'nvidia-utils=555.58.02' required by lib32-nvidia-utils
 -> Failed to install layer, rolling up to next layer.error:error installing: [/home/myname/.cache/yay/nvidia-535xx-utils/nvidia-535xx-utils-535.183.01-2-x86_64.pkg.tar.zst] - exit status 1
==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:37 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-utils.sysusers
  -> Found nvidia.rules
  -> Found linux-6.10.patch
  -> Found NVIDIA-Linux-x86_64-535.183.01.run
==> Validating source files with sha512sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-utils.sysusers ... Passed
    nvidia.rules ... Passed
    linux-6.10.patch ... Passed
    NVIDIA-Linux-x86_64-535.183.01.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-535.183.01
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 535.183.01........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file kernel/conftest.sh
patching file kernel/nvidia/nvidia.Kbuild
patching file kernel/nvidia/os-mlock.c
==> Sources are ready.
 -> nvidia-535xx-utils-535.183.01-2 already made -- skipping build
==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:44 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:46 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-utils.sysusers
  -> Found nvidia.rules
  -> Found linux-6.10.patch
  -> Found NVIDIA-Linux-x86_64-535.183.01.run
==> Validating source files with sha512sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-utils.sysusers ... Passed
    nvidia.rules ... Passed
    linux-6.10.patch ... Passed
    NVIDIA-Linux-x86_64-535.183.01.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-535.183.01
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 535.183.01........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file kernel/conftest.sh
patching file kernel/nvidia/nvidia.Kbuild
patching file kernel/nvidia/os-mlock.c
==> Sources are ready.
 -> nvidia-535xx-utils-535.183.01-2 already made -- skipping build
==> Making package: nvidia-535xx-utils 535.183.01-2 (Sun 28 Jul 2024 22:04:53 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
loading packages...
resolving dependencies...
looking for conflicting packages...
:: nvidia-535xx-utils-535.183.01-2 and nvidia-utils-555.58.02-1 are in conflict. Remove nvidia-utils? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-utils breaks dependency 'nvidia-utils=555.58.02' required by lib32-nvidia-utils
 -> error installing: [/home/myname/.cache/yay/nvidia-535xx-utils/nvidia-535xx-utils-535.183.01-2-x86_64.pkg.tar.zst] - exit status 1
error installing: [/home/myname/.cache/yay/nvidia-535xx-utils/nvidia-535xx-dkms-535.183.01-2-x86_64.pkg.tar.zst /home/myname/.cache/yay/nvidia-535xx-utils/nvidia-535xx-utils-535.183.01-2-x86_64.pkg.tar.zst] - exit status 1

Last edited by crashupdate (2024-07-28 21:08:32)

Offline

#7 2024-07-28 21:12:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [solved] Crash during update

:: removing nvidia-utils breaks dependency 'nvidia-utils=555.58.02' required by lib32-nvidia-utils

https://aur.archlinux.org/packages/lib3 … 35xx-utils

Online

#8 2024-07-28 22:01:11

crashupdate
Member
Registered: 2024-07-28
Posts: 6

Re: [solved] Crash during update

Sorry to keep pestering but I installed the package without error and now the gpu seemingly isnt active

No response from nvtop with the gpu (only integrated)
nvidia-persistenced is dead and wont start
neofetch shows it
and prime-run doesn't work ie prime-run glxgears


 $ prime-run glxgears
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  26
  Current serial number in output stream:  27

Offline

#9 2024-07-28 22:06:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [solved] Crash during update

dkms status # needs to say "installed", not "added"

nb. that installing a dkms package does NOT provide a kernel module, the module is dynamically build for the available kernels, but that requires the kernel headers ("linux-headers", "linux-lts-headers" etc, NOT the API headers!) to be installed.

If that's not it: Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Online

#10 2024-07-28 22:31:56

crashupdate
Member
Registered: 2024-07-28
Posts: 6

Re: [solved] Crash during update

A lot learned here I think for any future nvidia issues, it was purely installing linux-headers, all working I think, thank you for all of your help, been using linux for 5 years and still learn every day.

Offline

#11 2024-07-29 06:15:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: [solved] Crash during update

I'm using linux since <my age is none of your business, why're you asking?> and still learning every day, so get used to it tongue

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB