Nvidia linux unable to find kernel source tree

Kernel update won’t allow Nvidia 1660 drivers on Ubuntu 22.04 — how do I fix?

Ran basic kernel update via built-in updates this morning. Now my NVidia 1660 is not recognized. Tried to install nvidia drivers again using:

$ sudo ubuntu-drivers autoinstall 
Traceback (most recent call last): File "/usr/bin/ubuntu-drivers", line 513, in greet() File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func 

nvidia 1660 driver

Now, the graphics show up like: llvmpipe (LLVM 13.0.1, 256 bits) Only 1 of my 2 monitors works and my display is at 1024×768. Have no idea what to do. Update I just found this but it seems to be a false positive. I attempted to run the NVidia provided .run file to install and saw this: I believe the important part is :

kernel source Then i tried switching in the panel and saw this: error kernel This must be happening to someone else, also, right? I have installed the kernel headers in an attempt to get the NVidia drivers to work: sudo apt-get install linux-headers-$(uname -r) I’m now downloading Ubuntu 22.04 iso, imaging a USB stick and going to see if I can repair the installation. So there is no «repair» option but when I run the USB stick version I get both monitors back and at a valid (high) resolution. This is ridiculous. All because I accepted a kernel update from the official updates. Oy! Definitive Answer I had to install Ubuntu 22.04.1 LTS again. I was very lucky because I had just done a complete backup of my system yesterday. Phew. Very lucky. Beware! I’ve always immediately installed kernel updates. I will now wait to install them if I am able. Restore Previous Kernel I also attempted to restore the previous kernel. Here is a snapshot of the choices I had: GRUB kernel list I tried each one, but none of them got me back to a good place. Even after trying each one I still only had 1 screen & it was stuck at 1024×768. 2022-10-26 I just started my computer up & it is back to 1 screen & 1024×768. I really dislike Ubuntu now. Would this happen on Mint?

Источник

unixforum.org

[Debian] Драйвера Nvidia (Раньше ставил, сейчас не могу)

[Debian] Драйвера Nvidia

Сообщение Mr_BBoy » 12.09.2007 20:15

Читайте также:  Linux find undefined symbol

Здравствуйте, раньше устанавливал дрова к Nvidia, все проходило гладко, даже у этого дистрибутива. Сейчас устанавливаю драйвера sh. 9629-pkg1.run, а мне в ответ «WARNING: Skipping the runlevel check (the utility `runlevel` failed to run)». Продолжаю установку и дальше вижу сообщение:

«ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the ‘kernel-source’ or ‘kernel-devel’ RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the ‘—kernel-source-path’
command line option.»

Kernel-headers установил, они находятся в каталоге /usr/src, там же лежит архив — Linux-source 2.6.18.tar.bz2
В логе написано:

nvidia-installer log file ‘/var/log/nvidia-installer.log’ creation time: Wed Sep 12 20:06:32 2007 option status: license pre-accepted : false update : false force update : false expert : false uninstall : false driver info : false precompiled interfaces : true no ncurses color : false query latest version : false OpenGL header files : true no questions : false silent : false no recursion : false no backup : false kernel module only : false sanity : false add this kernel : false no runlevel check : false no network : false no ABI note : false no RPMs : false no kernel module : false force SELinux : default no X server check : false force tls : (not specified) X install prefix : (not specified) X library install path : (not specified) X module install path : (not specified) OpenGL install prefix : (not specified) OpenGL install libdir : (not specified) utility install prefix : (not specified) utility install libdir : (not specified) doc install prefix : (not specified) kernel name : (not specified) kernel include path : (not specified) kernel source path : (not specified) kernel output path : (not specified) kernel install path : (not specified) proc mount point : /proc ui : (not specified) tmpdir : /tmp ftp mirror : ftp://download.nvidia.com RPM file list : (not specified) Using: nvidia-installer ncurses user interface WARNING: Skipping the runlevel check (the utility `runlevel` failed to run). -> License accepted. -> No precompiled kernel interface was found to match your kernel; would you li ke the installer to attempt to download a kernel interface for your kernel f rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No) -> No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface. -> Performing CC sanity check with CC=»cc». -> Performing CC version check with CC=»cc». ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the ‘—kernel-source-path’ command line option. ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Читайте также:  Network connections linux wifi

Ни как не разберусь причем тут runlevel и чего я еще не установил, вроде делал все как писали на форуме и все равно ERROR.
Help me please!

Источник

Ошибка при установке драйверов NViDIA

ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the ‘kernel-source’ or ‘kernel-devel’ RPM
installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the ‘—kernel-source-path’
command line option.
Сразу говорю, что в линукс я только новичек

Abstract Искусственный Интеллект (209163) Данил Афасьев, https://www.nvidia.com/download/index.aspx?lang=ru

Abstract Искусственный Интеллект (209163) Данил Афасьев, я говнолинуксами не пользуюсь, сам разбирайся, на форумах для ёжиков.

