You are not logged in.

#1 2021-06-04 13:33:04

cnekmp
Member
Registered: 2021-06-04
Posts: 3

[SOLVED] Errors during Nvidia modules and Kernel packages update

With every kernel & nvidia driver update I get following strange warnings in output. While everything works after upgrade. Any clues why this happen and how to fix it?

warning: could not get file information for usr/lib/modules/5.12.8-arch1-1/extramodules/nvidia-uvm.ko.xz
:: Running pre-transaction hooks...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules
==> dkms remove --no-depmod -m vboxhost -v 6.1.22_OSE -k 5.12.8-zen1-1-zen
==> dkms remove --no-depmod -m nvidia -v 465.31 -k 5.12.8-arch1-1
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
==> dkms remove --no-depmod -m vboxhost -v 6.1.22_OSE -k 5.12.8-arch1-1
==> dkms remove --no-depmod -m nvidia -v 465.31 -k 5.12.8-zen1-1-zen
==> depmod 5.12.8-zen1-1-zen
==> depmod 5.12.8-arch1-1
:: Processing package changes...

Obviously I'm missing file, but how that could happen and how can I fix it?

[x@unknown ~]$ sudo pacman -Qk | grep -v "0 missing"
warning: nvidia: /usr/lib/modules/5.12.9-arch1-1/extramodules/nvidia-uvm.ko.xz (No such file or directory)
nvidia: 15 total files, 1 missing file
[x@unknown ~]$

Full log:

[x@unknown ~]$ paru
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (21)                 Old Version     New Version     Net Change  Download Size

extra/colord                 1.4.5-1         1.4.5-3          -1.20 MiB       1.68 MiB
extra/colord-sane            1.4.5-1         1.4.5-3           0.00 MiB       0.01 MiB
community/electron11         11.4.7-1        11.4.8-1          0.01 MiB      47.41 MiB
extra/gtk-update-icon-cache  1:4.2.1-1       1:4.2.1-2         0.00 MiB       0.02 MiB
extra/gtk3                   1:3.24.29-1     1:3.24.29-2      -0.01 MiB       7.50 MiB
multilib/lib32-colord        1.4.5-2         1.4.5-3          -0.46 MiB       0.10 MiB
multilib/lib32-util-linux    2.36.2-1        2.37-1            0.05 MiB       0.43 MiB
extra/libcolord                              1.4.5-3           1.21 MiB       0.17 MiB
extra/libinput               1.17.3-1        1.18.0-1          0.01 MiB       0.28 MiB
core/linux                   5.12.8.arch1-1  5.12.9.arch1-1    0.00 MiB      94.91 MiB
core/linux-headers           5.12.8.arch1-1  5.12.9.arch1-1    0.00 MiB      23.30 MiB
extra/linux-zen              5.12.8.zen1-1   5.12.9.zen1-1     0.00 MiB      98.38 MiB
extra/linux-zen-headers      5.12.8.zen1-1   5.12.9.zen1-1     0.00 MiB      24.16 MiB
community/npm                7.15.1-1        7.16.0-1          0.00 MiB       2.20 MiB
extra/nvidia                 465.31-6        465.31-7          0.01 MiB      23.42 MiB
extra/openexr                3.0.3-1         3.0.4-1           0.00 MiB       1.02 MiB
extra/polkit                 0.118-1         0.119-1           0.01 MiB       0.39 MiB
extra/poppler                21.06.0-1       21.06.1-1         0.00 MiB       1.30 MiB
extra/poppler-glib           21.06.0-1       21.06.1-1         0.00 MiB       0.25 MiB
core/util-linux              2.36.2-1        2.37-1           -0.22 MiB       2.52 MiB
core/util-linux-libs         2.36.2-1        2.37-1            0.04 MiB       0.40 MiB

