LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   NVidia driver install fails on Debian 6 (https://www.linuxquestions.org/questions/debian-26/nvidia-driver-install-fails-on-debian-6-a-890810/)

Arcane 07-09-2011 12:36 PM

NVidia driver install fails on Debian 6
 
Before you shout "OMG RTFM!" let me say i did. I followed all the steps(enabled non-free and contrib, executed given commands replacing &{VERSION} with -legacy173xx since i have FX 5200 and received no error messages during those commands in terminal) mentioned in this wiki about installation but at the end where comes config and launch part something is not working. First i had no existing xorg.conf after going through process and second when i execute nvidia-xconfig and make that file after restart it just doesn't launch xserver anymore. So i need rm xorg.conf to restart it without that file in /etc/X11. Also if i install with nvidia homepage .run file after it creates nouveau disable file then i can't set any normal resolution - it shows 0Hz refresh rate and shows some colored lines like rainbow. And if i combine this with another xorg.conf i get same message and it doesn't start at all. Either i'm missing some important detail or that wiki is bit outdated. Any ideas would be nice.

EDDY1 07-09-2011 01:24 PM

In order to get mine working I had to do it from console. For some reason I couldn't do it from a terminal.
Alos I follwowed the directions for setting up Compiz.

This is the 1 I used. It shows that you have to use both commands under link.
http://www.howtoforge.com/enabling-c...a-geforce-8200
X -configure
nvidia-xconfig

Arcane 07-10-2011 12:30 PM

Unfortunately even that guide didn't help. When i do startx after done making xorg.conf there is some large portion of info text which stays same. Most of it is about x server and linux and some it's content versions and paths. However it mentions some failure lines like:
- Error inserting nvidia (/lib path to nvidia.ko) No such device
- Failed to load NVidia kernel module
- Screens found but none have usable configuration
- Fatal server error
no screens found
- xinit: no such file or directory (errno 2) unable to connect to x server
xinit: no such process (errno 3) Server error
Another interesting thing is working xorg file path is /usr/share/X11/xorg.conf.d Hope this helps more. Once more - i did every step correctly written in above mentioned guides(i only skipped build custom kernel step in debian wiki since i use vanilla squeeze) and received no error messages and got confirmation everything downloaded and installed correctly. Problem is in xorg file setup untill then i can't even use nvidia-settings to save to file because it says i'm not using nvidia x driver and should enable doing nvidia-xconfig as root then restarting x server which is what i did already before without success.

widget 07-10-2011 01:26 PM

You may want to run, from the command prompt as root;
Code:

apt-get install --reinstall xinit
I am not sure how you installed but that package may be missing or corrupted. That command should fix either situation as far as startx goes. That is assuming the rest of the "x" stuff is installed.

gradinaruvasile 07-10-2011 02:09 PM

Quote:

Originally Posted by widget (Post 4410814)
You may want to run, from the command prompt as root;
Code:

apt-get install --reinstall xinit
I am not sure how you installed but that package may be missing or corrupted. That command should fix either situation as far as startx goes. That is assuming the rest of the "x" stuff is installed.

I dont think that it has to do with anything else but the nvidia driver and its installation procedure.

To the OP:

Please specify every single step you did (exactly your commands) for the installation.

About the nvidia .run driver from the nvidia site:
It works perfectly well (i used it on many coputers, Ubuntu and Debian and never had any problems with it) - but there are a few things that must be kept in mind:
1. The nouveau driver MUST be blacklisted.
2. Before installing, every nvidia-related package MUST be purged from the system to avoid conflicts.
3. The X server MUST be shut down during the installation - so this has to be done from a VT (virtual terminal).
4. The default gcc compiler MUST match the one used to compile the running kernel - otherwise the compiled nvidia.ko might be refused by the kernel at load time.
5. The driver MUST be reinstalled after every major kernel or any x server upgrade - because on major kernel upgrade the kernel module (nvidia.ko) has to be recompiled to match the new kernel and the x server has some components that are replaced by the nvidia driver and if the xserver packages are upgraded these will be rewritten and you will lose opengl.

Other than these above, the installation is very simple:
1. Switch to a VT and log in
2. stop the x server:

sudo service gdm3 stop

(if you use another display manager, use accordingly - ex. xdm or kdm)

3. Install the driver:

sudo /path/nvidiadriver.run

(change the names accordingly)

4. Start the display manager:

service gdm3 start

Arcane 07-10-2011 02:25 PM

Quote:

Originally Posted by widget (Post 4410814)
{...}I am not sure how you installed but that package may be missing or corrupted.{...}

Still nothing changes. I did Debian net-install base install. Then i installed Fluxbox and this time LXDE but i did same commands from base without DE or WM either and same result. If i need post some file content then let me know which one you need. Seems like another sign i should read about xorg and how it works since one more distro(PC-BSD) didn't work because of this file.
Quote:

Originally Posted by gradinaruvasile (Post 4410863)
{...}Please specify every single step you did (exactly your commands) for the installation.{...}

Same steps and commands mentioned in wiki page as i said. Really i have to copy&paste commands from there? If yes then i will in next post.

widget 07-10-2011 04:03 PM

I have had trouble booting with netinstalls because I did not have all the "x" stuff that is needed. This is the base of all your video out put.

I think if you try installing the packages "xorg" and "xserver-common" and they comes back as current that x is probably not your problem.

gradinaruvasile 07-11-2011 05:36 AM

Quote:

Originally Posted by Arcane (Post 4410886)
Still nothing changes. I did Debian net-install base install. Then i installed Fluxbox and this time LXDE but i did same commands from base without DE or WM either and same result. If i need post some file content then let me know which one you need. Seems like another sign i should read about xorg and how it works since one more distro(PC-BSD) didn't work because of this file.
Same steps and commands mentioned in wiki page as i said. Really i have to copy&paste commands from there? If yes then i will in next post.

You installed a Debian base system.
Do you have the necessary build packages installed? (the linux headers, gcc, build-essential). Because you need those for the installation process (namely the compile of the nvidia module).

Also, please paste here the /var/log/Xorg.0.log files content.

Arcane 07-11-2011 01:15 PM

Quote:

Originally Posted by gradinaruvasile (Post 4411430)
{...}Do you have the necessary build packages installed? (the linux headers, gcc, build-essential).{...}

Yes. Already installed and latest version it says in terminal and it also says Virtual packages can't be removed aswell.
Quote:

Also, please paste here the /var/log/Xorg.0.log files content.
Here you go. I also can show xorg.0.old.log if interested.

the trooper 07-11-2011 01:41 PM

From the log file it shows you are using Nouveau,this needs to be disabled before trying to install the Nvidia driver as pointed out earlier.
If you are having problems I'd recommend using Smxi which will automate the process for you,including dealing with Nouveau.
Here's a link to their site:

http://smxi.org/

Arcane 07-11-2011 01:46 PM

Quote:

Originally Posted by the trooper (Post 4411856)
From the log file it shows you are using Nouveau,this needs to be disabled before trying to install the Nvidia driver as pointed out earlier.{...}

Don't worry i did disable and afterwards installed driver and yes i'm using other driver because otherwise i can't use Debian at all with GUI(I'm not that much noob as you may think from this issue). Anyway ill go check that website.

