You are not logged in.

#1 2022-02-17 09:23:08

huntears
Member
Registered: 2022-02-17
Posts: 5

[SOLVED] Pacman failing to update the nvidia package

Hello,

My pacman cannot update the nvidia package for some reason :

$ sudo pacman -S nvidia
warning: nvidia-510.54-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-510.54-1

Total Installed Size:  27.54 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                 [#############################################################################] 100%
(1/1) checking package integrity                                                                                               [#############################################################################] 100%
(1/1) loading package files                                                                                                    [#############################################################################] 100%
(1/1) checking for file conflicts                                                                                              [#############################################################################] 100%
(1/1) checking available disk space                                                                                            [#############################################################################] 100%
:: Processing package changes...
(1/1) reinstalling nvidia                                                                                                      [#############################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Update NVIDIA module modules in initcpio
/bin/sh: line 1: usr: command not found
error: command failed to execute correctly

Here's the output with the more debug flags :

$ sudo pacman -S nvidia --verbose --debug
debug: pacman v6.0.1 - libalpm v13.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: Architecture: auto
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 85: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 94: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 593) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': https://archmirror.it/repos/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.osbeck.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirrors.niyawe.de/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://ftp.halifax.rwth-aachen.de/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.f4st.host/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.pseudoform.org/core/os/x86_64
debug: adding new server URL to database 'core': https://de.arch.mirror.kescher.at/core/os/x86_64
debug: adding new server URL to database 'core': https://europe.mirror.pkgbuild.com/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.thaller.ws/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.pkgbuild.com/core/os/x86_64
debug: adding new server URL to database 'core': https://phinau.de/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://arch.mirror.constant.com/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.telepoint.bg/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.mailtunnel.eu/core/os/x86_64
debug: adding new server URL to database 'core': https://mirrors.neusoft.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://america.mirror.pkgbuild.com/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.za.mirror.allworldit.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.cyberbits.asia/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://asia.mirror.pkgbuild.com/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 593) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': https://archmirror.it/repos/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.osbeck.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.uk.mirror.allworldit.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirrors.niyawe.de/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://ftp.halifax.rwth-aachen.de/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.f4st.host/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.pseudoform.org/extra/os/x86_64
debug: adding new server URL to database 'extra': https://de.arch.mirror.kescher.at/extra/os/x86_64
debug: adding new server URL to database 'extra': https://europe.mirror.pkgbuild.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.thaller.ws/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.pkgbuild.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://phinau.de/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://arch.mirror.constant.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.telepoint.bg/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.mailtunnel.eu/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirrors.neusoft.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://america.mirror.pkgbuild.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.za.mirror.allworldit.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.cyberbits.asia/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://asia.mirror.pkgbuild.com/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 593) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': https://archmirror.it/repos/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.osbeck.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://archlinux.uk.mirror.allworldit.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirrors.niyawe.de/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://ftp.halifax.rwth-aachen.de/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.f4st.host/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.pseudoform.org/community/os/x86_64
debug: adding new server URL to database 'community': https://de.arch.mirror.kescher.at/community/os/x86_64
debug: adding new server URL to database 'community': https://europe.mirror.pkgbuild.com/community/os/x86_64
debug: adding new server URL to database 'community': https://archlinux.thaller.ws/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.pkgbuild.com/community/os/x86_64
debug: adding new server URL to database 'community': https://phinau.de/arch/community/os/x86_64
debug: adding new server URL to database 'community': https://arch.mirror.constant.com/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.telepoint.bg/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://archlinux.mailtunnel.eu/community/os/x86_64
debug: adding new server URL to database 'community': https://mirrors.neusoft.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://america.mirror.pkgbuild.com/community/os/x86_64
debug: adding new server URL to database 'community': https://archlinux.za.mirror.allworldit.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://mirror.cyberbits.asia/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': https://asia.mirror.pkgbuild.com/community/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 593) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': https://archmirror.it/repos/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.osbeck.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.uk.mirror.allworldit.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirrors.niyawe.de/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://ftp.halifax.rwth-aachen.de/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.f4st.host/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.pseudoform.org/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://de.arch.mirror.kescher.at/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://europe.mirror.pkgbuild.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.thaller.ws/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.pkgbuild.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://phinau.de/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://arch.mirror.constant.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.telepoint.bg/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.mailtunnel.eu/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirrors.neusoft.edu.cn/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://america.mirror.pkgbuild.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.za.mirror.allworldit.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.cyberbits.asia/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://asia.mirror.pkgbuild.com/multilib/os/x86_64
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : nvidia
debug: loading package cache for repository 'core'
debug: opening archive /var/lib/pacman/sync/core.db
debug: added 247 packages to package cache for db 'core'
debug: loading package cache for repository 'extra'
debug: opening archive /var/lib/pacman/sync/extra.db
debug: added 2982 packages to package cache for db 'extra'
debug: adding package 'nvidia'
debug: loading package cache for repository 'local'
debug: added 1569 packages to package cache for db 'local'
warning: nvidia-510.54-1 is up to date -- reinstalling
debug: adding package nvidia-510.54-1 to the transaction add list
resolving dependencies...
debug: resolving target's dependencies
debug: started resolving dependencies
debug: checkdeps: package nvidia-510.54-1
debug: finished resolving dependencies
looking for conflicting packages...
debug: looking for conflicts
debug: check targets vs targets
debug: check targets vs targets
debug: check targets vs db and db vs targets
debug: check targets vs db
debug: check db vs targets
debug: checking dependencies
debug: checkdeps: package nvidia-510.54-1
debug: found cached pkg: /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: setting download size 0 for pkg nvidia
debug: sorting by dependencies
debug: started sorting dependencies
debug: sorting dependencies finished

Packages (1) nvidia-510.54-1

Total Installed Size:  27.54 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
debug: using cachedir: /var/cache/pacman/pkg/
debug: found cached pkg: /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: found cached pkg: /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst.sig
checking keyring...
debug: found signature key: 39E4B877E62EB915
debug: GPGME version: 1.17.0
debug: GPGME engine info: file=/usr/bin/gpg, home=/etc/pacman.d/gnupg/
debug: looking up key 39E4B877E62EB915 locally
debug: key lookup success, key exists
checking package integrity...
debug: found cached pkg: /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: sig data: iQIzBAABCAAdFiEEj8FaBklQqZ3RvRTdOeS4d+YuuRUFAmIK/1YACgkQOeS4d+YuuRUa8A//TxQgLSesMdCPaCAXKlVYGCSCYZ/1JUIjww/qQmEmJdn5rb549TsheBVnAHQJc4h+sNH6TllXIhnXgGtnwriAEGEzZQK1rFSIW3QrKP1x+HWIN3gfkXsVK2g5wJlchxK8p4zIX8WKdwpmeDXmKKpcZxELy3IC9RJ1X6Ex19fzOprAj8D8VuT8iCSVYheRy3y5ArUzb9Ee6j9thj6yBTFyLdoIBGs2AVxxB3mfCpYyCwVmBihKMgSpty2fjpvht2wMbqNldy7F0FEJwMcGOuW0T2oM+A0HH+Wud6LE2dMYMRv9xIskqjn2mJKCxunatpumr5z21TAb8wMk70UdCkqs+KA2g8qHw3CrwYqg9vTEkgyptyNvbDEniJjyTko3toVZddRZ93485RkNKXjzvPo7CVqyV4H1sY59YhWyy44JQh4mrs+r4DK2gFpTIJq5mnR3M1MLW/5XOC58tDEJFqOOL3Go1trOPnFXivAk9COCzGT6irvJ8zx1qAUGcNFVsUfD3sEDJt+IWUfNJRwthHQaYTGMTjGvHkZ152wDsRzcoqHMJ6Eik0ueOPMipY3Hs57NmV9ZKDvHyNAGmGusshhA4vd7XjyGYTjxU4sneNvqwdDEd5fB30JM4/uL+C37yn6xClMucTfrTWyOoZIxmDPY6KNmPCbs6VIEPLLl6gmvnPk=
debug: checking signature for /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: 1 signatures returned
debug: fingerprint: 8FC15A064950A99DD1BD14DD39E4B877E62EB915
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1644887894
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: 8FC15A064950A99DD1BD14DD39E4B877E62EB915, Sven-Hendrik Haase <svenstaro@archlinux.org>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
loading package files...
debug: found cached pkg: /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: replacing pkgcache entry with package file for target nvidia
debug: opening archive /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: starting package load for /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: found mtree for package /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst, getting file list
debug: finished mtree reading for /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: sorting package filelist for /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
checking for file conflicts...
debug: looking for file conflicts
debug: searching for file conflicts: nvidia
debug: searching for filesystem conflicts: nvidia
checking available disk space...
debug: checking available disk space
debug: discovered mountpoint: /tmp
debug: discovered mountpoint: /sys/kernel/tracing
debug: discovered mountpoint: /sys/kernel/security
debug: discovered mountpoint: /sys/kernel/debug
debug: discovered mountpoint: /sys/kernel/config
debug: discovered mountpoint: /sys/fs/pstore
debug: discovered mountpoint: /sys/fs/fuse/connections
debug: discovered mountpoint: /sys/fs/cgroup
debug: discovered mountpoint: /sys/fs/bpf
debug: discovered mountpoint: /sys/firmware/efi/efivars
debug: discovered mountpoint: /sys
debug: discovered mountpoint: /run/user/1000
debug: discovered mountpoint: /run/credentials/systemd-sysusers.service
debug: discovered mountpoint: /run
debug: discovered mountpoint: /proc/sys/fs/binfmt_misc
debug: discovered mountpoint: /proc/sys/fs/binfmt_misc
debug: discovered mountpoint: /proc
debug: discovered mountpoint: /dev/shm
debug: discovered mountpoint: /dev/pts
debug: discovered mountpoint: /dev/mqueue
debug: discovered mountpoint: /dev/hugepages
debug: discovered mountpoint: /dev
debug: discovered mountpoint: /boot
debug: discovered mountpoint: /
debug: loading fsinfo for /
debug: partition /, needed 0, cushion 5121, free 71060089
debug: parsing hook file /etc/pacman.d/hooks/100-systemd-boot.hook
debug: parsing hook file /etc/pacman.d/hooks/nvidia.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-binfmt.hook
debug: parsing hook file /usr/share/libalpm/hooks/dconf-update.hook
debug: parsing hook file /usr/share/libalpm/hooks/dbeaver.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-update-icon-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/fontconfig-32.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/ghc-unregister.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-desktop-database.hook
debug: parsing hook file /usr/share/libalpm/hooks/ghc-register.hook
debug: parsing hook file /usr/share/libalpm/hooks/71-dkms-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/90-mkinitcpio-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-update.hook
debug: parsing hook file /usr/share/libalpm/hooks/vimdoc.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/gvfsd.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules-32.hook
debug: parsing hook file /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/dbus-reload.hook
debug: parsing hook file /usr/share/libalpm/hooks/detect-old-perl-modules.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/60-depmod.hook
debug: parsing hook file /usr/share/libalpm/hooks/texlive-fmtutil.hook
debug: File targets are deprecated, use Path instead
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/texlive-updmap.hook
debug: parsing hook file /usr/share/libalpm/hooks/xorg-mkfontscale.hook
debug: parsing hook file /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders.hook
debug: parsing hook file /usr/share/libalpm/hooks/40-update-ca-trust.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-sysctl.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk4-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/glib-compile-schemas.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-udev-reload.hook
debug: parsing hook file /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders-32.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-hwdb.hook
debug: parsing hook file /usr/share/libalpm/hooks/90-update-appstream-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/texinfo-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/texinfo-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/70-dkms-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/fontconfig.hook
debug: parsing hook file /usr/share/libalpm/hooks/40-fontconfig-config.hook
debug: parsing hook file /usr/share/libalpm/hooks/mktexlsr.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-catalog.hook
debug: parsing hook file /usr/share/libalpm/hooks/20-systemd-sysusers.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-update-mime-database.hook
debug: parsing hook file /usr/share/libalpm/hooks/70-dkms-upgrade.hook
:: Processing package changes...
debug: installing packages
reinstalling nvidia...
debug: reinstalling package nvidia-510.54-1
debug: removing old package first (nvidia-510.54-1)
debug: removing 14 files
debug: unlinking /usr/share/licenses/nvidia/LICENSE
debug: keeping directory /usr/share/licenses/nvidia (in new package)
debug: keeping directory /usr/share/licenses (contains files)
debug: keeping directory /usr/share (contains files)
debug: unlinking /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia.ko.xz
debug: unlinking /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-uvm.ko.xz
debug: unlinking /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-peermem.ko.xz
debug: unlinking /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-modeset.ko.xz
debug: unlinking /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-drm.ko.xz
debug: keeping directory /usr/lib/modules/5.16.9-arch1-1/extramodules (in new package)
debug: keeping directory /usr/lib/modules/5.16.9-arch1-1 (contains files)
debug: keeping directory /usr/lib/modules (contains files)
debug: keeping directory /usr/lib (contains files)
debug: keeping directory /usr (contains files)
debug: removing database entry 'nvidia'
debug: removing entry 'nvidia' from 'local' cache
debug: opening archive /var/cache/pacman/pkg/nvidia-510.54-1-x86_64.pkg.tar.zst
debug: extracting files
debug: skipping extraction of '.BUILDINFO'
debug: skipping extraction of '.PKGINFO'
debug: extract: skipping dir extraction of /usr/
debug: extract: skipping dir extraction of /usr/lib/
debug: extract: skipping dir extraction of /usr/lib/modules/
debug: extract: skipping dir extraction of /usr/lib/modules/5.16.9-arch1-1/
debug: extract: skipping dir extraction of /usr/lib/modules/5.16.9-arch1-1/extramodules/
debug: extracting /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-drm.ko.xz
debug: extracting /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-modeset.ko.xz
debug: extracting /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-peermem.ko.xz
debug: extracting /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia-uvm.ko.xz
debug: extracting /usr/lib/modules/5.16.9-arch1-1/extramodules/nvidia.ko.xz
debug: extract: skipping dir extraction of /usr/share/
debug: extract: skipping dir extraction of /usr/share/licenses/
debug: extract: skipping dir extraction of /usr/share/licenses/nvidia/
debug: extracting /usr/share/licenses/nvidia/LICENSE
debug: updating database
debug: adding database entry 'nvidia'
debug: writing nvidia-510.54-1 DESC information back to db
debug: writing nvidia-510.54-1 FILES information back to db
debug: adding entry 'nvidia' in 'local' cache
debug: running ldconfig
debug: executing "/usr/bin/ldconfig" under chroot "/"
debug: call to waitpid succeeded
debug: parsing hook file /etc/pacman.d/hooks/100-systemd-boot.hook
debug: parsing hook file /etc/pacman.d/hooks/nvidia.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-binfmt.hook
debug: parsing hook file /usr/share/libalpm/hooks/dconf-update.hook
debug: parsing hook file /usr/share/libalpm/hooks/dbeaver.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-update-icon-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/fontconfig-32.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/ghc-unregister.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-desktop-database.hook
debug: parsing hook file /usr/share/libalpm/hooks/ghc-register.hook
debug: parsing hook file /usr/share/libalpm/hooks/71-dkms-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/90-mkinitcpio-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-update.hook
debug: parsing hook file /usr/share/libalpm/hooks/vimdoc.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/gvfsd.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules-32.hook
debug: parsing hook file /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/dbus-reload.hook
debug: parsing hook file /usr/share/libalpm/hooks/detect-old-perl-modules.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/60-depmod.hook
debug: parsing hook file /usr/share/libalpm/hooks/texlive-fmtutil.hook
debug: File targets are deprecated, use Path instead
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/texlive-updmap.hook
debug: parsing hook file /usr/share/libalpm/hooks/xorg-mkfontscale.hook
debug: parsing hook file /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders.hook
debug: parsing hook file /usr/share/libalpm/hooks/40-update-ca-trust.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-sysctl.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk4-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/glib-compile-schemas.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-udev-reload.hook
debug: parsing hook file /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders-32.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-hwdb.hook
debug: parsing hook file /usr/share/libalpm/hooks/90-update-appstream-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/texinfo-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/texinfo-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/70-dkms-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/fontconfig.hook
debug: parsing hook file /usr/share/libalpm/hooks/40-fontconfig-config.hook
debug: parsing hook file /usr/share/libalpm/hooks/mktexlsr.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-systemd-catalog.hook
debug: parsing hook file /usr/share/libalpm/hooks/20-systemd-sysusers.hook
debug: parsing hook file /usr/share/libalpm/hooks/30-update-mime-database.hook
debug: parsing hook file /usr/share/libalpm/hooks/70-dkms-upgrade.hook
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
debug: executing "/usr/share/libalpm/scripts/systemd-hook" under chroot "/"
debug: call to waitpid succeeded
(2/3) Updating module dependencies...
debug: executing "/usr/share/libalpm/scripts/depmod" under chroot "/"
debug: call to waitpid succeeded
(3/3) Update NVIDIA module modules in initcpio
debug: executing "/bin/sh" under chroot "/"
/bin/sh: line 1: usr: command not found
debug: call to waitpid succeeded
error: command failed to execute correctly
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: unregistering database 'extra'
debug: freeing package cache for repository 'extra'
debug: unregistering database 'community'
debug: unregistering database 'multilib'

I have no idea on what could cause this, and it makes Xorg not working at all.
Does anyone have any idea ?

Thank you in advance for any help.

PS: My system is completely up to date and I use the nvidia-dkms package with the nvidia package (It worked flawlessly until now)

Last edited by huntears (2022-02-17 09:56:50)

Offline

#2 2022-02-17 09:40:33

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,604
Website

Re: [SOLVED] Pacman failing to update the nvidia package

What is the content of /etc/pacman.d/hooks/nvidia.hook?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-02-17 09:41:23

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

Re: [SOLVED] Pacman failing to update the nvidia package

Post your pacman hook for adding the nvidia modules.  This is something you will have added manually. Also it's generally unnecessary and potentially problematic to combine nvidia and nvidia-dkms (unless you explicitly do not install linux-headers so that the "standard" kernel is only provided with the prebuilt module from nvidia), you just need nvidia-dkms and the linux-headers of the kernel you use so that the modules can be built.

Offline

#4 2022-02-17 09:43:24

huntears
Member
Registered: 2022-02-17
Posts: 5

Re: [SOLVED] Pacman failing to update the nvidia package

WorMzy wrote:

What is the content of /etc/pacman.d/hooks/nvidia.hook?

/etc/pacman.d/hooks/nvidia.hook

[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = nvidia
Target = linux

[Action]
Description = Update NVIDIA module modules in initcpio
Depends = mkinitcpio
When = PostTransaction
NeedsTargets
Exec = /bin/sh -c "while read -r trg; do case $trg in linux) exit 0; esac; done; usr /bin/mkinitcpio -P"

Offline

#5 2022-02-17 09:45:36

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

Re: [SOLVED] Pacman failing to update the nvidia package

And your /bin/sh is what exactly?

file /bin/sh

Offline

#6 2022-02-17 09:46:40

huntears
Member
Registered: 2022-02-17
Posts: 5

Re: [SOLVED] Pacman failing to update the nvidia package

V1del wrote:

Post your pacman hook for adding the nvidia modules.  This is something you will have added manually. Also it's generally unnecessary and potentially problematic to combine nvidia and nvidia-dkms (unless you explicitly do not install linux-headers so that the "standard" kernel is only provided with the prebuilt module from nvidia), you just need nvidia-dkms and the linux-headers of the kernel you use so that the modules can be built.

I just tried removing the nvidia package and reinstalling nvidia-dkms (I have to use it since I'm using zen), and Xorg still doesn't work.

Offline

#7 2022-02-17 09:47:20

huntears
Member
Registered: 2022-02-17
Posts: 5

Re: [SOLVED] Pacman failing to update the nvidia package

V1del wrote:

And your /bin/sh is what exactly?

file /bin/sh
$ file /bin/sh
/bin/sh: symbolic link to bash

Offline

#8 2022-02-17 09:51:19

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

Re: [SOLVED] Pacman failing to update the nvidia package

That doesn't mean anything, respectively this is completely normal if your mkinitcpio contains an outdated nvidia module and/or if you didn't redo the installation of the nvidia-dkms module by rerunning

dkms autoinstall

FWIW that service is on it's own not really problematic, you should be able to "recreate" this by just running

mkinitcpio -P

. IF it isn't fixed after that you actually have a different issue and should post a xorg log from the "failing session" as well.

FWIW your hook's line is wrong didn't read it closely enough before the last part should be /usr/bin/mkinitcpio without a space and the leading /, i.e.

Exec = /bin/sh -c "while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P"

Last edited by V1del (2022-02-17 09:53:53)

Offline

#9 2022-02-17 09:55:23

huntears
Member
Registered: 2022-02-17
Posts: 5

Re: [SOLVED] Pacman failing to update the nvidia package

V1del wrote:

That doesn't mean anything, respectively this is completely normal if your mkinitcpio contains an outdated nvidia module and/or if you didn't redo the installation of the nvidia-dkms module by rerunning

dkms autoinstall

FWIW that service is on it's own not really problematic, you should be able to "recreate" this by just running

mkinitcpio -P

. IF it isn't fixed after that you actually have a different issue and should post a xorg log from the "failing session" as well.

FWIW your hook's line is wrong didn't read it closely enough before the last part should be /usr/bin/mkinitcpio without a space and the leading /

$ dkms autoinstall 
Deprecated feature: REMAKE_INITRD
$ mkinitcpio -P
==> 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.16.9-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> 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.16.9-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> 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

It worked !

Thank you a lot for all the help.
I will now mark the thread as solved smile

Offline

#10 2022-02-17 10:00:31

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

Re: [SOLVED] Pacman failing to update the nvidia package

If you switched to nvidia-dkms you should fix that hook and make nvidia-dkms the Target= line instead of nvidia as well, otherwise you'll be here again the next time. And make sure linux-headers is installed if you indeed removed the normal nvidia package now.

Last edited by V1del (2022-02-17 10:01:05)

Offline

Board footer

Powered by FluxBB