LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   apt-get kernel-source is installing the wrong kernel source. (http://www.linuxquestions.org/questions/ubuntu-63/apt-get-kernel-source-is-installing-the-wrong-kernel-source-317139/)

JordanH 04-25-2005 09:13 PM

apt-get kernel-source is installing the wrong kernel source.
 
Hi All,
I'm just moving over to the ubuntu world and would like to get my NVidia card going. Going through the ye olde Nvidia process which requires the kernel source.
apt-get install kernel-source is bringing down the source for 2.4.27 instead of the 2.6.10 kernel which is installed.
apt-get kernel-source-2.6.10 yields the error "Couldn't find package kernel-source 2.6.10"
I have updated my /etc/apt-get/sources.list to include universe repos already.

Is there another repository I need to aim at? Am I using the wrong name? Someone please point me to the source of my troubles.

Thanks,
Jordan.

masand 04-25-2005 11:40 PM

u cna search from the list of packages by

apt-cache search kernel-source

and then install that package

also after u chage ur sources.list, u need to run this

apt-get update

regards

JordanH 04-26-2005 12:09 AM

Quote:

Originally posted by masand
u cna search from the list of packages by

apt-cache search kernel-source

and then install that package

also after u chage ur sources.list, u need to run this

apt-get update

regards

did that, did that, couldn't do that, did that, did that.

In other words, the cache only lists 2.4.27 source. I have run apt-get update. But since the source isn't in the cache, I can't install it. I did find a package called nvidia-kernel-source which I haven't seen before...

masand 04-26-2005 01:28 AM

what link do u have active in sources.list??

ltmon 04-26-2005 07:42 PM

Hi,

Is there a reason you are having to compile your own kernel headers for the Nvidia card? Ubuntu have made this really easy by including precompiled headers in the universe repository:

From ubuntuguide.org:

sudo apt-get install nvidia-glx
sudo apt-get install nvidia-settings
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo nvidia-glx-config enable
sudo gedit /usr/share/applications/NVIDIA-Settings.desktop

Insert the following lines into the new file

[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA Settings
Exec=nvidia-settings
Icon=
Terminal=false
Type=Application
Categories=Application;System;

Read ubuntuguide.org in it's entirety for more info.

Cheers,

L.

mlmurray 04-27-2005 06:39 PM

Search for 2.6 kernel related packages with:

apt-cache search linux-source

here's what you get:

linux-patch-ubuntu-2.6.10 - Ubuntu patches to Linux 2.6.10
linux-source-2.6.10 - Linux kernel source for version 2.6.10 with Ubuntu patches
linux-patch-ubuntu-2.6.11 - Ubuntu patches to Linux 2.6.11
linux-source-2.6.11 - Linux kernel source for version 2.6.11 with Ubuntu patches

However, as a previouse poster pointed out, you don't have to re-compile just to get nvidia working ...

JordanH 04-28-2005 06:19 PM

ltmon, you are a genius. Or at least literate. :o I'm afraid I should have read that...although I did some reading/searching, I totally didn't see that bit. I really appreciate the pointer and the paraphrasing. I haven't tested the 3D capabilities yet but the NVidia splash screen appears so all should be well.

mlmurray, I appreciate the information. I was searching on kernel-source (as per the error message) rather than linux-source as per your post. I will know better next time. Thanks.

eisman 05-02-2005 10:49 AM

Quote:

Originally posted by ltmon

Insert the following lines into the new file

[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA Settings
Exec=nvidia-settings
Icon=
Terminal=false
Type=Application
Categories=Application;System;
This wasn't really needed, I havent put it into the config file, just logged out of gnomen did a CTRL + ALT + ESC (to reload X) and the Nvidia screen appeard and it worked very good.

But a well written howto.

oziemike 07-06-2005 10:04 PM

I am having a similar problem to earlier mentions about the kernel source. I have also recently come over to Ubuntu and am trying to get the latest versiion of the IPW2200 drivers working. It won't let me compile and I am asuming it is because I don't have the kernel source loaded?? If I search for the appropriate source code with apt-get it only returns a 2.4 kernel and no 2.6 kernel sources??

root@LG1:/home/mike/downloads/ipw2200-1.0.4 # apt-cache search kernel-source
avm-fritz-kernel-source - AVM Fritz! binary kernel module source
fglrx-kernel-source - ATI binary kernel module source
cpad-kernel-source - Source for the Synaptics cPad driver
freeswan - IPSEC utilities for FreeSWan
kernel-patch-2.4-lids - LIDS Kernel Patch
kernel-patch-debian-2.4.27 - Debian patches to Linux 2.4.27
kernel-source-2.4.27 - Linux kernel source for version 2.4.27 with Debian patches
kernel-tree-2.4.27 - Linux kernel source tree for building Debian kernel images
lidstools-2.4 - LIDS Admintool
nvidia-kernel-source - NVIDIA binary kernel module source
oprofile - system-wide profiler for Linux systems
wacom-kernel-source - Source for the wacom binary modules
wacom-tools - Utilities for wacom tablets and other hid devices

Do I need to load another repository?????

Mike

sbassett 07-07-2005 09:41 AM

oziemike please see mlmurray's post.


Quote:

Originally posted by mlmurray
Search for 2.6 kernel related packages with:

apt-cache search linux-source

here's what you get:

linux-patch-ubuntu-2.6.10 - Ubuntu patches to Linux 2.6.10
linux-source-2.6.10 - Linux kernel source for version 2.6.10 with Ubuntu patches
linux-patch-ubuntu-2.6.11 - Ubuntu patches to Linux 2.6.11
linux-source-2.6.11 - Linux kernel source for version 2.6.11 with Ubuntu patches

However, as a previouse poster pointed out, you don't have to re-compile just to get nvidia working ...


Deeze 07-08-2005 05:42 PM

Quote:

Originally posted by eisman
This wasn't really needed, I havent put it into the config file, just logged out of gnomen did a CTRL + ALT + ESC (to reload X) and the Nvidia screen appeard and it worked very good.

But a well written howto.

That's not needed to make the driver work, that is to add the menu entry for the video settings.


All times are GMT -5. The time now is 06:33 PM.