the trooper 07-11-2011 01:47 PM

So you have the driver installed now?.

Arcane 07-11-2011 02:00 PM

Quote:

Originally Posted by the trooper (Post 4411861)
So you have the driver installed now?.

I dunno if it is completed(maybe some command could check if all needed stuff are installed?) but i did go through all step-by-step guide mentioned in wiki. I'm using Nouveau driver because this works without that file like before. I just want to know what should i edit in that xorg config file or additionally install so that it will work.

the trooper 07-11-2011 02:16 PM

You can install as many packages as you like,but until you stop Nouveau loading you will not be able to install the Nvidia driver.
If it was me I would ctrl-alt-f1 to a tty,remove anything Nvidia related via apt-get/aptitude,then install smxi with:

Code:

# as root, run the following command
cd /usr/local/bin && wget -Nc smxi.org/smxi.zip && unzip smxi.zip && smxi

Just answer the questions when prompted, and continue to graphics driver install.

Simples.

Arcane 07-11-2011 03:21 PM

Ok. I did try that but no success.. I followed instruction - downloaded files, from tty executed it, then disabled nouveau with that file that creates in /etc/modprobe.d location, restarted PC, run again from shell that sgfxi and installed everything but still nothing. Here is files after that process: xorg.conf Xorg.0.log Xorg.0.old.log and Nouveau
Code:

# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0

disable file content. Hope something will be more clear now. I'm just wondering 2 things: Shall i reinstall Debian 6 with full DE this time from net install? Is that wiki page outdated for Squeeze?

gradinaruvasile 07-11-2011 04:43 PM

Hm. That xorg.conf looks overly complicated. Te nvidia installer does a very good job in most cases in auto-generating the xorg.conf file.

Rename that xorg.conf of yours and issue a "sudo nvidia-xconfig" command in a terminal then restart the x server.

EDDY1 07-11-2011 07:58 PM

his 1 has 5 different ways to install + troubleshooting.

the trooper 07-12-2011 08:54 AM

Looking at your log file,I've noticed the following:

Code:

Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-686 root=UUID=65489270-556d-4ee3-ab59-352bf8ae69a7 ro quiet
Which is different to what I have on my system,try adding the following to /etc/default/grub:

Code:

nomodeset nouveau.modeset=0
You will need to run update-grub after.
Then try to reinstall the driver again.

Quote:

Shall i reinstall Debian 6 with full DE this time from net install
What Xorg packages have you installed on your system?,here's what I have using Testing:

Code:

ade@Pc1:~$ dpkg -l | grep xorg
ii  xserver-xorg                                1:7.6+7                          X.Org X server
ii  xserver-xorg-core                          2:1.10.2.902-1                  Xorg X server - core server
ii  xserver-xorg-input-evdev                    1:2.6.0-2+b1                    X.Org X server -- evdev input driver
ii  xserver-xorg-video-vesa                    1:2.3.0-7                        X.Org X server -- VESA display driver

Plus the Nvidia driver obviously.

Arcane 07-12-2011 02:20 PM

Quote:

Originally Posted by gradinaruvasile (Post 4412013)
Hm. That xorg.conf looks overly complicated. Te nvidia installer does a very good job in most cases in auto-generating the xorg.conf file.

Rename that xorg.conf of yours and issue a "sudo nvidia-xconfig" command in a terminal then restart the x server.

Yes in "most cases" but i guess this is not one of them. Also i did + i don't use sudo because either i go to root mode or login as root.
Quote:

Originally Posted by EDDY1 (Post 4412116)
his 1 has 5 different ways to install + troubleshooting.

Sorry i didn't understand this..
Quote:

Originally Posted by the trooper (Post 4412665)
{...}try adding the following to /etc/default/grub:
Code:

nomodeset nouveau.modeset=0
You will need to run update-grub after.
Then try to reinstall the driver again.{...}

Grub thing failed + i use Ubuntu grub menu atm. Got this message.
Code:

root@tdbaltic:~# update-grub
/etc/default/grub: 32: nomodeset: not found

Quote:

{...}What Xorg packages have you installed on your system?{...}
Code:

