"prepare-kernel-sources" won't work
Hi. I am trying to install a NVIDIA driver for my graphics card (GeForce 8600M GT) and to do so I have to execute the command "prepare-kernel-sources". Here is the output:
As you can see, it doesn't work.
|[*] apt-getting linux-source...
|Reading package lists... Done
|Building dependency tree
|Reading state information... Done
|linux-source is already the newest version.
|The following packages were automatically installed and are no longer required:
| libdmraid1.0.0.rc16 python-pyicu libdebian-installer4 cryptsetup libecryptfs0
| reiserfsprogs rdate bogl-bterm ecryptfs-utils libdebconfclient0 dmraid
|Use 'apt-get autoremove' to remove them.
|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
|[*] extracting sources, please wait
|tar: linux-source-2.6.38.tar.bz2: Cannot open: No such file or directory
|tar: Error is not recoverable: exiting now
|tar: Child returned status 2
|tar: Exiting with failure status due to previous errors
|[*] doing stuff...
|/usr/bin/prepare-kernel-sources: line 11: cd: linux: No such file or directory
|cp: missing destination file operand after `/boot/'
|Try `cp --help' for more information.
|make: *** No rule to make target `scripts'. Stop.
|make: *** No rule to make target `prepare'. Stop.
|ln: creating symbolic link `/lib/modules/2.6.38/build': File exists
When I "cd" to and "ls" in the directory where the "linux-source-2.6.38.tar.bz2" should be I get this:
This is how the "prepare-kernel-sources"-script, which is in the directory "/usr/bin":
root@bt:~# cd /usr/src/
linux linux-headers-2.6.38 linux-source-2.6.32.tar.bz2 truecrypt-7.0a-setup-x86
I have the KDE version of Backtrack 5 and when I type "uname -r" I get this output: "2.6.38".
echo "[*] apt-getting linux-source..."
apt-get install linux-source
echo "[*] extracting sources, please wait"
tar jxpf linux-source-$VER.tar.bz2
echo "[*] doing stuff..."
rm -rf linux
ln -s linux-source-$VER linux
zcat /proc/config.gz > .config
ln -s /usr/src/linux /lib/modules/$VER/build
echo "[*] tada!"
Could someone please help me solve this error? Please tell me if there is something more you need to know!
Re: "prepare-kernel-sources" won't work
apt-get install linux-source-2.6.38