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.
Some time back, Ubuntu automatically switched me from a "-generic" kernel to a "-generic-pae" kernel. The problem is, it didn't update the repository dependencies with it. Therefore, every time the kernel gets updated, I have to go in through a recovery console to download the proper headers so my nvidia driver works.
I'm not going to ask why Ubuntu doesn't get the correct kernel headers automatically, but I would like to know how I can fix it: how can I set the kernel headers package to depend on the "-generic-pae" version rather than the "-generic" version that it is set to now?
I know your not afer this answer, but you don't need to change the header files, The reason why the kernel hearders aren't updated, is to do with the version gcc was originally compiled with. There is no reason to change from the original kernel headers, even when changing the kernels, you can still compile modules to the old kernel headers. If you do change them, you can run into compiling problems
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Yes, Synaptic is probably the best route for you.
I am more interested in how "Ubuntu automatically" did this for you. Does someone from Canonical do your update/upgrade cycles remotely? If you have that kind of support I would let them straighten it out.
If not, then you had to approve the update/upgrade that did this. If you are using automatic update/upgrades then you approved anything Update Mangler wants to do without even worrying about looking at the stuff before it is done.
If you use Update Mangler manually you had to approve the stuff then. Read carefully what it is doing.
I suggest you start using a real package manager like Synaptic to do your update/upgrades. It gives you more information. You do have to read it for it to do you any good.
Better would be to use apt-get or aptitude as they show you everything. Of coarse if you want aptitude you will have to install it as Ubuntu, knowing folks don't want to know anything about what is going on leave it out of the default install now.
"aptitude safe-upgrade" is probably the safest way to avoid problems.
OK, so I don't read the update information too carefully. When I do a distribution upgrade, I don't want to verify the 100+ packages that get updated. I upgrade so I can keep up with the distribution, without which you fall behind in software versions.
Anyway, I don't care that it changed my kernel to the pae version. What bothers me is that it didn't change the headers package to match. I don't understand why I wouldn't need to update the headers as fotoguy says -- what I know is that every time the kernel version changes, I end up with the headers for the wrong kernel (same number, but not pae), and my nvidia drivers don't work. I can't get into an X session. Once I get the matching headers installed, nvidia works. This probably also affects VirtualBox and I don't know what else, but since I can't do anything until I get the proper headers, I never get to see them fail.
I thought there was some way of setting dependencies so that the headers would always match the kernel version. Isn't there some "linux-kernel-headers" package that always depends on the latest installed kernel package? (I'm not on my Linux box at the moment, so I can't check.) I could check Update Manager and disallow it to change the kernel, but that's not really what I want: I just want it to change both the kernel and the headers at the same time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.