root@tdbaltic:~# dpkg -l | grep xorg
ii  xserver-xorg                                  1:7.5+8                        the X.Org X server
ii  xserver-xorg-core                            2:1.7.7-13                    Xorg X server - core server
ii  xserver-xorg-input-all                        1:7.5+8                        the X.Org X server -- input driver metapackage
ii  xserver-xorg-input-evdev                      1:2.3.2-6                      X.Org X server -- evdev input driver
ii  xserver-xorg-input-synaptics                  1.2.2-2                        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom                      0.10.5+20100416-1              X.Org X server -- Wacom input driver
ii  xserver-xorg-video-all                        1:7.5+8                        the X.Org X server -- output driver metapackage
ii  xserver-xorg-video-apm                        1:1.2.2-2                      X.Org X server -- APM display driver
ii  xserver-xorg-video-ark                        1:0.7.2-2                      X.Org X server -- ark display driver
ii  xserver-xorg-video-ati                        1:6.13.1-2+squeeze1            X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-chips                      1:1.2.3-1                      X.Org X server -- Chips display driver
ii  xserver-xorg-video-cirrus                    1:1.3.2-2+squeeze1            X.Org X server -- Cirrus display driver
ii  xserver-xorg-video-fbdev                      1:0.4.2-2                      X.Org X server -- fbdev display driver
ii  xserver-xorg-video-geode                      2.11.9-7                      X.Org X server -- Geode GX2/LX display driver
ii  xserver-xorg-video-i128                      1:1.3.3-2                      X.Org X server -- i128 display driver
ii  xserver-xorg-video-i740                      1:1.3.2-2                      X.Org X server -- i740 display driver
ii  xserver-xorg-video-intel                      2:2.13.0-6                    X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-mach64                    6.8.2-3                        X.Org X server -- ATI Mach64 display driver
ii  xserver-xorg-video-mga                        1:1.4.11.dfsg-4+squeeze1      X.Org X server -- MGA display driver
ii  xserver-xorg-video-neomagic                  1:1.2.4-3                      X.Org X server -- Neomagic display driver
ii  xserver-xorg-video-nouveau                    1:0.0.15+git20100329+7858345-5 X.Org X server -- Nouveau display driver (experimental)
ii  xserver-xorg-video-nv                        1:2.1.17-3                    X.Org X server -- NV display driver
ii  xserver-xorg-video-openchrome                1:0.2.904+svn842-2            X.Org X server -- VIA display driver
ii  xserver-xorg-video-r128                      6.8.1-3                        X.Org X server -- ATI r128 display driver
ii  xserver-xorg-video-radeon                    1:6.13.1-2+squeeze1            X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-rendition                  1:4.2.3-3                      X.Org X server -- Rendition display driver
ii  xserver-xorg-video-s3                        1:0.6.3-2                      X.Org X server -- legacy S3 display driver
ii  xserver-xorg-video-s3virge                    1:1.10.4-2                    X.Org X server -- S3 ViRGE display driver
ii  xserver-xorg-video-savage                    1:2.3.1-2                      X.Org X server -- Savage display driver
ii  xserver-xorg-video-siliconmotion              1:1.7.3-2                      X.Org X server -- SiliconMotion display driver
ii  xserver-xorg-video-sis                        1:0.10.3-1                    X.Org X server -- SiS display driver
ii  xserver-xorg-video-sisusb                    1:0.9.3-2                      X.Org X server -- SiS USB display driver
ii  xserver-xorg-video-tdfx                      1:1.4.3-2                      X.Org X server -- tdfx display driver
ii  xserver-xorg-video-trident                    1:1.3.3-2                      X.Org X server -- Trident display driver
ii  xserver-xorg-video-tseng                      1:1.2.3-2+squeeze1            X.Org X server -- Tseng display driver
ii  xserver-xorg-video-vesa                      1:2.3.0-3                      X.Org X server -- VESA display driver
ii  xserver-xorg-video-vmware                    1:11.0.1-2                    X.Org X server -- VMware display driver
ii  xserver-xorg-video-voodoo                    1:1.2.3-2                      X.Org X server -- Voodoo display driver

