LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2019, 10:10 AM   #1
argeloos
LQ Newbie
 
Registered: Aug 2013
Location: Nederland
Distribution: slackware
Posts: 13

Rep: Reputation: Disabled
unable to update nvidia driver after installing multilib


Slackware 14.2

I installed multilib using the instructions in this document:
https://docs.slackware.com/slackware...?do=export_pdf

Then I tried to update my nvidia driver, but I could no longer run the installer.

The first error seemed solvable: gcc was different, do CC=gcc-5.3.0; export CC

The second error I was unable to solve:
> Unable to determine the version of the kernel sources located in '/lib/modules/4.4.14/source' [...] 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

As far as I can tell the path is correct. I tried different paths, but no luck. The installer wants to add "include/linux" and looks for "kernel.h"

However, "/lib/modules/4.4.14/source/include/linux/kernel.h" exists.
After searching I added "version.h", symlinked from "/lib/modules/4.4.14/source/include/linux/version.h". That did not help. So I'm stuck.

Thanks.
 
Old 01-22-2019, 02:07 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 2,211

Rep: Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223Reputation: 2223
What graphics card do you have, or more to the point what version nvidia driver are you using? I ask this because later versions have an option to "Ignore GCC" and works a treat.
 
Old 01-22-2019, 02:29 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
Originally Posted by argeloos View Post
Slackware 14.2

I installed multilib using the instructions in this document:
https://docs.slackware.com/slackware...?do=export_pdf

Then I tried to update my nvidia driver, but I could no longer run the installer.

The first error seemed solvable: gcc was different, do CC=gcc-5.3.0; export CC
Well that is strange, because the multilib gcc package for Slackware 14.2 is version 5.5.0. This is the same version as the gcc package you which you can find in the patches section of the Slackware 14.2 repository. The gcc-5.3.0 version is the original gcc which was shipped with Slackware 14.2. It should no longer be present on your computer.

Quote:
The second error I was unable to solve:
> Unable to determine the version of the kernel sources located in '/lib/modules/4.4.14/source' [...] 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

As far as I can tell the path is correct. I tried different paths, but no luck. The installer wants to add "include/linux" and looks for "kernel.h"

However, "/lib/modules/4.4.14/source/include/linux/kernel.h" exists.
After searching I added "version.h", symlinked from "/lib/modules/4.4.14/source/include/linux/version.h". That did not help. So I'm stuck.

Thanks.
Is 4.4.14 the version of the kernel you are actually running? Or did you forget to update the kernel-source package when you updated your kernel?
What is the result of running
Code:
uname -a
?
 
Old 01-22-2019, 06:25 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,018

Rep: Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686
It sounds like you have an up-to-date multilib but haven't updated your base 14.2 install with all the latest patches. This will lead to package mismatches between your 32bit and 64bit versions and is likely leaving you vulnerable to security issues.

Make sure you select a mirror in /etc/slackpkg/mirrors (pick a 14.2 mirror, not a -current mirror), then run the following commands:

Code:
slackpkg update gpg 
slackpkg update
slackpkg install-new
slackpkg upgrade-all
Once that is done, you will need to update your bootloader to point to the new kernel version. That process does vary based on what bootloader you use, so either google for your specific bootloader or post it here and we cna help walk you through it.
 
Old 01-23-2019, 03:30 AM   #5
argeloos
LQ Newbie
 
Registered: Aug 2013
Location: Nederland
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enorbet View Post
What graphics card do you have, or more to the point what version nvidia driver are you using? I ask this because later versions have an option to "Ignore GCC" and works a treat.
Thanks for responding.

Currently Iím using GeForce GT 740 with the driver 367.44. After adding multilib I tried reinstalling the same driver or installing the latest 410.93 driver. Same errors.

I was able to resolve the error about gcc with setting the CC environment variable to gcc-5.3.0. That seemed to me a better option than ignoring the difference. To quote

> ... mixing compiler versions between the kernel and kernel modules can result in subtle bugs that are difficult to diagnose.

