LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   command line upgrade kernel (apt-get) from 2.6.35.4 to 2.6.38-8 (https://www.linuxquestions.org/questions/ubuntu-63/command-line-upgrade-kernel-apt-get-from-2-6-35-4-to-2-6-38-8-a-887016/)

Larry James 06-18-2011 04:43 AM

command line upgrade kernel (apt-get) from 2.6.35.4 to 2.6.38-8
 
Can someone tell me if it's possible (or how to) upgrade the kernel using apt-get? ...particularly from 2.6.35.4 to 2.6.38-8.

I'm using an upgraded Ubuntu 11.04 installation.

Thanks in advance.

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

EricTRA 06-18-2011 04:54 AM

Hello,

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

Larry James 06-18-2011 07:12 AM

Quote:

Originally Posted by EricTRA (Post 4389186)
Hello,

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.

Thanks for any comments on this.

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

EricTRA 06-18-2011 07:18 AM

Hi,

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

Larry James 06-18-2011 07:47 AM

Quote:

Originally Posted by EricTRA (Post 4389247)
Hi,

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.

http://failverse.com/using-your-own-...cloud-servers/

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.

Thanks for the quick and very informative input!

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

EricTRA 06-18-2011 09:28 AM

Hi,

You're welcome. If you're looking into tweaking/fine-tuning your kernel and want to start kernel compilation, there are a lot of good step by step guides out there, for example:
http://www.debianadmin.com/step-by-s...5-0-lenny.html
http://www.howtoforge.com/kernel_compilation_ubuntu

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.

Kind regards,

Eric


All times are GMT -5. The time now is 06:10 AM.