LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-25-2005, 09:13 PM   #1
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
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.
 
Old 04-25-2005, 11:40 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 04-26-2005, 12:09 AM   #3
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
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...
 
Old 04-26-2005, 01:28 AM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
what link do u have active in sources.list??
 
Old 04-26-2005, 07:42 PM   #5
ltmon
LQ Newbie
 
Registered: Mar 2004
Location: Melbourne, Australia
Distribution: kubuntu 5.04
Posts: 3

Rep: Reputation: 0
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.
 
Old 04-27-2005, 06:39 PM   #6
mlmurray
LQ Newbie
 
Registered: Oct 2003
Location: Dallas, GA
Distribution: Slackware, Debian
Posts: 25

Rep: Reputation: 15
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 ...
 
Old 04-28-2005, 06:19 PM   #7
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
ltmon, you are a genius. Or at least literate. 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.
 
Old 05-02-2005, 10:49 AM   #8
eisman
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Sidux , Debian, Haiku, PC-BSD, CentOS --> XenExpress
Posts: 77

Rep: Reputation: 16
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.
 
Old 07-06-2005, 10:04 PM   #9
oziemike
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
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
 
Old 07-07-2005, 09:41 AM   #10
sbassett
Member
 
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151

Rep: Reputation: 30
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 ...
 
Old 07-08-2005, 05:42 PM   #11
Deeze
Member
 
Registered: Dec 2004
Distribution: Debian - Sarge -- Slackware 10.1 - Dropline
Posts: 154

Rep: Reputation: 30
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.
 
  


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
Where does apt place kernel-source? Mondus Linux - Hardware 5 07-30-2005 11:29 AM
apt error, messed up after tried installing kernel-source-2.6.8 microsoft/linux Debian 1 06-17-2005 12:38 AM
urpmi installs wrong kernel-source edgjerp Mandriva 4 02-14-2005 03:40 PM
apt-get kernel source Zaskar Debian 2 02-25-2004 02:22 PM
ati driver compiling with wrong kernel source madcow007 Linux - Hardware 7 02-15-2004 10:04 AM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration