Hello, Ive been trying out linux on varoius old laptops, but thought that thus time I should try it on my real dekstop. I was proad when I managed to get the broadcom drivers working using a usb stick However when I run the NVIDIA install I get the following error:
neither the ‘/usr/src/linux/include/linux/version.h’ nor the /usr/src/linux/generated/uapi/linux/version.h’ kernel header file exists. the most likely reason for this is that the kernel source files in ‘/usr/src/linux’ have not been configured
Its like he wants to rebuild my kernel just for installing some drivers.
My kernel version is:
**localhost:/usr/src/linux # uname -r**
**6.11.5-1-default if that helps.**
If that helps.
Chat gpt told me to try and install this exact kernel, but then I got this:
localhost:/usr/src/linux # sudo zypper install "kernel-default-devel=$(uname -r)"**
Problem retrieving files from 'openSUSE-20241031-0'.**
Empty destination in URI: hd:/?device=/dev/disk/by-id/wwn-0x50014ee65a4ac340-part2**
Please see the above error message for a hint.**
Warning: Skipping repository 'openSUSE-20241031-0' because of the above error.**
Some of the repositories have not been refreshed because of an error.**
Loading repository data...**
Reading installed packages...**
kernel-default-devel=6.11.5-1-default' not found in package names. Trying capabilities.**
No provider of 'kernel-default-devel=6.11.5-1-default' found.**
Resolving package dependencies...**
Nothing to do.**
Please help! Ive come so far! Manage to install broadcom drivers, diabled secure boot. Even managed to press E on the grub2 to disable old driver. I didnt knew any of those words a few days ago
This would seem to come from keeping the original installation media enabled, which is rarely what anyone wants or needs in a rolling distribution. What repos are enabled? zypper lr -u
6.11.5 devel is on the mirrors
# zypper se -s kernel-default-devel
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+----------------------+---------+------------+--------+-----------
| kernel-default-devel | package | 6.11.5-2.1 | x86_64 | OSS
#
Hello! Thank you so far. Ive learne now thanks to you how to disable faulty repos. I have also followed the instruction SDB:NVIDIA drivers - openSUSE Wiki .
I stopped after this instruction: zypper install-new-recommends --repo repo-non-free
Because I thought that was the last instruction, but Im not sure. I think the instructions arent straightforward for someone like me.
However I get this output now, but I think I had it directly after the install as well:
(this did a lot of stuff, I managed to read that some modules werent installed because they werent available. The text was green and not red, so I dont think this is my problem)
zypper se -si nvidia returns
staffan@localhost:~/Downloads> zypper se -si nvidia
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+----------------------------------+---------+----------------------+--------+-----------
i | kernel-firmware-nvidia | package | 20241018-1.1 | noarch | repo-oss
i+ | openSUSE-repos-Tumbleweed-NVIDIA | package | 20240712.dd8c2eb-1.2 | x86_64 | repo-oss
staffan@localhost:~/Downloads>
I don’t have a Turing GPU on hand, so I’m going somewhat blind here, but following this guide you should install the following:
zypper in nvidia-open-driver-G06-signed-kmp-default
zypper in nvidia-video-G06 nvidia-gl-G06 nvidia-compute-G06
Please be aware that you already have all the repos you need, so all the “addrepo” steps in the guide are not needed.
The above installation should rebuild the initrd (you should see “dracut” building stuff, don’t care about “missing modules…”, those are normal messages).
Upon reboot you should see a list of installed nvidia packages
Thank you, but that didnt help. After the kernel rebuild (was it?) I lost my wifi. I tried to install it the same way I did before (drivers on usb stick), but this time it didnt work. So I read about GRUB menu where you could select advance and select the old kernel. So this is written on the old kernel
While in the wifiless new kernel though, I still run the command, but even though it looked good while installing, lsmod returned the same as before. No new rows
This is obviously more complicated than I thought. Maybe this is not for me. I actually have a computer science degree, but that doesnt help like people think
Rats I really wanted to run linux on something other than my old laptop. I seriously start to believe my hardware is incompatible or something.
Installing the Broadcom drivers from source will give a few errors, so I patched them and offered them in the Packman Repo.
So add the Packman Repo: zypper ar -f https://ftp.halifax.rwth-aachen.de/packman/suse/openSUSE_Tumbleweed/ packman
And install the broadcom drivers: zypper in broadcom-wl broadcom-wl-kmp-default broadcom-wl-ueficert
If secure boot is enabled, see: https://en.opensuse.org/SDB:NVIDIA_drivers#Secureboot
This is also useful to get the packman key into the mok…
Also if installing the nvidia driver.
If you want to switch all installed packages to the ones from Packman use: zypper dup --allow-vendor-change --from packman
Now I think Ill have to give up.
I noticed I got a new kernel version after all of this, and one of the broadcom drivers also had a kernel version hardcoded to it. I tried downloading the new version of that rpm on to usb stick for transfer, but wifi still didnt get back after a --force install.
So now Im two steps behind. Ill guess this was my Linux adventure. I can install it on an old laptop, but then Ill know Ill never use it.
Don’t give up so easily, I don’t know your situation, but for a happy installation you need a wired connection at least to be able to run everything you need to use Wifi.