So what now? Shall i give up? Am i missing something in net-install and need install from other source or do full install, is wiki outdated or maybe my PC is just too lame for Debian(it has ASRock motherboard btw..) and need get new?

gradinaruvasile 07-12-2011 02:39 PM

You are certain that you have absolutely no warnings or errors during installation from the .run file?

What give the following commands?

Code:

apt-cache policy gcc
ls -al /usr/bin/gcc
apt-cache policy build-essential
apt-cache policy linux-headers-`uname -r`
cat /proc/version

BTW you dont need anything else besides making sure that nouveau is blacklisted - no nomodeset or anything.

Arcane 07-12-2011 03:05 PM

Quote:

Originally Posted by gradinaruvasile (Post 4412986)
You are certain that you have absolutely no warnings or errors during installation from the .run file?{...}

Positive. It only warns about nouveau but then i allow it to create disable file, then restart PC and reinstall .run without any messages of failure but when i try start X i just doesn't work and says to restart when it be configured properly.
Quote:

{...}What give the following commands?{...}
Code:

root@tdbaltic:~# apt-cache policy gcc
gcc:
  Installed: 4:4.4.5-1
  Candidate: 4:4.4.5-1
  Version table:
 *** 4:4.4.5-1 0
        500 http://cdn.debian.net/debian/ squeeze/main i386 Packages
        100 /var/lib/dpkg/status

Code:

root@tdbaltic:~# ls -al /usr/bin/gcc
lrwxrwxrwx 1 root root 7 2011-07-08 15:57 /usr/bin/gcc -> gcc-4.4

Code:

root@tdbaltic:~# apt-cache policy build-essential
build-essential:
  Installed: 11.5
  Candidate: 11.5
  Version table:
 *** 11.5 0
        500 http://cdn.debian.net/debian/ squeeze/main i386 Packages
        100 /var/lib/dpkg/status

Code:

root@tdbaltic:~# apt-cache policy linux-headers-`uname -r`
linux-headers-2.6.32-5-686:
  Installed: 2.6.32-35
  Candidate: 2.6.32-35
  Version table:
 *** 2.6.32-35 0
        500 http://cdn.debian.net/debian/ squeeze/main i386 Packages
        100 /var/lib/dpkg/status
    2.6.32-34squeeze1 0
        500 http://security.debian.org/ squeeze/updates/main i386 Packages

Code:

root@tdbaltic:~# cat /proc/version
Linux version 2.6.32-5-686 (Debian 2.6.32-35) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Jun 13 04:13:06 UTC 2011

P.S.One more thing i recently found was same problem on Fedora 14 with EasyLife mod. When Fedora 14 was latest not F15 it worked fine no questions asked no trouble. After that i reinstalled some small time ago and downloaded from archive(previous version from website) for F14 and then it behaves just like Debian here. Maybe it has to do with outdated drivers or stuff like wrong links(yes i noticed ati radeon in previous post too)?

gradinaruvasile 07-12-2011 03:55 PM

You have the default gcc at version 4.4 but your kernel is compiled with gcc 4.3.

You MUST make gcc 4.3 your default gcc as i mentioned before. You might have to install it (aptitude install gcc-4.3).
Then make sure the /usr/bin/gcc symlink points to /usr/bin/gcc-4.3:

Code:

rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.3 /usr/bin/gcc

But first make sure you installed gcc-4.3. Dont worry about that deleted file, it is just a symlink, the real executable is the gcc-4.x one.

After this, you have to clean up anything installed before and reinstall the driver.

the trooper 07-13-2011 07:11 AM

The only other thing I can think of is,are trying to install the downloaded Nvidia driver while you have the Debian Nvidia packages installed.
If so you will need to purge ALL Debian Nvidia packages BEFORE trying to install the downloaded version.
If this does not cure the problem I'm officially out of ideas.


All times are GMT -5. The time now is 02:40 PM.