[SOLVED] command line upgrade kernel (apt-get) from 2.6.35.4 to 2.6.38-8
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.
It depends if that kernel is available in your configured repositories. Check first with:
Code:
sudo apt-cache search linux-image
If it is available you can run:
Code:
sudo apt-get update
sudo apt-get upgrade
and apt will upgrade where necessary, except for the linux-image and linux-headers part, which will be mentioned as kept back if I'm not mistaking. If they are kept back just run:
It depends if that kernel is available in your configured repositories. Check first with:
Code:
sudo apt-cache search linux-image
If it is available you can run:
Code:
sudo apt-get update
sudo apt-get upgrade
and apt will upgrade where necessary, except for the linux-image and linux-headers part, which will be mentioned as kept back if I'm not mistaking. If they are kept back just run:
Code:
sudo apt-get dist-upgrade
to install the linux-image.
Kind regards,
Eric
Thanks. So I guess there are some installations such as cloud virtual machines that don't have kernel updates available. The "apt-cache search linux-image" on a rackspacecloud.com machine only returns comedi-source. One of my VirtualBox machine only returned the comedi-source also. However, I installed the comedi-source and a kernel list because available.
I installed the comedi-source on the rackspace installation and don't get a kernel list. Does this mean the cloud rackspace will only run on the installation kernel?
uname -a from the cloud rackspace machine:
Code:
Linux apollo2 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
I'm trying to recall which Ubuntu version it was before I used "apt-get dist-upgrade" to bring it to ubuntu 11.04. At present the dist-upgrade option shows it as fully upgraded.
You didn't mention in your original post that you wanted to do this on a VPS/Cloud Virtual Machine. Lot's of VPS providers offer you what's called a container based VPS which means that you can do usual things with it, install software and so on. But if that's the case in your situation, they don't allow you to do kernel stuff, since they most likely use a shared kernel solution. The solution I provided in my earlier answer works for 'real' installations, full virtual machines but not for shared kernel solutions like OpenVZ for example.
You didn't mention in your original post that you wanted to do this on a VPS/Cloud Virtual Machine. Lot's of VPS providers offer you what's called a container based VPS which means that you can do usual things with it, install software and so on. But if that's the case in your situation, they don't allow you to do kernel stuff, since they most likely use a shared kernel solution. The solution I provided in my earlier answer works for 'real' installations, full virtual machines but not for shared kernel solutions like OpenVZ for example.
Kind regards,
Eric
Thanks!
I didn't know the VPS' had those limitations. Also, I wanted to know the information in general, which your answer was invaluable. Being able to test solutions on the various levels of installation helps to field the gap.
My next question was going to be, how to manually install a kernel, but you might have already answered that. I'll most likely create a temporary VPS and experiment with kernal compiling and see if it boots. I'll also experiment with the link below which also appears to be a possible solutions.
But then again, the kernel level (I might discover) may not an option in this solution that I'm reviewing.
Also, the problem I'm having with the VPS might not even be a problem with the kernel. I found a discrepancy in an application I was running locally and thought I'd start out at the kernel level.
There are most likely more recent, more complete (and complicated), more detailed how to guide out there but I think these will get you started right away.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.