Total Download Size:   329.85 MiB
Total Installed Size:  747.90 MiB
Net Upgrade Size:       -0.55 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 polkit-0.119-1-x86_64                                                                                              400.7 KiB  1123 KiB/s 00:00 [########################################################################################] 100%
 util-linux-libs-2.37-1-x86_64                                                                                      411.3 KiB  1047 KiB/s 00:00 [########################################################################################] 100%
 libcolord-1.4.5-3-x86_64                                                                                           171.3 KiB   370 KiB/s 00:00 [########################################################################################] 100%
 colord-sane-1.4.5-3-x86_64                                                                                           8.6 KiB   171 KiB/s 00:00 [########################################################################################] 100%
 poppler-glib-21.06.1-1-x86_64                                                                                      255.8 KiB  1531 KiB/s 00:00 [########################################################################################] 100%
 util-linux-2.37-1-x86_64                                                                                             2.5 MiB  3.78 MiB/s 00:01 [########################################################################################] 100%
 gtk-update-icon-cache-1:4.2.1-2-x86_64                                                                              17.1 KiB   322 KiB/s 00:00 [########################################################################################] 100%
 libinput-1.18.0-1-x86_64                                                                                           284.7 KiB   940 KiB/s 00:00 [########################################################################################] 100%
 poppler-21.06.1-1-x86_64                                                                                          1333.8 KiB  1970 KiB/s 00:01 [########################################################################################] 100%
 lib32-colord-1.4.5-3-x86_64                                                                                        107.0 KiB   923 KiB/s 00:00 [########################################################################################] 100%
 lib32-util-linux-2.37-1-x86_64                                                                                     439.0 KiB  1416 KiB/s 00:00 [########################################################################################] 100%
 colord-1.4.5-3-x86_64                                                                                             1723.4 KiB   713 KiB/s 00:02 [########################################################################################] 100%
 gtk3-1:3.24.29-2-x86_64                                                                                              7.5 MiB  2.34 MiB/s 00:03 [########################################################################################] 100%
 linux-zen-headers-5.12.9.zen1-1-x86_64                                                                              24.2 MiB  2048 KiB/s 00:12 [########################################################################################] 100%
 npm-7.16.0-1-any                                                                                                     2.2 MiB  2009 KiB/s 00:01 [########################################################################################] 100%
 electron11-11.4.8-1-x86_64                                                                                          47.4 MiB  2.81 MiB/s 00:17 [########################################################################################] 100%
 openexr-3.0.4-1-x86_64                                                                                            1042.2 KiB  1579 KiB/s 00:01 [########################################################################################] 100%
 nvidia-465.31-7-x86_64                                                                                              23.4 MiB  2.09 MiB/s 00:11 [########################################################################################] 100%
 linux-headers-5.12.9.arch1-1-x86_64                                                                                 23.3 MiB   831 KiB/s 00:29 [########################################################################################] 100%
 linux-5.12.9.arch1-1-x86_64                                                                                         94.9 MiB  3.20 MiB/s 00:30 [########################################################################################] 100%
 linux-zen-5.12.9.zen1-1-x86_64                                                                                      98.4 MiB  2.88 MiB/s 00:34 [########################################################################################] 100%
 Total (21/21)                                                                                                      329.8 MiB  8.98 MiB/s 00:37 [########################################################################################] 100%
(21/21) checking keys in keyring                                                                                                                [########################################################################################] 100%
(21/21) checking package integrity                                                                                                              [########################################################################################] 100%
(21/21) loading package files                                                                                                                   [########################################################################################] 100%
(21/21) checking for file conflicts                                                                                                             [########################################################################################] 100%
(21/21) checking available disk space                                                                                                           [########################################################################################] 100%
warning: could not get file information for usr/lib/modules/5.12.8-arch1-1/extramodules/nvidia-uvm.ko.xz
:: Running pre-transaction hooks...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules
==> dkms remove --no-depmod -m vboxhost -v 6.1.22_OSE -k 5.12.8-zen1-1-zen
==> dkms remove --no-depmod -m nvidia -v 465.31 -k 5.12.8-arch1-1
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
==> dkms remove --no-depmod -m vboxhost -v 6.1.22_OSE -k 5.12.8-arch1-1
==> dkms remove --no-depmod -m nvidia -v 465.31 -k 5.12.8-zen1-1-zen
==> depmod 5.12.8-zen1-1-zen
==> depmod 5.12.8-arch1-1
:: Processing package changes...
( 1/21) upgrading util-linux-libs                                                                                                               [########################################################################################] 100%
( 2/21) upgrading util-linux                                                                                                                    [########################################################################################] 100%
( 3/21) upgrading polkit                                                                                                                        [########################################################################################] 100%
( 4/21) installing libcolord                                                                                                                    [########################################################################################] 100%
( 5/21) upgrading colord                                                                                                                        [########################################################################################] 100%
( 6/21) upgrading poppler                                                                                                                       [########################################################################################] 100%
( 7/21) upgrading poppler-glib                                                                                                                  [########################################################################################] 100%
( 8/21) upgrading colord-sane                                                                                                                   [########################################################################################] 100%
( 9/21) upgrading gtk-update-icon-cache                                                                                                         [########################################################################################] 100%
(10/21) upgrading libinput                                                                                                                      [########################################################################################] 100%
(11/21) upgrading gtk3                                                                                                                          [########################################################################################] 100%
(12/21) upgrading electron11                                                                                                                    [########################################################################################] 100%
(13/21) upgrading lib32-util-linux                                                                                                              [########################################################################################] 100%
(14/21) upgrading lib32-colord                                                                                                                  [########################################################################################] 100%
(15/21) upgrading linux                                                                                                                         [########################################################################################] 100%
(16/21) upgrading linux-headers                                                                                                                 [########################################################################################] 100%
(17/21) upgrading linux-zen                                                                                                                     [########################################################################################] 100%
(18/21) upgrading linux-zen-headers                                                                                                             [########################################################################################] 100%
(19/21) upgrading npm                                                                                                                           [########################################################################################] 100%
(20/21) upgrading nvidia                                                                                                                        [########################################################################################] 100%
(21/21) upgrading openexr                                                                                                                       [########################################################################################] 100%
:: Running post-transaction hooks...
( 1/14) Creating system user accounts...
( 2/14) Reloading system manager configuration...
( 3/14) Creating temporary files...
( 4/14) Reloading device manager configuration...
( 5/14) Arming ConditionNeedsUpdate...
( 6/14) Updating module dependencies...
( 7/14) Install DKMS modules
==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.9-arch1-1

Good news! Module version 465.31 for nvidia.ko.xz
exactly matches what is already found in kernel 5.12.9-arch1-1.
DKMS will not replace this module.
You may override by specifying --force.

Good news! Module version 465.31 for nvidia-modeset.ko.xz
exactly matches what is already found in kernel 5.12.9-arch1-1.
DKMS will not replace this module.
You may override by specifying --force.

Good news! Module version 465.31 for nvidia-drm.ko.xz
exactly matches what is already found in kernel 5.12.9-arch1-1.
DKMS will not replace this module.
You may override by specifying --force.
==> dkms install --no-depmod -m vboxhost -v 6.1.22_OSE -k 5.12.9-zen1-1-zen
==> dkms install --no-depmod -m vboxhost -v 6.1.22_OSE -k 5.12.9-arch1-1
==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.9-zen1-1-zen
==> depmod 5.12.9-arch1-1
==> depmod 5.12.9-zen1-1-zen
( 8/14) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.12.9-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.12.9-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 5.12.9-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 5.12.9-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful
( 9/14) Removing unnecessary cached files (keeping the latest two)…
removed '/var/cache/pacman/pkg/electron11-11.4.6-1-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/nvidia-465.31-5-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/linux-headers-5.12.7.arch1-1-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/npm-7.15.0-1-any.pkg.tar.zst'
removed '/var/cache/pacman/pkg/poppler-21.05.0-1-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/linux-zen-5.12.7.zen1-1-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/linux-zen-headers-5.12.7.zen1-1-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/libinput-1.17.2-2-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/poppler-glib-21.05.0-1-x86_64.pkg.tar.zst'
removed '/var/cache/pacman/pkg/linux-5.12.7.arch1-1-x86_64.pkg.tar.zst'

==> finished: 10 packages removed (disk space saved: 315.66 MiB)
(10/14) Reloading system bus configuration...
(11/14) Compiling GSettings XML schema files...
(12/14) Updating GRUB Config
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
done
(13/14) Probing GTK3 input method modules...
(14/14) Updating the desktop file MIME type cache...
:: Looking for AUR upgrades
:: Looking for devel upgrades
 there is nothing to do

Last edited by cnekmp (2021-06-04 14:28:33)

Offline

#2 2021-06-04 13:44:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,334

Re: [SOLVED] Errors during Nvidia modules and Kernel packages update

You have the nvidia and the nvidia-dkms package installed which isn't inherently necessary, what happens if you remove the nvidia package.

Offline

#3 2021-06-04 13:52:25

cnekmp
Member
Registered: 2021-06-04
Posts: 3

Re: [SOLVED] Errors during Nvidia modules and Kernel packages update

V1del wrote:

You have the nvidia and the nvidia-dkms package installed which isn't inherently necessary, what happens if you remove the nvidia package.

Xorg fails to start after reboot in case if "nvidia" package removed. Installing it back fixes Xorg.

List of installed nvidia packages:

[x@unknown ~]$ pacman -Qs nvidia
local/cuda 11.3.0-2
    NVIDIA's GPU programming toolkit
local/egl-wayland 1.1.7-1
    EGLStream-based Wayland external platform
local/gwe 0.15.3-1
    A system utility for controlling NVIDIA GPUs
local/lib32-libvdpau 1.4-1
    Nvidia VDPAU library
local/lib32-nvidia-utils 465.31-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 465.31-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl 465.27-1
    NVIDIA NV-CONTROL X extension
local/nvidia 465.31-7
    NVIDIA drivers for linux
local/nvidia-dkms 465.31-1
    NVIDIA drivers - module sources
local/nvidia-settings 465.27-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 465.31-1
    NVIDIA drivers utilities
local/opencl-nvidia 465.31-1
    OpenCL implemention for NVIDIA
[x@unknown ~]$

Xorg log after "nvidia" package removed:

[     3.541] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[     3.542]
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[     3.542] Build Operating System: Linux Archlinux
[     3.542] Current Operating System: Linux unknown 5.12.9-arch1-1 #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000 x86_64
[     3.542] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6f0e6067-fcdd-4c4d-a67b-49800aeb5155 rw loglevel=3 nvidia-drm.modeset=1
[     3.542] Build Date: 13 April 2021  03:12:10PM
[     3.542]
[     3.542] Current version of pixman: 0.40.0
[     3.542] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     3.542] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     3.543] (==) Log file: "/home/x/.local/share/xorg/Xorg.0.log", Time: Fri Jun  4 17:46:44 2021
[     3.546] (==) Using config file: "/etc/X11/xorg.conf"
[     3.546] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     3.546] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     3.548] (==) ServerLayout "Layout0"
[     3.548] (**) |-->Screen "Screen0" (0)
[     3.548] (**) |   |-->Monitor "Monitor0"
[     3.548] (**) |   |-->Device "Device0"
[     3.548] (**) |-->Input Device "Keyboard0"
[     3.548] (**) |-->Input Device "Mouse0"
[     3.548] (**) Option "Xinerama" "0"
[     3.548] (==) Automatically adding devices
[     3.548] (==) Automatically enabling devices
[     3.548] (==) Automatically adding GPU devices
[     3.548] (==) Automatically binding GPU devices
[     3.548] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     3.550] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/OTF".
[     3.550] 	Entry deleted from font path.
[     3.550] 	(Run 'mkfontdir' on "/usr/share/fonts/OTF").
[     3.550] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/Type1".
[     3.550] 	Entry deleted from font path.
[     3.550] 	(Run 'mkfontdir' on "/usr/share/fonts/Type1").
[     3.553] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[     3.553] (==) ModulePath set to "/usr/lib/xorg/modules"
[     3.553] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     3.553] (WW) Disabling Keyboard0
[     3.553] (WW) Disabling Mouse0
[     3.553] (II) Module ABI versions:
[     3.553] 	X.Org ANSI C Emulation: 0.4
[     3.553] 	X.Org Video Driver: 24.1
[     3.553] 	X.Org XInput driver : 24.1
[     3.553] 	X.Org Server Extension : 10.0
[     3.554] (++) using VT number 1

[     3.557] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[     3.560] (--) PCI:*(1@0:0:0) 10de:1f06:1043:8730 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/131072
[     3.560] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     3.560] (II) LoadModule: "glx"
[     3.561] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     3.574] (II) Module glx: vendor="X.Org Foundation"
[     3.574] 	compiled for 1.20.11, module version = 1.0.0
[     3.574] 	ABI class: X.Org Server Extension, version 10.0
[     3.574] (II) LoadModule: "nvidia"
[     3.574] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     3.582] (II) Module nvidia: vendor="NVIDIA Corporation"
[     3.582] 	compiled for 1.6.99.901, module version = 1.0.0
[     3.582] 	Module class: X.Org Video Driver
[     3.582] (II) NVIDIA dlloader X Driver  465.31  Thu May 13 22:19:15 UTC 2021
[     3.582] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     3.583] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[     3.584] (II) Loading sub module "fb"
[     3.584] (II) LoadModule: "fb"
[     3.584] (II) Loading /usr/lib/xorg/modules/libfb.so
[     3.585] (II) Module fb: vendor="X.Org Foundation"
[     3.585] 	compiled for 1.20.11, module version = 1.0.0
[     3.585] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     3.585] (II) Loading sub module "wfb"
[     3.585] (II) LoadModule: "wfb"
[     3.585] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     3.586] (II) Module wfb: vendor="X.Org Foundation"
[     3.586] 	compiled for 1.20.11, module version = 1.0.0
[     3.586] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     3.586] (II) Loading sub module "ramdac"
[     3.586] (II) LoadModule: "ramdac"
[     3.586] (II) Module "ramdac" already built-in
[     3.594] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[     3.594] (EE) NVIDIA:     system's kernel log for additional error messages and
[     3.594] (EE) NVIDIA:     consult the NVIDIA README for details.
[     3.594] (EE) No devices detected.
[     3.594] (EE)
Fatal server error:
[     3.594] (EE) no screens found(EE)
[     3.594] (EE)
Please consult the The X.Org Foundation support
	 at http://wiki.x.org
 for help.
[     3.594] (EE) Please also check the log file at "/home/x/.local/share/xorg/Xorg.0.log" for additional information.
[     3.594] (EE)
[     3.601] (EE) Server terminated with error (1). Closing log file.

Offline

#4 2021-06-04 14:07:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,462

Re: [SOLVED] Errors during Nvidia modules and Kernel packages update

Removing the nvidia package will remove the kernel module and since nvidia and nvidia-dkms will end up adding the very same file, it does no longer exist from either source.
You need to dkms re-install it for the 5.12.9-arch1-1 kernel, https://wiki.archlinux.org/title/Dynami … ld_modules

Online

#5 2021-06-04 14:11:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,334

Re: [SOLVED] Errors during Nvidia modules and Kernel packages update

remove the nvidia package and retrigger a dkms rebuild by reinstalling the linux package or running

sudo dkms install -m nvidia -v 465.31

Offline

#6 2021-06-04 14:27:13

cnekmp
Member
Registered: 2021-06-04
Posts: 3

Re: [SOLVED] Errors during Nvidia modules and Kernel packages update

seth wrote:

Removing the nvidia package will remove the kernel module and since nvidia and nvidia-dkms will end up adding the very same file, it does no longer exist from either source.
You need to dkms re-install it for the 5.12.9-arch1-1 kernel, https://wiki.archlinux.org/title/Dynami … ld_modules

Thanks. Done. I hope I'll not get errors any more during next version upgrade, so I'm marking it as SOLVED.

Just tip for anyone who'll face up issue where after removing "nvidia" package and then "nvidia-dkms" modules will not rebuilt:

[x@unknown ~]$ sudo pacman -Rns nvidia
checking dependencies...

Packages (1) nvidia-465.31-7

Total Removed Size:  23.42 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing nvidia                                                  [########################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Removing unnecessary cached files (keeping the latest two)…
==> no candidate packages found for pruning
[x@unknown ~]$ sudo dkms install -m nvidia -v 465.31
Module nvidia/465.31 already installed on kernel 5.12.9-arch1-1/x86_64

Solution that worked for me was removing completely nvidia dkms modules, then reinstalling them and rebooting.

[x@unknown ~]$ sudo dkms remove -m nvidia -v 465.31 --all

-------- Uninstall Beginning --------
Module:  nvidia
Version: 465.31
Kernel:  5.12.9-arch1-1 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-arch1-1/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/

nvidia-modeset.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-arch1-1/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-drm.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-arch1-1/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

Removing original_module from DKMS tree for kernel 5.12.9-arch1-1 (x86_64)

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module:  nvidia
Version: 465.31
Kernel:  5.12.9-zen1-1-zen (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-zen1-1-zen/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-zen1-1-zen/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-modeset.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-zen1-1-zen/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-drm.ko.xz:
 - Uninstallation
   - Deleting from: /usr/lib/modules/5.12.9-zen1-1-zen/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.....

DKMS: uninstall completed.

------------------------------
Deleting module version: 465.31
completely from the DKMS tree.
------------------------------
Done.
[x@unknown ~]$ sudo dkms install -m nvidia -v 465.31

Creating symlink /var/lib/dkms/nvidia/465.31/source ->
                 /usr/src/nvidia-465.31

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j8 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=5.12.9-arch1-1 IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules........
cleaning build area...
Kernel cleanup unnecessary for this kernel.  Skipping...

DKMS: build completed.

nvidia.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/

nvidia-uvm.ko.xz:
Running module version sanity check.
 - Original module
   - Found /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/nvidia-uvm.ko.xz
   - Storing in /var/lib/dkms/nvidia/original_module/5.12.9-arch1-1/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/

nvidia-modeset.ko.xz:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/

nvidia-drm.ko.xz:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /usr/lib/modules/5.12.9-arch1-1/kernel/drivers/video/

depmod.....

DKMS: install completed.

And error is gone:

[x@unknown ~]$ sudo pacman -Qk | grep -v "0 missing"
[x@unknown ~]$

Last edited by cnekmp (2021-06-04 14:36:11)

Offline

Board footer

Powered by FluxBB