нормальный линукс поставь , что то на базе дэбиан .
там дрова для видео выбираются в настройках
а это для рабочих станций , и вообще корпоративная

Алексей Занн Искусственный Интеллект (146218) Данил Афасьев, да не , просто мелькает RedHat в описании проблемы .

Я просто проживаю в Крыму. Не думаю что он установит мне дрова, когда я не могу зайти без vpn на сайт nvidia

Алексей Занн Искусственный Интеллект (146218) Данил Афасьев, он дрова ставит из собственного репозитария , от Nvidia только название

стоп. установлены здесь дрова? Или это просто показываетчто у меня видюха

Алексей Занн Искусственный Интеллект (146218) Данил Афасьев, вроде стоят , попробуй просто Auto Install Proprietary Driver нажать скажет что то вроде уже установлено, или переустановит . автоматический режим

Для решения данной проблемы, необходимо установить пакет, содержащий исходные коды ядра Linux, который сейчас используется на вашей системе. Для Manjaro Linux это можно сделать следующим образом:

Откройте терминал и выполните команду:

sudo pacman -S linux-headers

Например, если вы используете ядро версии 5.10, выполните следующую команду:

sudo pacman -S linux510-headers

После установки заголовков ядра попробуйте установить драйверы NVIDIA снова. Если вы по-прежнему получаете ошибку, выполните следующие действия:

Откройте файл /etc/makepkg.conf в редакторе текста:

Раскомментируйте строку #BUILDDIR=/tmp/makepkg, удалив символ # в начале строки.

Сохраните и закройте файл.

Читайте также:  Linux посмотреть версии пакетов

Попробуйте установить драйверы NVIDIA снова.

Если это не помогло, то попробуйте найти информацию о решении данной проблемы на форумах сообщества Manjaro Linux или обратитесь за помощью к специалистам технической поддержки вашей системы.

Источник

The Linux Cluster

Linux Cluster Blog is a collection of how-to and tutorials for Linux Cluster and Enterprise Linux

Nvidia Drivers Issues – Unable to find the kernel source tree

Step 1: Check current kernel version

# uname -r 3.10.0-862.14.4.el7.x86_64

Step 2: Check installed kernel version

# yum info kernel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.0x.sg * elrepo: elrepo.mirror.angkasa.id * epel: sg.fedora.ipserverone.com * extras: mirror.0x.sg * updates: mirror.0x.sg Installed Packages Name : kernel Arch : x86_64 Version : 3.10.0 Release : 693.el7 Size : 59 M Repo : installed From repo : anaconda Summary : The Linux kernel URL : http://www.kernel.org/ License : GPLv2 Description : The kernel package contains the Linux kernel (vmlinuz), the core of any : Linux operating system. The kernel handles the basic functions : of the operating system: memory allocation, process allocation, device : input and output, etc. Name : kernel Arch : x86_64 Version : 3.10.0 Release : 862.14.4.el7 Size : 62 M Repo : installed From repo : updates Summary : The Linux kernel URL : http://www.kernel.org/ License : GPLv2 Description : The kernel package contains the Linux kernel (vmlinuz), the core of any : Linux operating system. The kernel handles the basic functions : of the operating system: memory allocation, process allocation, device : input and output, etc.

Step 3: Install Kernel-Devel and Kernel-Headers

# yum install kernel-devel kernel-headers -y
# yum info kernel-devel kernel-headers

Step 4: Check Kernel-Devel. Make sure the version is in-sync

# yum info kernel-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.0x.sg * elrepo: elrepo.mirror.angkasa.id * epel: sg.fedora.ipserverone.com * extras: mirror.0x.sg * updates: mirror.0x.sg Installed Packages Name : kernel-devel Arch : x86_64 Version : 3.10.0 Release : 862.14.4.el7 Size : 37 M Repo : installed From repo : updates Summary : Development package for building kernel modules to match the kernel URL : http://www.kernel.org/ License : GPLv2 Description : This package provides kernel headers and makefiles sufficient to build modules : against the kernel package.

Step 5: Check Kernel-Headers. Make sure the version is in-sync

# yum info kernel-headers Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.0x.sg * elrepo: elrepo.mirror.angkasa.id * epel: sg.fedora.ipserverone.com * extras: mirror.0x.sg * updates: mirror.0x.sg Installed Packages Name : kernel-headers Arch : x86_64 Version : 3.10.0 Release : 862.14.4.el7 Size : 3.6 M Repo : installed From repo : updates Summary : Header files for the Linux kernel for use by glibc URL : http://www.kernel.org/ License : GPLv2 Description : Kernel-headers includes the C header files that specify the interface : between the Linux kernel and userspace libraries and programs. The : header files define structures and constants that are needed for : building most standard programs and are also needed for rebuilding the : glibc package.

Источник

Оцените статью
Adblock
detector