apt-get kernel-source is installing the wrong kernel source.
UbuntuThis forum is for the discussion of Ubuntu 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.
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.
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...
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:
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 ...
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.
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.
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
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 ...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.