DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So im having problems installing nvidia drivers. Im a bit of a linux noob
but i think theres a problem with my kernel.
I was following this guide http://wiki.debian.org/NvidiaGraphicsDrivers
nvidia-lernel-source fails to build.
AND when i do the alternative command "apt-get install nvidia-kernel-$(uname -r)" I get the error. "Couldn't find package nvidia-kernel-2.6.16-2-686"
So im stuck. I also tried the nvidia installer and it failed.
Im running debian etch which i freshly installed last night from a net install cd.
If ive left anything out let me know. And thanks in advance for any help.
So im having problems installing nvidia drivers. Im a bit of a linux noob
but i think theres a problem with my kernel.
I was following this guide http://wiki.debian.org/NvidiaGraphicsDrivers
nvidia-lernel-source fails to build.
AND when i do the alternative command "apt-get install nvidia-kernel-$(uname -r)" I get the error. "Couldn't find package nvidia-kernel-2.6.16-2-686"
So im stuck. I also tried the nvidia installer and it failed.
Im running debian etch which i freshly installed last night from a net install cd.
If ive left anything out let me know. And thanks in advance for any help.
Mitch
You need a line for unstable in your /etc/apt/sources.list the nvidia-kernel-source package is not in etch/testing at the moment.
I added sid to my sources list (I think) and it didn't change anything!
Code:
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 $
deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (2$
deb http://ftp.au.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.au.debian.org/debian/ etch main non-free contrib
deb http://ftp.au.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.au.debian.org/debian/ sid main non-free contrib
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
I then downloaded and ran "dpkg -i nvidia-kernel-source_1.0.8776-1_i386.deb"
but "m-a build nvidia" still failed!
Am i missing somethign obvious?
EDIT: I forgot to mention i did "apt-get install kernel-image-2.6-686" and it made no difference
I added sid to my sources list (I think) and it didn't change anything!
Code:
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 $
deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (2$
deb http://ftp.au.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.au.debian.org/debian/ etch main non-free contrib
deb http://ftp.au.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.au.debian.org/debian/ sid main non-free contrib
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
Hopefully you ran apt-get update after adding it.
Quote:
I then downloaded and ran "dpkg -i nvidia-kernel-source_1.0.8776-1_i386.deb"
but "m-a build nvidia" still failed!
Am i missing somethign obvious?
EDIT: I forgot to mention i did "apt-get install kernel-image-2.6-686" and it made no difference
Have you already run the m-a prepare to get the kernel headers installed and linked properly also what was the error on the failed build? The command I use for building the module is m-a a-i -i -f -t nvidia you may want to try this as well as making sure that you have the build-essential, debhelper and dpkg-dev packages installed.
Had to do it today since xorg 7.1 upgrade broke mine. I used module-assistance with nvidia-kernel-source (8776) and nvidia-glx from SID. Make sure you have build-essential and your kernel headers installed too. Should work.
I tried "m-a a-i -i -f -t nvidia" and this was the output.
Code:
Mutch:/home/mutch# m-a a-i -i -f -t nvidia
.
Updated infos about 1 packages
Getting source for kernel version: 2.6.16-2-686
Kernel headers available in /lib/modules/2.6.16-2-686/build
apt-get-y install build-essential
Done!
download
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 153 not upgraded.
Need to get 0B/1806kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database ... 78582 files and directories currently installed.)
Preparing to replace nvidia-kernel-source 1.0.8776-1 (using .../nvidia-kernel-source_1.0.8776-1_i386.deb) ...
Unpacking replacement nvidia-kernel-source ...
Setting up nvidia-kernel-source (1.0.8776-1) ...
Updating info about nvidia-kernel-source
Updated infos about 1 packages
unpack
Extracting the package tarball, /usr/src/nvidia-kernel-source.tar.gz, please wait...
"/usr/share/modass/packages/default.sh" build KVERS=2.6.16-2-686 KSRC=/lib/modules/2.6.16-2-686/build KDREV=2.6.16-18 kdist_image
/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
if [ -e patch-stamp ]; then \
dpatch deapply-all ; \
rm -rf patch-stamp debian/patched ; \
fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/lib/modules/2.6.16-2-686/build -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm: cannot remove `/usr/src/modules/nvidia-kernel/debian/dirs': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm /usr/src/modules/nvidia-kernel/debian/override
rm: cannot remove `/usr/src/modules/nvidia-kernel/debian/override': No such file or directory
make[1]: [clean] Error 1 (ignored)
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.0.3
Detected compiler version : /bin/sh: gcc-4.0: command not found
You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.
The compiler that will be used to compile this module has been
determined from:
1) the CC environment variable
2) that specified in
/lib/modules/2.6.16-2-686/build/include/linux/compile.h
3) gcc
Using compiler gcc-4.0 version /bin/sh: gcc-4.0: command not found
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.0" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/lib/modules/2.6.16-2-686/build KBUILD_PARAMS="-C /lib/modules/2.6.16-2-686/build SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
Your kernel was configured to include rivafb support!
The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.
*** Failed rivafb sanity check. Bailing out! ***
make[2]: *** [rivafb-sanity-check] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
BUILD FAILED!
See /var/cache/modass/nvidia-kernel-source.buildlog.2.6.16-2-686.1162011349 for details.
I tried "m-a a-i -i -f -t nvidia" and this was the output.
Code:
Mutch:/home/mutch# m-a a-i -i -f -t nvidia
.
Updated infos about 1 packages
Getting source for kernel version: 2.6.16-2-686
Kernel headers available in /lib/modules/2.6.16-2-686/build
apt-get-y install build-essential
Done!
download
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 153 not upgraded.
Need to get 0B/1806kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database ... 78582 files and directories currently installed.)
Preparing to replace nvidia-kernel-source 1.0.8776-1 (using .../nvidia-kernel-source_1.0.8776-1_i386.deb) ...
Unpacking replacement nvidia-kernel-source ...
Setting up nvidia-kernel-source (1.0.8776-1) ...
Updating info about nvidia-kernel-source
Updated infos about 1 packages
unpack
Extracting the package tarball, /usr/src/nvidia-kernel-source.tar.gz, please wait...
"/usr/share/modass/packages/default.sh" build KVERS=2.6.16-2-686 KSRC=/lib/modules/2.6.16-2-686/build KDREV=2.6.16-18 kdist_image
/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
if [ -e patch-stamp ]; then \
dpatch deapply-all ; \
rm -rf patch-stamp debian/patched ; \
fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/lib/modules/2.6.16-2-686/build -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm: cannot remove `/usr/src/modules/nvidia-kernel/debian/dirs': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm /usr/src/modules/nvidia-kernel/debian/override
rm: cannot remove `/usr/src/modules/nvidia-kernel/debian/override': No such file or directory
make[1]: [clean] Error 1 (ignored)
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.0.3
Detected compiler version : /bin/sh: gcc-4.0: command not found
You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.
The compiler that will be used to compile this module has been
determined from:
1) the CC environment variable
2) that specified in
/lib/modules/2.6.16-2-686/build/include/linux/compile.h
3) gcc
Using compiler gcc-4.0 version /bin/sh: gcc-4.0: command not found
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.0" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/lib/modules/2.6.16-2-686/build KBUILD_PARAMS="-C /lib/modules/2.6.16-2-686/build SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
Your kernel was configured to include rivafb support!
The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.
*** Failed rivafb sanity check. Bailing out! ***
make[2]: *** [rivafb-sanity-check] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
BUILD FAILED!
See /var/cache/modass/nvidia-kernel-source.buildlog.2.6.16-2-686.1162011349 for details.
Looks like it could be this bug as it does not seem to finding the right compiler. Try installing the gcc-4.0 package then use export CC=/usr/bin/gcc-4.0 and try it again.
Edit: By use I mean type in then hit enter key the command in the terminal window/console where you are compiling then use the m-a command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.