Nvidia-beta installation issue

hi there.

having a bit of an issue installing the latest nvidia-beta package ( wanna finally try sway on nvidia )

this is what I get when I try to install nvidia-beta

1 aur/nvidia-beta 495.29.05-1 (+347 2.65)
    NVIDIA drivers for Arch's official 'linux' package (beta version)
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
:: Checking for conflicts...
:: Checking for inner conflicts...
 ->
Package conflicts found:
 -> Installing nvidia-beta will remove: linux514-nvidia (nvidia)
 -> Conflicting packages will have to be confirmed manually
[Aur:1]  nvidia-beta-495.29.05-1

  1 nvidia-beta                      (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/0): nvidia-beta
  1 nvidia-beta                      (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: nvidia-beta
==> Making package: nvidia-beta 495.29.05-1 (Mon 25 Oct 2021 04:00:35 PM CEST)
==> Retrieving sources...
  -> Downloading NVIDIA-Linux-x86_64-495.29.05-no-compat32.run...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  222M  100  222M    0     0  11.2M      0  0:00:19  0:00:19 --:--:-- 11.1M
  -> Found 110-nvidia-change-dkms-conf.patch
==> Validating source files with sha256sums...
    NVIDIA-Linux-x86_64-495.29.05-no-compat32.run ... Passed
    110-nvidia-change-dkms-conf.patch ... Passed
==> Making package: nvidia-beta 495.29.05-1 (Mon 25 Oct 2021 04:00:57 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found NVIDIA-Linux-x86_64-495.29.05-no-compat32.run
  -> Found 110-nvidia-change-dkms-conf.patch
==> Validating source files with sha256sums...
    NVIDIA-Linux-x86_64-495.29.05-no-compat32.run ... Passed
    110-nvidia-change-dkms-conf.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
  -> Self-Extracting NVIDIA-Linux-x86_64-495.29.05-no-compat32.run...
Creating directory NVIDIA-Linux-x86_64-495.29.05-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 495.29.05...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file kernel/dkms.conf
==> Sources are ready.
==> Making package: nvidia-beta 495.29.05-1 (Mon 25 Oct 2021 04:01:16 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
/home/antouank/.cache/yay/nvidia-beta/PKGBUILD: line 34: /usr/src/linux/version: No such file or directory
Creating symlink /home/antouank/.cache/yay/nvidia-beta/src/nvidia/495.29.05/source -> /home/antouank/.cache/yay/nvidia-beta/src/NVIDIA-Linux-x86_64-495.29.05-no-compat32/nvidia-495.29.05

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' -j16 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=5.14.13-1-MANJARO IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules..................
cleaning build area...
Kernel cleanup unnecessary for this kernel.  Skipping...
==> Entering fakeroot environment...
==> Starting package()...
/home/antouank/.cache/yay/nvidia-beta/PKGBUILD: line 41: /usr/src/linux/version: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: nvidia-beta

this file /usr/src/linux/version seems to be missing.

any idea why?

( I force removed nvidia-utils before, because it was conflicting, but I doubt that’s the issue here )

If you want the Nvidia 495.29 then better switch to unstable branch, otherwise make sure you have the linux-headers for your running kernel installed.

I’m running 5.14.13-1-MANJARO and core/linux514-headers is already installed.

will switching to “unstable” help?
I’m on “testing” right now.

yes the latest nvidia driver is in the unstable branch

that worked, thank you! :+1:

still cannot get sway to work though.
I select it in the greeter menu, and it goes back to it again :confused:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.