If I install the driver ignoring gcc but as a result of this it wont run or only with errors, I canít revert because of the problem at hand; I need to be sure I can do a successful install. 🤔
 
Old 01-23-2019, 03:32 AM   #6
argeloos
LQ Newbie
 
Registered: Aug 2013
Location: Nederland
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
It sounds like you have an up-to-date multilib but haven't updated your base 14.2 install with all the latest patches. This will lead to package mismatches between your 32bit and 64bit versions and is likely leaving you vulnerable to security issues.

Make sure you select a mirror in /etc/slackpkg/mirrors (pick a 14.2 mirror, not a -current mirror), then run the following commands:

Code:
slackpkg update gpg 
slackpkg update
slackpkg install-new
slackpkg upgrade-all
Once that is done, you will need to update your bootloader to point to the new kernel version. That process does vary based on what bootloader you use, so either google for your specific bootloader or post it here and we cna help walk you through it.
Thanks. That looks interesting.

Iíve never used slackpkg, I will look into it.
 
Old 01-23-2019, 05:38 AM   #7
argeloos
LQ Newbie
 
Registered: Aug 2013
Location: Nederland
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by argeloos View Post
Thanks. That looks interesting.

Iíve never used slackpkg, I will look into it.
I followed the instructions by bassmadrigal, trusting the assigned ďguruĒ status. ;-)

That seems to have solved my problem (Iíve upgraded to the latest nvidia driver and also installed the 32bit compatibility part). X runs fine. Mplayer runs fine. Havenít tried anything else yet.

So thank you, bassmadrigal. ;-)

I now see Iíve also attracted the attention of Alien Bob. That is embarrassing. Yes, I plead guilty: for a long time Iíve had the bad habit of not updating everything promptly. I used to, but sometimes it brakes things that I installed later, and I donít like spending hours correcting stuff.
I apologize.
 
Old 01-23-2019, 05:51 AM   #8
argeloos
LQ Newbie
 
Registered: Aug 2013
Location: Nederland
Distribution: slackware
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Well that is strange, because the multilib gcc package for Slackware 14.2 is version 5.5.0. This is the same version as the gcc package you which you can find in the patches section of the Slackware 14.2 repository. The gcc-5.3.0 version is the original gcc which was shipped with Slackware 14.2. It should no longer be present on your computer.



Is 4.4.14 the version of the kernel you are actually running? Or did you forget to update the kernel-source package when you updated your kernel?
What is the result of running
Code:
uname -a
?
Hi Eric,

Properly updating stuff solved the my problem. Sorry to have wasted your time. Over the years I fallen into the habit of updating less often, partly out of fear of breaking stuff, partly because, well serious lack of time. Thanks for all your contributions.
 
Old 01-23-2019, 10:36 AM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,018

Rep: Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686Reputation: 3686
Quote:
Originally Posted by argeloos View Post
I now see Iíve also attracted the attention of Alien Bob. That is embarrassing. Yes, I plead guilty: for a long time Iíve had the bad habit of not updating everything promptly. I used to, but sometimes it brakes things that I installed later, and I donít like spending hours correcting stuff.
I apologize.
I do totally understand this. I tend to go long between my updates, which I do realize leaves me more open to possible vulnerabilities that have been patched. I will say that breakage doesn't happen very often on stable releases since Pat is pretty conservative in what updates he pushes out, but it's still possible.

As far as multilib, his packages are generated off a full patched 14.2 system, so if you decide to upgrade or install multilib, you'll want to make sure your base install is updated as well so that you won't get version mismatches.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Framebuffer with nvidia driver (Slackware64 14.1 multilib) Delcaran Linux - Desktop 2 12-23-2013 08:37 AM
[ANN] mk-slack64-multilib : A tool to create slackware64+multilib tree/iso phenixia2003 Slackware 5 12-28-2012 05:42 AM
[SOLVED] Multilib does not work after kernel update David93 Slackware 6 07-13-2011 07:35 PM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration