LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-18-2011, 04:43 AM   #1
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Fedora, Ubuntu
Posts: 361

Rep: Reputation: 39
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
 
Old 06-18-2011, 04:54 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 06-18-2011, 07:12 AM   #3
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Fedora, Ubuntu
Posts: 361

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by EricTRA View Post
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
 
Old 06-18-2011, 07:18 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
1 members found this post helpful.
Old 06-18-2011, 07:47 AM   #5
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Fedora, Ubuntu
Posts: 361

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by EricTRA View Post
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
 
Old 06-18-2011, 09:28 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
  


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
LXer: Ubuntu Package Management from Command line using apt LXer Syndicated Linux News 0 03-23-2009 08:40 AM
Can I upgrade to 8.04 with an apt-get command? KenJackson Ubuntu 2 04-25-2008 12:53 AM
Error with apt, on any command; update, upgrade, install etc Brian5 Ubuntu 2 11-28-2007 12:52 AM
Apt, Synaptic command line installation...I can't find the page anymore :( leonardh Linux - Software 3 02-03-2005 05:53 PM
Empty terminal [command line] with no text after kernel upgrade to 2.6.7 whencat Red Hat 7 07-09-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:33 PM.

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